@tamagui/react-native-web-internals 3.0.0-beta.669.1 → 3.0.0-beta.728.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.
Files changed (70) hide show
  1. package/dist/cjs/StyleSheet/compiler/createReactDOMStyle.cjs +0 -1
  2. package/dist/cjs/StyleSheet/compiler/hash.cjs +0 -1
  3. package/dist/cjs/StyleSheet/compiler/hyphenateStyleName.cjs +0 -1
  4. package/dist/cjs/StyleSheet/compiler/index.cjs +0 -1
  5. package/dist/cjs/StyleSheet/compiler/normalizeColor.cjs +0 -1
  6. package/dist/cjs/StyleSheet/compiler/normalizeValueWithProperty.cjs +0 -1
  7. package/dist/cjs/StyleSheet/compiler/resolveShadowValue.cjs +0 -1
  8. package/dist/cjs/StyleSheet/dom/createCSSStyleSheet.cjs +0 -1
  9. package/dist/cjs/StyleSheet/dom/createOrderedCSSStyleSheet.cjs +0 -1
  10. package/dist/cjs/StyleSheet/dom/index.cjs +0 -1
  11. package/dist/cjs/StyleSheet/index.cjs +0 -1
  12. package/dist/cjs/StyleSheet/preprocess.cjs +0 -1
  13. package/dist/cjs/StyleSheet/validate.cjs +0 -1
  14. package/dist/cjs/TextAncestorContext.cjs +0 -1
  15. package/dist/cjs/colorProps.cjs +0 -1
  16. package/dist/cjs/index.cjs +0 -1
  17. package/dist/cjs/modules/AccessibilityUtil/index.cjs +0 -1
  18. package/dist/cjs/modules/AccessibilityUtil/isDisabled.cjs +0 -1
  19. package/dist/cjs/modules/AccessibilityUtil/propsToAccessibilityComponent.cjs +0 -1
  20. package/dist/cjs/modules/AccessibilityUtil/propsToAriaRole.cjs +0 -1
  21. package/dist/cjs/modules/AssetRegistry/index.cjs +0 -1
  22. package/dist/cjs/modules/ImageLoader/index.cjs +0 -1
  23. package/dist/cjs/modules/InteractionManager.cjs +0 -1
  24. package/dist/cjs/modules/Platform/index.cjs +0 -1
  25. package/dist/cjs/modules/TextInputState/index.cjs +0 -1
  26. package/dist/cjs/modules/UIManager/index.cjs +0 -1
  27. package/dist/cjs/modules/canUseDOM.cjs +0 -1
  28. package/dist/cjs/modules/createDOMProps/index.cjs +0 -1
  29. package/dist/cjs/modules/createEventHandle/index.cjs +0 -1
  30. package/dist/cjs/modules/dismissKeyboard/index.cjs +0 -1
  31. package/dist/cjs/modules/forwardedProps/index.cjs +0 -1
  32. package/dist/cjs/modules/getBoundingClientRect/index.cjs +0 -1
  33. package/dist/cjs/modules/invariant.cjs +0 -1
  34. package/dist/cjs/modules/isSelectionValid/index.cjs +0 -1
  35. package/dist/cjs/modules/isWebColor/index.cjs +0 -1
  36. package/dist/cjs/modules/mergeRefs/index.cjs +0 -1
  37. package/dist/cjs/modules/modality/index.cjs +0 -1
  38. package/dist/cjs/modules/multiplyStyleLengthValue/index.cjs +0 -1
  39. package/dist/cjs/modules/normalizeColor/index.cjs +0 -1
  40. package/dist/cjs/modules/pick/index.cjs +0 -1
  41. package/dist/cjs/modules/processColor/index.cjs +0 -1
  42. package/dist/cjs/modules/requestIdleCallback/index.cjs +0 -1
  43. package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +0 -1
  44. package/dist/cjs/modules/setValueForStyles/index.cjs +0 -1
  45. package/dist/cjs/modules/unitlessNumbers/index.cjs +0 -1
  46. package/dist/cjs/modules/useElementLayout/index.cjs +0 -1
  47. package/dist/cjs/modules/useEvent/index.cjs +0 -1
  48. package/dist/cjs/modules/useHover/index.cjs +0 -1
  49. package/dist/cjs/modules/useLayoutEffect/index.cjs +0 -1
  50. package/dist/cjs/modules/useLocale/index.cjs +0 -1
  51. package/dist/cjs/modules/useLocale/isLocaleRTL.cjs +0 -1
  52. package/dist/cjs/modules/useMergeRefs/index.cjs +0 -1
  53. package/dist/cjs/modules/usePlatformMethods/index.cjs +0 -1
  54. package/dist/cjs/modules/useStable/index.cjs +0 -1
  55. package/dist/cjs/styleTypes.cjs +0 -1
  56. package/dist/cjs/types.cjs +0 -1
  57. package/dist/esm/StyleSheet/compiler/createReactDOMStyle.mjs.map +1 -1
  58. package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
  59. package/dist/esm/StyleSheet/compiler/normalizeColor.mjs.map +1 -1
  60. package/dist/esm/StyleSheet/dom/createOrderedCSSStyleSheet.mjs.map +1 -1
  61. package/dist/esm/StyleSheet/index.mjs.map +1 -1
  62. package/dist/esm/modules/ImageLoader/index.mjs.map +1 -1
  63. package/dist/esm/modules/InteractionManager.mjs.map +1 -1
  64. package/dist/esm/modules/invariant.mjs.map +1 -1
  65. package/dist/esm/modules/multiplyStyleLengthValue/index.mjs.map +1 -1
  66. package/dist/esm/modules/normalizeColor/index.mjs.map +1 -1
  67. package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
  68. package/dist/esm/modules/unitlessNumbers/index.mjs.map +1 -1
  69. package/dist/esm/modules/useLocale/isLocaleRTL.mjs.map +1 -1
  70. package/package.json +10 -10
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"createReactDOMStyle.js","names":[],"sources":["esm/StyleSheet/compiler/createReactDOMStyle.js"],"sourcesContent":["import { canUseDOM } from \"../../modules/canUseDOM\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst emptyObject = {};\nconst supportsCSS3TextDecoration = !canUseDOM || window.CSS != null && window.CSS.supports != null && (window.CSS.supports(\"text-decoration-line\", \"none\") || window.CSS.supports(\"-webkit-text-decoration-line\", \"none\"));\nconst ignoredProps = {\n elevation: true,\n overlayColor: true,\n resizeMode: true,\n tintColor: true\n};\nconst MONOSPACE_FONT_STACK = \"monospace,monospace\";\nconst SYSTEM_FONT_STACK = '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif';\nconst STYLE_SHORT_FORM_EXPANSIONS = {\n borderColor: [\n \"borderTopColor\",\n \"borderRightColor\",\n \"borderBottomColor\",\n \"borderLeftColor\"\n ],\n borderRadius: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomRightRadius\",\n \"borderBottomLeftRadius\"\n ],\n borderStyle: [\n \"borderTopStyle\",\n \"borderRightStyle\",\n \"borderBottomStyle\",\n \"borderLeftStyle\"\n ],\n borderWidth: [\n \"borderTopWidth\",\n \"borderRightWidth\",\n \"borderBottomWidth\",\n \"borderLeftWidth\"\n ],\n marginHorizontal: [\"marginRight\", \"marginLeft\"],\n marginVertical: [\"marginTop\", \"marginBottom\"],\n overflow: [\"overflowX\", \"overflowY\"],\n overscrollBehavior: [\"overscrollBehaviorX\", \"overscrollBehaviorY\"],\n paddingHorizontal: [\"paddingRight\", \"paddingLeft\"],\n paddingVertical: [\"paddingTop\", \"paddingBottom\"]\n};\nconst mapTransform = (transform) => {\n const type = Object.keys(transform)[0];\n const value = transform[type];\n if (type === \"matrix\" || type === \"matrix3d\") {\n return `${type}(${value.join(\",\")})`;\n } else {\n const normalizedValue = normalizeValueWithProperty(value, type);\n return `${type}(${normalizedValue})`;\n }\n};\nconst createTransformValue = (style) => {\n let transform = style.transform;\n if (Array.isArray(style.transform)) {\n transform = style.transform.map(mapTransform).join(\" \");\n }\n return transform;\n};\nconst createReactDOMStyle = (style, isInline) => {\n if (!style) {\n return emptyObject;\n }\n const resolvedStyle = {};\n for (const prop in style) {\n const value = style[prop];\n if (\n // Ignore everything with a null value\n value == null || // Ignore some React Native styles\n ignoredProps[prop]\n ) {\n continue;\n }\n if (prop === \"aspectRatio\") {\n resolvedStyle[prop] = value.toString();\n } else if (prop === \"backgroundClip\") {\n if (value === \"text\") {\n resolvedStyle.backgroundClip = value;\n resolvedStyle.WebkitBackgroundClip = value;\n }\n } else if (prop === \"flex\") {\n if (value === -1) {\n resolvedStyle.flexGrow = 0;\n resolvedStyle.flexShrink = 1;\n resolvedStyle.flexBasis = \"auto\";\n } else {\n resolvedStyle.flex = value;\n }\n } else if (prop === \"font\") {\n resolvedStyle[prop] = value.replace(\"System\", SYSTEM_FONT_STACK);\n } else if (prop === \"fontFamily\") {\n if (value.indexOf(\"System\") > -1) {\n const stack = value.split(/,\\s*/);\n stack[stack.indexOf(\"System\")] = SYSTEM_FONT_STACK;\n resolvedStyle[prop] = stack.join(\",\");\n } else if (value === \"monospace\") {\n resolvedStyle[prop] = MONOSPACE_FONT_STACK;\n } else {\n resolvedStyle[prop] = value;\n }\n } else if (prop === \"fontVariant\") {\n if (Array.isArray(value) && value.length > 0) {\n resolvedStyle.fontVariant = value.join(\" \");\n }\n } else if (prop === \"textAlignVertical\") {\n resolvedStyle.verticalAlign = value === \"center\" ? \"middle\" : value;\n } else if (prop === \"textDecorationLine\") {\n if (!supportsCSS3TextDecoration) {\n resolvedStyle.textDecoration = value;\n } else {\n resolvedStyle.textDecorationLine = value;\n }\n } else if (prop === \"transform\" || prop === \"transformMatrix\") {\n resolvedStyle.transform = createTransformValue(style);\n } else if (prop === \"writingDirection\") {\n resolvedStyle.direction = value;\n } else {\n const value2 = normalizeValueWithProperty(style[prop], prop);\n const longFormProperties = STYLE_SHORT_FORM_EXPANSIONS[prop];\n if (isInline && prop === \"margin\") {\n if (style.marginHorizontal == null) {\n resolvedStyle.marginLeft = value2;\n resolvedStyle.marginRight = value2;\n }\n if (style.marginVertical == null) {\n resolvedStyle.marginTop = value2;\n resolvedStyle.marginBottom = value2;\n }\n } else if (isInline && prop === \"padding\") {\n if (style.paddingHorizontal == null) {\n resolvedStyle.paddingLeft = value2;\n resolvedStyle.paddingRight = value2;\n }\n if (style.paddingVertical == null) {\n resolvedStyle.paddingTop = value2;\n resolvedStyle.paddingBottom = value2;\n }\n } else if (longFormProperties) {\n longFormProperties.forEach((longForm, i) => {\n if (style[longForm] == null) {\n resolvedStyle[longForm] = value2;\n }\n });\n } else {\n resolvedStyle[prop] = Array.isArray(value2) ? value2.join(\",\") : value2;\n }\n }\n }\n return resolvedStyle;\n};\nexport {\n createReactDOMStyle,\n createTransformValue\n};\n//# sourceMappingURL=createReactDOMStyle.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,6BAA6B,CAAC,aAAa,OAAO,OAAO,QAAQ,OAAO,IAAI,YAAY,SAAS,OAAO,IAAI,SAAS,wBAAwB,MAAM,KAAK,OAAO,IAAI,SAAS,gCAAgC,MAAM;AACxN,MAAM,eAAe;CACnB,WAAW;CACX,cAAc;CACd,YAAY;CACZ,WAAW;AACb;AACA,MAAM,uBAAuB;AAC7B,MAAM,oBAAoB;AAC1B,MAAM,8BA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cAAc,cAAc;KAC5B,cAAc,eAAe;IAC/B;IACA,IAAI,MAAM,mBAAmB,MAAM;KACjC,cAAc,aAAa;KAC3B,cAAc,gBAAgB;IAChC;GACF,OAAO,IAAI,oBAAoB;IAC7B,mBAAmB,SAAS,UAAU,MAAM;KAC1C,IAAI,MAAM,aAAa,MAAM;MAC3B,cAAc,YAAY;KAC5B;IACF,CAAC;GACH,OAAO;IACL,cAAc,QAAQ,MAAM,QAAQ,MAAM,IAAI,OAAO,KAAK,GAAG,IAAI;GACnE;EACF;CACF;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"createReactDOMStyle.js","names":[],"sources":["esm/StyleSheet/compiler/createReactDOMStyle.js"],"sourcesContent":["import { canUseDOM } from \"../../modules/canUseDOM\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst emptyObject = {};\nconst supportsCSS3TextDecoration = !canUseDOM || window.CSS != null && window.CSS.supports != null && (window.CSS.supports(\"text-decoration-line\", \"none\") || window.CSS.supports(\"-webkit-text-decoration-line\", \"none\"));\nconst ignoredProps = {\n elevation: true,\n overlayColor: true,\n resizeMode: true,\n tintColor: true\n};\nconst MONOSPACE_FONT_STACK = \"monospace,monospace\";\nconst SYSTEM_FONT_STACK = '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif';\nconst STYLE_SHORT_FORM_EXPANSIONS = {\n borderColor: [\n \"borderTopColor\",\n \"borderRightColor\",\n \"borderBottomColor\",\n \"borderLeftColor\"\n ],\n borderRadius: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomRightRadius\",\n \"borderBottomLeftRadius\"\n ],\n borderStyle: [\n \"borderTopStyle\",\n \"borderRightStyle\",\n \"borderBottomStyle\",\n \"borderLeftStyle\"\n ],\n borderWidth: [\n \"borderTopWidth\",\n \"borderRightWidth\",\n \"borderBottomWidth\",\n \"borderLeftWidth\"\n ],\n marginHorizontal: [\"marginRight\", \"marginLeft\"],\n marginVertical: [\"marginTop\", \"marginBottom\"],\n overflow: [\"overflowX\", \"overflowY\"],\n overscrollBehavior: [\"overscrollBehaviorX\", \"overscrollBehaviorY\"],\n paddingHorizontal: [\"paddingRight\", \"paddingLeft\"],\n paddingVertical: [\"paddingTop\", \"paddingBottom\"]\n};\nconst mapTransform = (transform) => {\n const type = Object.keys(transform)[0];\n const value = transform[type];\n if (type === \"matrix\" || type === \"matrix3d\") {\n return `${type}(${value.join(\",\")})`;\n } else {\n const normalizedValue = normalizeValueWithProperty(value, type);\n return `${type}(${normalizedValue})`;\n }\n};\nconst createTransformValue = (style) => {\n let transform = style.transform;\n if (Array.isArray(style.transform)) {\n transform = style.transform.map(mapTransform).join(\" \");\n }\n return transform;\n};\nconst createReactDOMStyle = (style, isInline) => {\n if (!style) {\n return emptyObject;\n }\n const resolvedStyle = {};\n for (const prop in style) {\n const value = style[prop];\n if (\n // Ignore everything with a null value\n value == null || // Ignore some React Native styles\n ignoredProps[prop]\n ) {\n continue;\n }\n if (prop === \"aspectRatio\") {\n resolvedStyle[prop] = value.toString();\n } else if (prop === \"backgroundClip\") {\n if (value === \"text\") {\n resolvedStyle.backgroundClip = value;\n resolvedStyle.WebkitBackgroundClip = value;\n }\n } else if (prop === \"flex\") {\n if (value === -1) {\n resolvedStyle.flexGrow = 0;\n resolvedStyle.flexShrink = 1;\n resolvedStyle.flexBasis = \"auto\";\n } else {\n resolvedStyle.flex = value;\n }\n } else if (prop === \"font\") {\n resolvedStyle[prop] = value.replace(\"System\", SYSTEM_FONT_STACK);\n } else if (prop === \"fontFamily\") {\n if (value.indexOf(\"System\") > -1) {\n const stack = value.split(/,\\s*/);\n stack[stack.indexOf(\"System\")] = SYSTEM_FONT_STACK;\n resolvedStyle[prop] = stack.join(\",\");\n } else if (value === \"monospace\") {\n resolvedStyle[prop] = MONOSPACE_FONT_STACK;\n } else {\n resolvedStyle[prop] = value;\n }\n } else if (prop === \"fontVariant\") {\n if (Array.isArray(value) && value.length > 0) {\n resolvedStyle.fontVariant = value.join(\" \");\n }\n } else if (prop === \"textAlignVertical\") {\n resolvedStyle.verticalAlign = value === \"center\" ? \"middle\" : value;\n } else if (prop === \"textDecorationLine\") {\n if (!supportsCSS3TextDecoration) {\n resolvedStyle.textDecoration = value;\n } else {\n resolvedStyle.textDecorationLine = value;\n }\n } else if (prop === \"transform\" || prop === \"transformMatrix\") {\n resolvedStyle.transform = createTransformValue(style);\n } else if (prop === \"writingDirection\") {\n resolvedStyle.direction = value;\n } else {\n const value2 = normalizeValueWithProperty(style[prop], prop);\n const longFormProperties = STYLE_SHORT_FORM_EXPANSIONS[prop];\n if (isInline && prop === \"margin\") {\n if (style.marginHorizontal == null) {\n resolvedStyle.marginLeft = value2;\n resolvedStyle.marginRight = value2;\n }\n if (style.marginVertical == null) {\n resolvedStyle.marginTop = value2;\n resolvedStyle.marginBottom = value2;\n }\n } else if (isInline && prop === \"padding\") {\n if (style.paddingHorizontal == null) {\n resolvedStyle.paddingLeft = value2;\n resolvedStyle.paddingRight = value2;\n }\n if (style.paddingVertical == null) {\n resolvedStyle.paddingTop = value2;\n resolvedStyle.paddingBottom = value2;\n }\n } else if (longFormProperties) {\n longFormProperties.forEach((longForm, i) => {\n if (style[longForm] == null) {\n resolvedStyle[longForm] = value2;\n }\n });\n } else {\n resolvedStyle[prop] = Array.isArray(value2) ? value2.join(\",\") : value2;\n }\n }\n }\n return resolvedStyle;\n};\nexport {\n createReactDOMStyle,\n createTransformValue\n};\n//# sourceMappingURL=createReactDOMStyle.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,6BAA6B,CAAC,aAAa,OAAO,OAAO,QAAQ,OAAO,IAAI,YAAY,SAAS,OAAO,IAAI,SAAS,wBAAwB,MAAM,KAAK,OAAO,IAAI,SAAS,gCAAgC,MAAM;AACxN,MAAM,eAAe;CACnB,WAAW;CACX,cAAc;CACd,YAAY;CACZ,WAAW;AACb;AACA,MAAM,uBAAuB;AAC7B,MAAM,oBA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,IAAI,MAAM,qBAAqB,MAAM;KACnC,cAAc,cAAc;KAC5B,cAAc,eAAe;IAC/B;IACA,IAAI,MAAM,mBAAmB,MAAM;KACjC,cAAc,aAAa;KAC3B,cAAc,gBAAgB;IAChC;GACF,OAAO,IAAI,oBAAoB;IAC7B,mBAAmB,SAAS,UAAU,MAAM;KAC1C,IAAI,MAAM,aAAa,MAAM;MAC3B,cAAc,YAAY;KAC5B;IACF,CAAC;GACH,OAAO;IACL,cAAc,QAAQ,MAAM,QAAQ,MAAM,IAAI,OAAO,KAAK,GAAG,IAAI;GACnE;EACF;CACF;CACA,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/compiler/index.js"],"sourcesContent":["import { simpleHash } from \"@tamagui/simple-hash\";\nimport { createReactDOMStyle } from \"./createReactDOMStyle\";\nimport { hyphenateStyleName } from \"./hyphenateStyleName\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst cache = /* @__PURE__ */ new Map();\nconst emptyObject = {};\nconst classicGroup = 1;\nconst atomicGroup = 2.2;\nconst customGroup = {\n borderColor: 2,\n borderRadius: 2,\n borderStyle: 2,\n borderWidth: 2,\n display: 2,\n flex: 2,\n margin: 2,\n overflow: 2,\n overscrollBehavior: 2,\n padding: 2,\n marginHorizontal: 2.1,\n marginVertical: 2.1,\n paddingHorizontal: 2.1,\n paddingVertical: 2.1\n};\nconst borderTopLeftRadius = \"borderTopLeftRadius\";\nconst borderTopRightRadius = \"borderTopRightRadius\";\nconst borderBottomLeftRadius = \"borderBottomLeftRadius\";\nconst borderBottomRightRadius = \"borderBottomRightRadius\";\nconst borderLeftColor = \"borderLeftColor\";\nconst borderLeftStyle = \"borderLeftStyle\";\nconst borderLeftWidth = \"borderLeftWidth\";\nconst borderRightColor = \"borderRightColor\";\nconst borderRightStyle = \"borderRightStyle\";\nconst borderRightWidth = \"borderRightWidth\";\nconst right = \"right\";\nconst marginLeft = \"marginLeft\";\nconst marginRight = \"marginRight\";\nconst paddingLeft = \"paddingLeft\";\nconst paddingRight = \"paddingRight\";\nconst left = \"left\";\nconst PROPERTIES_FLIP = {\n [borderTopLeftRadius]: borderTopRightRadius,\n [borderTopRightRadius]: borderTopLeftRadius,\n [borderBottomLeftRadius]: borderBottomRightRadius,\n [borderBottomRightRadius]: borderBottomLeftRadius,\n [borderLeftColor]: borderRightColor,\n [borderLeftStyle]: borderRightStyle,\n [borderLeftWidth]: borderRightWidth,\n [borderRightColor]: borderLeftColor,\n [borderRightStyle]: borderLeftStyle,\n [borderRightWidth]: borderLeftWidth,\n [left]: right,\n [marginLeft]: marginRight,\n [marginRight]: marginLeft,\n [paddingLeft]: paddingRight,\n [paddingRight]: paddingLeft,\n [right]: left\n};\nconst PROPERTIES_I18N = {\n borderTopStartRadius: borderTopLeftRadius,\n borderTopEndRadius: borderTopRightRadius,\n borderBottomStartRadius: borderBottomLeftRadius,\n borderBottomEndRadius: borderBottomRightRadius,\n borderStartColor: borderLeftColor,\n borderStartStyle: borderLeftStyle,\n borderStartWidth: borderLeftWidth,\n borderEndColor: borderRightColor,\n borderEndStyle: borderRightStyle,\n borderEndWidth: borderRightWidth,\n end: right,\n marginStart: marginLeft,\n marginEnd: marginRight,\n paddingStart: paddingLeft,\n paddingEnd: paddingRight,\n start: left\n};\nconst PROPERTIES_VALUE = [\"clear\", \"float\", \"textAlign\"];\nfunction atomic(style) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n function atomicCompile(prop, value) {\n const valueString = stringifyValueWithProperty(value, prop);\n const cacheKey = prop + valueString;\n const cachedResult = cache.get(cacheKey);\n let identifier;\n if (cachedResult != null) {\n identifier = cachedResult[0];\n compiledRules.push(cachedResult[1]);\n } else {\n identifier = createIdentifier(\"r\", prop, value);\n const order = customGroup[prop] || atomicGroup;\n const rules = createAtomicRules(identifier, prop, value);\n const orderedRules = [rules, order];\n compiledRules.push(orderedRules);\n cache.set(cacheKey, [identifier, orderedRules]);\n }\n return identifier;\n }\n Object.keys(style).sort().forEach((prop) => {\n const value = style[prop];\n if (value != null) {\n let localizeableValue;\n if (PROPERTIES_VALUE.indexOf(prop) > -1) {\n const left2 = atomicCompile(prop, \"left\");\n const right2 = atomicCompile(prop, \"right\");\n if (value === \"start\") {\n localizeableValue = [left2, right2];\n } else if (value === \"end\") {\n localizeableValue = [right2, left2];\n }\n }\n const propPolyfill = PROPERTIES_I18N[prop];\n if (propPolyfill != null) {\n const ltr = atomicCompile(propPolyfill, value);\n const rtl = atomicCompile(PROPERTIES_FLIP[propPolyfill], value);\n localizeableValue = [ltr, rtl];\n }\n if (prop === \"transitionProperty\") {\n const values = Array.isArray(value) ? value : [value];\n const polyfillIndices = [];\n for (let i = 0; i < values.length; i++) {\n const val = values[i];\n if (typeof val === \"string\" && PROPERTIES_I18N[val] != null) {\n polyfillIndices.push(i);\n }\n }\n if (polyfillIndices.length > 0) {\n const ltrPolyfillValues = [...values];\n const rtlPolyfillValues = [...values];\n polyfillIndices.forEach((i) => {\n const ltrVal = ltrPolyfillValues[i];\n if (typeof ltrVal === \"string\") {\n const ltrPolyfill = PROPERTIES_I18N[ltrVal];\n const rtlPolyfill = PROPERTIES_FLIP[ltrPolyfill];\n ltrPolyfillValues[i] = ltrPolyfill;\n rtlPolyfillValues[i] = rtlPolyfill;\n const ltr = atomicCompile(prop, ltrPolyfillValues);\n const rtl = atomicCompile(prop, rtlPolyfillValues);\n localizeableValue = [ltr, rtl];\n }\n });\n }\n }\n if (localizeableValue == null) {\n localizeableValue = atomicCompile(prop, value);\n } else {\n compiledStyle[\"$$css$localize\"] = true;\n }\n compiledStyle[prop] = localizeableValue;\n }\n });\n return [compiledStyle, compiledRules];\n}\nfunction classic(style, name) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n const { animationKeyframes, ...rest } = style;\n const identifier = createIdentifier(\"css\", name, style);\n const selector = `.${identifier}`;\n let animationName;\n if (animationKeyframes != null) {\n const [animationNames, keyframesRules] = processKeyframesValue(animationKeyframes);\n animationName = animationNames.join(\",\");\n compiledRules.push(...keyframesRules);\n }\n const block = createDeclarationBlock({ ...rest, animationName });\n compiledRules.push(`${selector}${block}`);\n compiledStyle[identifier] = identifier;\n return [compiledStyle, [[compiledRules, classicGroup]]];\n}\nfunction inline(originalStyle, isRTL) {\n const style = originalStyle || emptyObject;\n const frozenProps = {};\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null) {\n continue;\n }\n if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {\n if (originalValue === \"start\") {\n value = isRTL ? \"right\" : \"left\";\n } else if (originalValue === \"end\") {\n value = isRTL ? \"left\" : \"right\";\n }\n }\n const propPolyfill = PROPERTIES_I18N[originalProp];\n if (propPolyfill != null) {\n prop = isRTL ? PROPERTIES_FLIP[propPolyfill] : propPolyfill;\n }\n if (originalProp === \"transitionProperty\") {\n const originalValues = Array.isArray(originalValue) ? originalValue : [originalValue];\n originalValues.forEach((val, i) => {\n if (typeof val === \"string\") {\n const valuePolyfill = PROPERTIES_I18N[val];\n if (valuePolyfill != null) {\n originalValues[i] = isRTL ? PROPERTIES_FLIP[valuePolyfill] : valuePolyfill;\n }\n }\n });\n }\n if (!frozenProps[prop]) {\n nextStyle[prop] = value;\n }\n if (PROPERTIES_I18N.hasOwnProperty(originalProp)) {\n frozenProps[prop] = true;\n }\n }\n return createReactDOMStyle(nextStyle, true);\n}\nfunction stringifyValueWithProperty(value, property) {\n const normalizedValue = normalizeValueWithProperty(value, property);\n return typeof normalizedValue !== \"string\" ? JSON.stringify(normalizedValue || \"\") : normalizedValue;\n}\nfunction createAtomicRules(identifier, property, value) {\n const rules = [];\n const selector = `.${identifier}`;\n switch (property) {\n case \"animationKeyframes\": {\n const [animationNames, keyframesRules] = processKeyframesValue(value);\n const block = createDeclarationBlock({\n animationName: animationNames.join(\",\")\n });\n rules.push(`${selector}${block}`, ...keyframesRules);\n break;\n }\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock({ color: value, opacity: 1 });\n rules.push(\n `${selector}::-webkit-input-placeholder${block}`,\n `${selector}::-moz-placeholder${block}`,\n `${selector}:-ms-input-placeholder${block}`,\n `${selector}::placeholder${block}`\n );\n break;\n }\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case \"pointerEvents\": {\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto!important\";\n if (value === \"box-only\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"none\" });\n rules.push(`${selector}>*${block2}`);\n }\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none!important\";\n if (value === \"box-none\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"auto\" });\n rules.push(`${selector}>*${block2}`);\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue });\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case \"scrollbarWidth\": {\n if (value === \"none\") {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`);\n }\n const block = createDeclarationBlock({ scrollbarWidth: value });\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock({ [property]: value });\n rules.push(`${selector}${block}`);\n break;\n }\n }\n return rules;\n}\nfunction createDeclarationBlock(style) {\n const domStyle = createReactDOMStyle(style);\n const declarationsString = Object.keys(domStyle).map((property) => {\n const value = domStyle[property];\n const prop = hyphenateStyleName(property);\n if (Array.isArray(value)) {\n return value.map((v) => `${prop}:${v}`).join(\";\");\n } else {\n return `${prop}:${value}`;\n }\n }).sort().join(\";\");\n return `{${declarationsString};}`;\n}\nfunction createIdentifier(prefix, name, value) {\n const hashedString = simpleHash(name + stringifyValueWithProperty(value, name));\n return process.env.NODE_ENV !== \"production\" ? `${prefix}-${name}-${hashedString}` : `${prefix}-${hashedString}`;\n}\nfunction createKeyframes(keyframes) {\n const prefixes = [\"-webkit-\", \"\"];\n const identifier = createIdentifier(\"r\", \"animation\", keyframes);\n const steps = \"{\" + Object.keys(keyframes).map((stepName) => {\n const rule = keyframes[stepName];\n const block = createDeclarationBlock(rule);\n return `${stepName}${block}`;\n }).join(\"\") + \"}\";\n const rules = prefixes.map((prefix) => {\n return `@${prefix}keyframes ${identifier}${steps}`;\n });\n return [identifier, rules];\n}\nfunction processKeyframesValue(keyframesValue) {\n if (typeof keyframesValue === \"number\") {\n throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);\n }\n const animationNames = [];\n const rules = [];\n const value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];\n value.forEach((keyframes) => {\n if (typeof keyframes === \"string\") {\n animationNames.push(keyframes);\n } else {\n const [identifier, keyframesRules] = createKeyframes(keyframes);\n animationNames.push(identifier);\n rules.push(...keyframesRules);\n }\n });\n return [animationNames, rules];\n}\nexport {\n atomic,\n classic,\n inline,\n stringifyValueWithProperty\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;AAIA,MAAM,wBAAwB,IAAI,IAAI;AACtC,MAAM,cAAc,CAAC;AACrB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,cAAc;CAClB,aAAa;CACb,cAAc;CACd,aAAa;CACb,aAAa;CACb,SAAS;CACT,MAAM;CACN,QAAQ;CACR,UAAU;CACV,oBAAoB;CACpB,SAAS;CACT,kBAAkB;CAClB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;AACnB;AACA,MAAM,sBAAsB;AAC5B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,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iBAAiB,GAAG,OAAO,GAAG;AACpG;AACA,SAAS,gBAAgB,WAAW;CAClC,MAAM,WAAW,CAAC,YAAY,EAAE;CAChC,MAAM,aAAa,iBAAiB,KAAK,aAAa,SAAS;CAC/D,MAAM,QAAQ,MAAM,OAAO,KAAK,SAAS,EAAE,KAAK,aAAa;EAC3D,MAAM,OAAO,UAAU;EACvB,MAAM,QAAQ,uBAAuB,IAAI;EACzC,OAAO,GAAG,WAAW;CACvB,CAAC,EAAE,KAAK,EAAE,IAAI;CACd,MAAM,QAAQ,SAAS,KAAK,WAAW;EACrC,OAAO,IAAI,OAAO,YAAY,aAAa;CAC7C,CAAC;CACD,OAAO,CAAC,YAAY,KAAK;AAC3B;AACA,SAAS,sBAAsB,gBAAgB;CAC7C,IAAI,OAAO,mBAAmB,UAAU;EACtC,MAAM,IAAI,MAAM,+BAA+B,OAAO,gBAAgB;CACxE;CACA,MAAM,iBAAiB,CAAC;CACxB,MAAM,QAAQ,CAAC;CACf,MAAM,QAAQ,MAAM,QAAQ,cAAc,IAAI,iBAAiB,CAAC,cAAc;CAC9E,MAAM,SAAS,cAAc;EAC3B,IAAI,OAAO,cAAc,UAAU;GACjC,eAAe,KAAK,SAAS;EAC/B,OAAO;GACL,MAAM,CAAC,YAAY,kBAAkB,gBAAgB,SAAS;GAC9D,eAAe,KAAK,UAAU;GAC9B,MAAM,KAAK,GAAG,cAAc;EAC9B;CACF,CAAC;CACD,OAAO,CAAC,gBAAgB,KAAK;AAC/B"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/compiler/index.js"],"sourcesContent":["import { simpleHash } from \"@tamagui/simple-hash\";\nimport { createReactDOMStyle } from \"./createReactDOMStyle\";\nimport { hyphenateStyleName } from \"./hyphenateStyleName\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst cache = /* @__PURE__ */ new Map();\nconst emptyObject = {};\nconst classicGroup = 1;\nconst atomicGroup = 2.2;\nconst customGroup = {\n borderColor: 2,\n borderRadius: 2,\n borderStyle: 2,\n borderWidth: 2,\n display: 2,\n flex: 2,\n margin: 2,\n overflow: 2,\n overscrollBehavior: 2,\n padding: 2,\n marginHorizontal: 2.1,\n marginVertical: 2.1,\n paddingHorizontal: 2.1,\n paddingVertical: 2.1\n};\nconst borderTopLeftRadius = \"borderTopLeftRadius\";\nconst borderTopRightRadius = \"borderTopRightRadius\";\nconst borderBottomLeftRadius = \"borderBottomLeftRadius\";\nconst borderBottomRightRadius = \"borderBottomRightRadius\";\nconst borderLeftColor = \"borderLeftColor\";\nconst borderLeftStyle = \"borderLeftStyle\";\nconst borderLeftWidth = \"borderLeftWidth\";\nconst borderRightColor = \"borderRightColor\";\nconst borderRightStyle = \"borderRightStyle\";\nconst borderRightWidth = \"borderRightWidth\";\nconst right = \"right\";\nconst marginLeft = \"marginLeft\";\nconst marginRight = \"marginRight\";\nconst paddingLeft = \"paddingLeft\";\nconst paddingRight = \"paddingRight\";\nconst left = \"left\";\nconst PROPERTIES_FLIP = {\n [borderTopLeftRadius]: borderTopRightRadius,\n [borderTopRightRadius]: borderTopLeftRadius,\n [borderBottomLeftRadius]: borderBottomRightRadius,\n [borderBottomRightRadius]: borderBottomLeftRadius,\n [borderLeftColor]: borderRightColor,\n [borderLeftStyle]: borderRightStyle,\n [borderLeftWidth]: borderRightWidth,\n [borderRightColor]: borderLeftColor,\n [borderRightStyle]: borderLeftStyle,\n [borderRightWidth]: borderLeftWidth,\n [left]: right,\n [marginLeft]: marginRight,\n [marginRight]: marginLeft,\n [paddingLeft]: paddingRight,\n [paddingRight]: paddingLeft,\n [right]: left\n};\nconst PROPERTIES_I18N = {\n borderTopStartRadius: borderTopLeftRadius,\n borderTopEndRadius: borderTopRightRadius,\n borderBottomStartRadius: borderBottomLeftRadius,\n borderBottomEndRadius: borderBottomRightRadius,\n borderStartColor: borderLeftColor,\n borderStartStyle: borderLeftStyle,\n borderStartWidth: borderLeftWidth,\n borderEndColor: borderRightColor,\n borderEndStyle: borderRightStyle,\n borderEndWidth: borderRightWidth,\n end: right,\n marginStart: marginLeft,\n marginEnd: marginRight,\n paddingStart: paddingLeft,\n paddingEnd: paddingRight,\n start: left\n};\nconst PROPERTIES_VALUE = [\"clear\", \"float\", \"textAlign\"];\nfunction atomic(style) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n function atomicCompile(prop, value) {\n const valueString = stringifyValueWithProperty(value, prop);\n const cacheKey = prop + valueString;\n const cachedResult = cache.get(cacheKey);\n let identifier;\n if (cachedResult != null) {\n identifier = cachedResult[0];\n compiledRules.push(cachedResult[1]);\n } else {\n identifier = createIdentifier(\"r\", prop, value);\n const order = customGroup[prop] || atomicGroup;\n const rules = createAtomicRules(identifier, prop, value);\n const orderedRules = [rules, order];\n compiledRules.push(orderedRules);\n cache.set(cacheKey, [identifier, orderedRules]);\n }\n return identifier;\n }\n Object.keys(style).sort().forEach((prop) => {\n const value = style[prop];\n if (value != null) {\n let localizeableValue;\n if (PROPERTIES_VALUE.indexOf(prop) > -1) {\n const left2 = atomicCompile(prop, \"left\");\n const right2 = atomicCompile(prop, \"right\");\n if (value === \"start\") {\n localizeableValue = [left2, right2];\n } else if (value === \"end\") {\n localizeableValue = [right2, left2];\n }\n }\n const propPolyfill = PROPERTIES_I18N[prop];\n if (propPolyfill != null) {\n const ltr = atomicCompile(propPolyfill, value);\n const rtl = atomicCompile(PROPERTIES_FLIP[propPolyfill], value);\n localizeableValue = [ltr, rtl];\n }\n if (prop === \"transitionProperty\") {\n const values = Array.isArray(value) ? value : [value];\n const polyfillIndices = [];\n for (let i = 0; i < values.length; i++) {\n const val = values[i];\n if (typeof val === \"string\" && PROPERTIES_I18N[val] != null) {\n polyfillIndices.push(i);\n }\n }\n if (polyfillIndices.length > 0) {\n const ltrPolyfillValues = [...values];\n const rtlPolyfillValues = [...values];\n polyfillIndices.forEach((i) => {\n const ltrVal = ltrPolyfillValues[i];\n if (typeof ltrVal === \"string\") {\n const ltrPolyfill = PROPERTIES_I18N[ltrVal];\n const rtlPolyfill = PROPERTIES_FLIP[ltrPolyfill];\n ltrPolyfillValues[i] = ltrPolyfill;\n rtlPolyfillValues[i] = rtlPolyfill;\n const ltr = atomicCompile(prop, ltrPolyfillValues);\n const rtl = atomicCompile(prop, rtlPolyfillValues);\n localizeableValue = [ltr, rtl];\n }\n });\n }\n }\n if (localizeableValue == null) {\n localizeableValue = atomicCompile(prop, value);\n } else {\n compiledStyle[\"$$css$localize\"] = true;\n }\n compiledStyle[prop] = localizeableValue;\n }\n });\n return [compiledStyle, compiledRules];\n}\nfunction classic(style, name) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n const { animationKeyframes, ...rest } = style;\n const identifier = createIdentifier(\"css\", name, style);\n const selector = `.${identifier}`;\n let animationName;\n if (animationKeyframes != null) {\n const [animationNames, keyframesRules] = processKeyframesValue(animationKeyframes);\n animationName = animationNames.join(\",\");\n compiledRules.push(...keyframesRules);\n }\n const block = createDeclarationBlock({ ...rest, animationName });\n compiledRules.push(`${selector}${block}`);\n compiledStyle[identifier] = identifier;\n return [compiledStyle, [[compiledRules, classicGroup]]];\n}\nfunction inline(originalStyle, isRTL) {\n const style = originalStyle || emptyObject;\n const frozenProps = {};\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null) {\n continue;\n }\n if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {\n if (originalValue === \"start\") {\n value = isRTL ? \"right\" : \"left\";\n } else if (originalValue === \"end\") {\n value = isRTL ? \"left\" : \"right\";\n }\n }\n const propPolyfill = PROPERTIES_I18N[originalProp];\n if (propPolyfill != null) {\n prop = isRTL ? PROPERTIES_FLIP[propPolyfill] : propPolyfill;\n }\n if (originalProp === \"transitionProperty\") {\n const originalValues = Array.isArray(originalValue) ? originalValue : [originalValue];\n originalValues.forEach((val, i) => {\n if (typeof val === \"string\") {\n const valuePolyfill = PROPERTIES_I18N[val];\n if (valuePolyfill != null) {\n originalValues[i] = isRTL ? PROPERTIES_FLIP[valuePolyfill] : valuePolyfill;\n }\n }\n });\n }\n if (!frozenProps[prop]) {\n nextStyle[prop] = value;\n }\n if (PROPERTIES_I18N.hasOwnProperty(originalProp)) {\n frozenProps[prop] = true;\n }\n }\n return createReactDOMStyle(nextStyle, true);\n}\nfunction stringifyValueWithProperty(value, property) {\n const normalizedValue = normalizeValueWithProperty(value, property);\n return typeof normalizedValue !== \"string\" ? JSON.stringify(normalizedValue || \"\") : normalizedValue;\n}\nfunction createAtomicRules(identifier, property, value) {\n const rules = [];\n const selector = `.${identifier}`;\n switch (property) {\n case \"animationKeyframes\": {\n const [animationNames, keyframesRules] = processKeyframesValue(value);\n const block = createDeclarationBlock({\n animationName: animationNames.join(\",\")\n });\n rules.push(`${selector}${block}`, ...keyframesRules);\n break;\n }\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock({ color: value, opacity: 1 });\n rules.push(\n `${selector}::-webkit-input-placeholder${block}`,\n `${selector}::-moz-placeholder${block}`,\n `${selector}:-ms-input-placeholder${block}`,\n `${selector}::placeholder${block}`\n );\n break;\n }\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case \"pointerEvents\": {\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto!important\";\n if (value === \"box-only\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"none\" });\n rules.push(`${selector}>*${block2}`);\n }\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none!important\";\n if (value === \"box-none\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"auto\" });\n rules.push(`${selector}>*${block2}`);\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue });\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case \"scrollbarWidth\": {\n if (value === \"none\") {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`);\n }\n const block = createDeclarationBlock({ scrollbarWidth: value });\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock({ [property]: value });\n rules.push(`${selector}${block}`);\n break;\n }\n }\n return rules;\n}\nfunction createDeclarationBlock(style) {\n const domStyle = createReactDOMStyle(style);\n const declarationsString = Object.keys(domStyle).map((property) => {\n const value = domStyle[property];\n const prop = hyphenateStyleName(property);\n if (Array.isArray(value)) {\n return value.map((v) => `${prop}:${v}`).join(\";\");\n } else {\n return `${prop}:${value}`;\n }\n }).sort().join(\";\");\n return `{${declarationsString};}`;\n}\nfunction createIdentifier(prefix, name, value) {\n const hashedString = simpleHash(name + stringifyValueWithProperty(value, name));\n return process.env.NODE_ENV !== \"production\" ? `${prefix}-${name}-${hashedString}` : `${prefix}-${hashedString}`;\n}\nfunction createKeyframes(keyframes) {\n const prefixes = [\"-webkit-\", \"\"];\n const identifier = createIdentifier(\"r\", \"animation\", keyframes);\n const steps = \"{\" + Object.keys(keyframes).map((stepName) => {\n const rule = keyframes[stepName];\n const block = createDeclarationBlock(rule);\n return `${stepName}${block}`;\n }).join(\"\") + \"}\";\n const rules = prefixes.map((prefix) => {\n return `@${prefix}keyframes ${identifier}${steps}`;\n });\n return [identifier, rules];\n}\nfunction processKeyframesValue(keyframesValue) {\n if (typeof keyframesValue === \"number\") {\n throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);\n }\n const animationNames = [];\n const rules = [];\n const value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];\n value.forEach((keyframes) => {\n if (typeof keyframes === \"string\") {\n animationNames.push(keyframes);\n } else {\n const [identifier, keyframesRules] = createKeyframes(keyframes);\n animationNames.push(identifier);\n rules.push(...keyframesRules);\n }\n });\n return [animationNames, rules];\n}\nexport {\n atomic,\n classic,\n inline,\n stringifyValueWithProperty\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;AAIA,MAAM,wBAAwB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AC,cAAc;CAC9E,MAAM,SAAS,cAAc;EAC3B,IAAI,OAAO,cAAc,UAAU;GACjC,eAAe,KAAK,SAAS;EAC/B,OAAO;GACL,MAAM,CAAC,YAAY,kBAAkB,gBAAgB,SAAS;GAC9D,eAAe,KAAK,UAAU;GAC9B,MAAM,KAAK,GAAG,cAAc;EAC9B;CACF,CAAC;CACD,OAAO,CAAC,gBAAgB,KAAK;AAC/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeColor.js","names":[],"sources":["esm/StyleSheet/compiler/normalizeColor.js"],"sourcesContent":["import { isWebColor } from \"../../modules/isWebColor\";\nimport { processColor } from \"../../modules/processColor\";\n\nconst normalizeColor = (color, opacity = 1) => {\n\tif (color == null) return;\n\tif (typeof color === \"string\" && isWebColor(color)) return color;\n\tconst colorInt = processColor(color);\n\tif (colorInt != null) return `rgba(${colorInt >> 16 & 255},${colorInt >> 8 & 255},${colorInt & 255},${((colorInt >> 24 & 255) / 255 * opacity).toFixed(2)})`;\n\tif (typeof color === \"string\") return color;\n};\n\nexport { normalizeColor };"],"mappings":";;;;AAGA,MAAM,kBAAkB,OAAO,UAAU,MAAM;CAC9C,IAAI,SAAS,MAAM;CACnB,IAAI,OAAO,UAAU,YAAY,WAAW,KAAK,GAAG,OAAO;CAC3D,MAAM,WAAW,aAAa,KAAK;CACnC,IAAI,YAAY,MAAM,OAAO,QAAQ,YAAY,KAAK,IAAI,GAAG,YAAY,IAAI,IAAI,GAAG,WAAW,IAAI,KAAK,YAAY,KAAK,OAAO,MAAM,SAAS,QAAQ,CAAC,EAAE;CAC1J,IAAI,OAAO,UAAU,UAAU,OAAO;AACvC"}
1
+ {"version":3,"file":"normalizeColor.js","names":[],"sources":["esm/StyleSheet/compiler/normalizeColor.js"],"sourcesContent":["import { isWebColor } from \"../../modules/isWebColor\";\nimport { processColor } from \"../../modules/processColor\";\n\nconst normalizeColor = (color, opacity = 1) => {\n\tif (color == null) return;\n\tif (typeof color === \"string\" && isWebColor(color)) return color;\n\tconst colorInt = processColor(color);\n\tif (colorInt != null) return `rgba(${colorInt >> 16 & 255},${colorInt >> 8 & 255},${colorInt & 255},${((colorInt >> 24 & 255) / 255 * opacity).toFixed(2)})`;\n\tif (typeof color === \"string\") return color;\n};\n\nexport { normalizeColor };"],"mappings":";;;;AAGA,MAAM,kBAAkB,OAAO,UAAU,MAAM;CAC9C,IAAI,SAAS,MAAM;CACnB,IAAI,OAAO,UAAU,YAAY,WAAW,KAAK,GAAG,OAAO;CAC3D,MAAM,WAAW,aAAa,KAAK;CACnC,IAAI,YAAY,MAAM,OAAO,QAAQ,YAAY,KAAK,IAAI,GAAG,YAAY,IAAI,IAAI,GAAG,WAAW,IAAI,KAAK,YAAY,KAAK,OAAO,MAAM,QAAO,CAAE,QAAQ,CAAC,EAAE;CAC1J,IAAI,OAAO,UAAU,UAAU,OAAO;AACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createOrderedCSSStyleSheet.js","names":[],"sources":["esm/StyleSheet/dom/createOrderedCSSStyleSheet.js"],"sourcesContent":["const slice = Array.prototype.slice;\nfunction createOrderedCSSStyleSheet(sheet) {\n const groups = {};\n const selectors = {};\n if (sheet != null) {\n let group;\n slice.call(sheet.cssRules).forEach((cssRule, i) => {\n const cssText = cssRule.cssText;\n if (cssText.indexOf(\"stylesheet-group\") > -1) {\n group = decodeGroupRule(cssRule);\n groups[group] = { start: i, rules: [cssText] };\n } else {\n const selectorText = getSelectorText(cssText);\n if (selectorText != null) {\n selectors[selectorText] = true;\n groups[group].rules.push(cssText);\n }\n }\n });\n }\n function sheetInsert(sheet2, group, text) {\n const orderedGroups = getOrderedGroups(groups);\n const groupIndex = orderedGroups.indexOf(group);\n const nextGroupIndex = groupIndex + 1;\n const nextGroup = orderedGroups[nextGroupIndex];\n const position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length;\n const isInserted = insertRuleAt(sheet2, text, position);\n if (isInserted) {\n if (groups[group].start == null) {\n groups[group].start = position;\n }\n for (let i = nextGroupIndex; i < orderedGroups.length; i += 1) {\n const groupNumber = orderedGroups[i];\n const previousStart = groups[groupNumber].start || 0;\n groups[groupNumber].start = previousStart + 1;\n }\n }\n return isInserted;\n }\n const OrderedCSSStyleSheet = {\n /**\n * The textContent of the style sheet.\n */\n getTextContent() {\n return getOrderedGroups(groups).map((group) => {\n const rules = groups[group].rules;\n const marker = rules.shift();\n rules.sort();\n rules.unshift(marker);\n return rules.join(\"\\n\");\n }).join(\"\\n\");\n },\n /**\n * Insert a rule into the style sheet\n */\n insert(cssText, groupValue) {\n const group = Number(groupValue);\n if (groups[group] == null) {\n const markerRule = encodeGroupRule(group);\n groups[group] = { start: null, rules: [markerRule] };\n if (sheet != null) {\n sheetInsert(sheet, group, markerRule);\n }\n }\n const selectorText = getSelectorText(cssText);\n if (selectorText != null && selectors[selectorText] == null) {\n selectors[selectorText] = true;\n groups[group].rules.push(cssText);\n if (sheet != null) {\n const isInserted = sheetInsert(sheet, group, cssText);\n if (!isInserted) {\n groups[group].rules.pop();\n }\n }\n }\n }\n };\n return OrderedCSSStyleSheet;\n}\nfunction encodeGroupRule(group) {\n return `[stylesheet-group=\"${group}\"]{}`;\n}\nconst groupPattern = /[\"']/g;\nfunction decodeGroupRule(cssRule) {\n return Number(cssRule.selectorText.split(groupPattern)[1]);\n}\nfunction getOrderedGroups(obj) {\n return Object.keys(obj).map(Number).sort((a, b) => a > b ? 1 : -1);\n}\nconst selectorPattern = /\\s*([,])\\s*/g;\nfunction getSelectorText(cssText) {\n const selector = cssText.split(\"{\")[0].trim();\n return selector !== \"\" ? selector.replace(selectorPattern, \"$1\") : null;\n}\nfunction insertRuleAt(root, cssText, position) {\n try {\n root.insertRule(cssText, position);\n return true;\n } catch (e) {\n return false;\n }\n}\nexport {\n createOrderedCSSStyleSheet\n};\n//# sourceMappingURL=createOrderedCSSStyleSheet.js.map\n"],"mappings":";AAAA,MAAM,QAAQ,MAAM,UAAU;AAC9B,SAAS,2BAA2B,O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Sheet.js","names":[],"sources":["esm/StyleSheet/dom/createOrderedCSSStyleSheet.js"],"sourcesContent":["const slice = Array.prototype.slice;\nfunction createOrderedCSSStyleSheet(sheet) {\n const groups = {};\n const selectors = {};\n if (sheet != null) {\n let group;\n slice.call(sheet.cssRules).forEach((cssRule, i) => {\n const cssText = cssRule.cssText;\n if (cssText.indexOf(\"stylesheet-group\") > -1) {\n group = decodeGroupRule(cssRule);\n groups[group] = { start: i, rules: [cssText] };\n } else {\n const selectorText = getSelectorText(cssText);\n if (selectorText != null) {\n selectors[selectorText] = true;\n groups[group].rules.push(cssText);\n }\n }\n });\n }\n function sheetInsert(sheet2, group, text) {\n const orderedGroups = getOrderedGroups(groups);\n const groupIndex = orderedGroups.indexOf(group);\n const nextGroupIndex = groupIndex + 1;\n const nextGroup = orderedGroups[nextGroupIndex];\n const position = nextGroup != null && groups[nextGroup].start != null ? groups[nextGroup].start : sheet2.cssRules.length;\n const isInserted = insertRuleAt(sheet2, text, position);\n if (isInserted) {\n if (groups[group].start == null) {\n groups[group].start = position;\n }\n for (let i = nextGroupIndex; i < orderedGroups.length; i += 1) {\n const groupNumber = orderedGroups[i];\n const previousStart = groups[groupNumber].start || 0;\n groups[groupNumber].start = previousStart + 1;\n }\n }\n return isInserted;\n }\n const OrderedCSSStyleSheet = {\n /**\n * The textContent of the style sheet.\n */\n getTextContent() {\n return getOrderedGroups(groups).map((group) => {\n const rules = groups[group].rules;\n const marker = rules.shift();\n rules.sort();\n rules.unshift(marker);\n return rules.join(\"\\n\");\n }).join(\"\\n\");\n },\n /**\n * Insert a rule into the style sheet\n */\n insert(cssText, groupValue) {\n const group = Number(groupValue);\n if (groups[group] == null) {\n const markerRule = encodeGroupRule(group);\n groups[group] = { start: null, rules: [markerRule] };\n if (sheet != null) {\n sheetInsert(sheet, group, markerRule);\n }\n }\n const selectorText = getSelectorText(cssText);\n if (selectorText != null && selectors[selectorText] == null) {\n selectors[selectorText] = true;\n groups[group].rules.push(cssText);\n if (sheet != null) {\n const isInserted = sheetInsert(sheet, group, cssText);\n if (!isInserted) {\n groups[group].rules.pop();\n }\n }\n }\n }\n };\n return OrderedCSSStyleSheet;\n}\nfunction encodeGroupRule(group) {\n return `[stylesheet-group=\"${group}\"]{}`;\n}\nconst groupPattern = /[\"']/g;\nfunction decodeGroupRule(cssRule) {\n return Number(cssRule.selectorText.split(groupPattern)[1]);\n}\nfunction getOrderedGroups(obj) {\n return Object.keys(obj).map(Number).sort((a, b) => a > b ? 1 : -1);\n}\nconst selectorPattern = /\\s*([,])\\s*/g;\nfunction getSelectorText(cssText) {\n const selector = cssText.split(\"{\")[0].trim();\n return selector !== \"\" ? selector.replace(selectorPattern, \"$1\") : null;\n}\nfunction insertRuleAt(root, cssText, position) {\n try {\n root.insertRule(cssText, position);\n return true;\n } catch (e) {\n return false;\n }\n}\nexport {\n createOrderedCSSStyleSheet\n};\n//# sourceMappingURL=createOrderedCSSStyleSheet.js.map\n"],"mappings":";AAAA,MAAM,QAAQ,MAAM,UAAU;AAC9B,SAAS,2BAA2B,OAAO;CACzC,MAAM,SAAS,CAAC;CAChB,MAAM,YAAY,CAAC;CACnB,IAAI,SAAS,MAAM;EACjB,IAAI;EACJ,MAAM,KAAK,MAAM,QAAQ,CAAC,CAAC,SAAS,SAAS,MAAM;GACjD,MAAM,UAAU,QAAQ;GACxB,IAAI,QAAQ,QAAQ,kBAAkB,IAAI,CAAC,GAAG;IAC5C,QAAQ,gBAAgB,OAAO;IAC/B,OAAO,SAAS;KAAE,OAAO;KAAG,OAAO,CAAC,OAAO;IAAE;GAC/C,OAAO;IACL,MAAM,eAAe,gBAAgB,OAAO;IAC5C,IAAI,gBAAgB,MAAM;KACxB,UAAU,gBAAgB;KAC1B,OAAO,MAAM,CAAC,MAAM,KAAK,OAAO;IAClC;GACF;EACF,CAAC;CACH;CACA,SAAS,YAAY,QAAQ,OAAO,MAAM;EACxC,MAAM,gBAAgB,iBAAiB,MAAM;EAC7C,MAAM,aAAa,cAAc,QAAQ,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ACpD,IAAI,CAAC,YAAY;MACf,OAAO,MAAM,CAAC,MAAM,IAAI;KAC1B;IACF;GACF;EACF;CACF;CACA,OAAO;AACT;AACA,SAAS,gBAAgB,OAAO;CAC9B,OAAO,sBAAsB,MAAM;AACrC;AACA,MAAM,eAAe;AACrB,SAAS,gBAAgB,SAAS;CAChC,OAAO,OAAO,QAAQ,aAAa,MAAM,YAAY,CAAC,CAAC,EAAE;AAC3D;AACA,SAAS,iBAAiB,KAAK;CAC7B,OAAO,OAAO,KAAK,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC;AACnE;AACA,MAAM,kBAAkB;AACxB,SAAS,gBAAgB,SAAS;CAChC,MAAM,WAAW,QAAQ,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;CAC5C,OAAO,aAAa,KAAK,SAAS,QAAQ,iBAAiB,IAAI,IAAI;AACrE;AACA,SAAS,aAAa,MAAM,SAAS,UAAU;CAC7C,IAAI;EACF,KAAK,WAAW,SAAS,QAAQ;EACjC,OAAO;CACT,SAAS,GAAG;EACV,OAAO;CACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/index.js"],"sourcesContent":["const absoluteFillObject = {\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n};\nconst absoluteFill = absoluteFillObject;\nfunction create(styles) {\n return styles;\n}\nfunction compose(style1, style2) {\n return flatten(style1, style2);\n}\nfunction flatten(...styles) {\n return styles.flat().flat().flat().flat().reduce((acc, cur) => {\n if (cur) {\n Object.assign(acc, cur);\n }\n return acc;\n }, {});\n}\nfunction getSheet() {\n return {\n id: \"\",\n textContent: sheet.getTextContent()\n };\n}\nfunction StyleSheet(styles, options) {\n}\nStyleSheet.absoluteFill = absoluteFill;\nStyleSheet.absoluteFillObject = absoluteFillObject;\nStyleSheet.create = create;\nStyleSheet.compose = compose;\nStyleSheet.flatten = flatten;\nStyleSheet.getSheet = getSheet;\nStyleSheet.hairlineWidth = 1;\nexport {\n StyleSheet,\n flatten\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,qBAAqB;CACzB,UAAU;CACV,MAAM;CACN,OAAO;CACP,KAAK;CACL,QAAQ;AACV;AACA,MAAM,eAAe;AACrB,SAAS,OAAO,QAAQ;CACtB,OAAO;AACT;AACA,SAAS,QAAQ,QAAQ,QAAQ;CAC/B,OAAO,QAAQ,QAAQ,MAAM;AAC/B;AACA,SAAS,QAAQ,GAAG,QAAQ;CAC1B,OAAO,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,KAAK,QAAQ;EAC7D,IAAI,KAAK;GACP,OAAO,OAAO,KAAK,GAAG;EACxB;EACA,OAAO;CACT,GAAG,CAAC,CAAC;AACP;AACA,SAAS,WAAW;CAClB,OAAO;EACL,IAAI;EACJ,aAAa,MAAM,eAAe;CACpC;AACF;AACA,SAAS,WAAW,QAAQ,SAAS,CACrC;AACA,WAAW,eAAe;AAC1B,WAAW,qBAAqB;AAChC,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,WAAW;AACtB,WAAW,gBAAgB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/index.js"],"sourcesContent":["const absoluteFillObject = {\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n};\nconst absoluteFill = absoluteFillObject;\nfunction create(styles) {\n return styles;\n}\nfunction compose(style1, style2) {\n return flatten(style1, style2);\n}\nfunction flatten(...styles) {\n return styles.flat().flat().flat().flat().reduce((acc, cur) => {\n if (cur) {\n Object.assign(acc, cur);\n }\n return acc;\n }, {});\n}\nfunction getSheet() {\n return {\n id: \"\",\n textContent: sheet.getTextContent()\n };\n}\nfunction StyleSheet(styles, options) {\n}\nStyleSheet.absoluteFill = absoluteFill;\nStyleSheet.absoluteFillObject = absoluteFillObject;\nStyleSheet.create = create;\nStyleSheet.compose = compose;\nStyleSheet.flatten = flatten;\nStyleSheet.getSheet = getSheet;\nStyleSheet.hairlineWidth = 1;\nexport {\n StyleSheet,\n flatten\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,qBAAqB;CACzB,UAAU;CACV,MAAM;CACN,OAAO;CACP,KAAK;CACL,QAAQ;AACV;AACA,MAAM,eAAe;AACrB,SAAS,OAAO,QAAQ;CACtB,OAAO;AACT;AACA,SAAS,QAAQ,QAAQ,QAAQ;CAC/B,OAAO,QAAQ,QAAQ,MAAM;AAC/B;AACA,SAAS,QAAQ,GAAG,QAAQ;CAC1B,OAAO,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,KAAK,QAAQ;EAC7D,IAAI,KAAK;GACP,OAAO,OAAO,KAAK,GAAG;EACxB;EACA,OAAO;CACT,GAAG,CAAC,CAAC;AACP;AACA,SAAS,WAAW;CAClB,OAAO;EACL,IAAI;EACJ,aAAa,MAAM,eAAe;CACpC;AACF;AACA,SAAS,WAAW,QAAQ,SAAS,CACrC;AACA,WAAW,eAAe;AAC1B,WAAW,qBAAqB;AAChC,WAAW,SAAS;AACpB,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,WAAW;AACtB,WAAW,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/modules/ImageLoader/index.js"],"sourcesContent":["const dataUriPattern = /^data:/;\nclass ImageUriCache {\n static _maximumEntries = 256;\n static _entries = {};\n static has(uri) {\n const entries = ImageUriCache._entries;\n const isDataUri = dataUriPattern.test(uri);\n return isDataUri || Boolean(entries[uri]);\n }\n static add(uri) {\n const entries = ImageUriCache._entries;\n const lastUsedTimestamp = Date.now();\n if (entries[uri]) {\n entries[uri].lastUsedTimestamp = lastUsedTimestamp;\n entries[uri].refCount += 1;\n } else {\n entries[uri] = {\n lastUsedTimestamp,\n refCount: 1\n };\n }\n }\n static remove(uri) {\n const entries = ImageUriCache._entries;\n if (entries[uri]) {\n entries[uri].refCount -= 1;\n }\n ImageUriCache._cleanUpIfNeeded();\n }\n static _cleanUpIfNeeded() {\n const entries = ImageUriCache._entries;\n const imageUris = Object.keys(entries);\n if (imageUris.length + 1 > ImageUriCache._maximumEntries) {\n let leastRecentlyUsedKey;\n let leastRecentlyUsedEntry;\n imageUris.forEach((uri) => {\n const entry = entries[uri];\n if ((!leastRecentlyUsedEntry || entry.lastUsedTimestamp < leastRecentlyUsedEntry.lastUsedTimestamp) && entry.refCount === 0) {\n leastRecentlyUsedKey = uri;\n leastRecentlyUsedEntry = entry;\n }\n });\n if (leastRecentlyUsedKey) {\n delete entries[leastRecentlyUsedKey];\n }\n }\n }\n}\nlet id = 0;\nconst requests = {};\nconst ImageLoader = {\n abort(requestId) {\n let image = requests[`${requestId}`];\n if (image) {\n image.onerror = null;\n image.onload = null;\n image = null;\n delete requests[`${requestId}`];\n }\n },\n getSize(uri, success, failure) {\n let complete = false;\n const interval = setInterval(callback, 16);\n const requestId = ImageLoader.load(uri, callback, errorCallback);\n function callback() {\n const image = requests[`${requestId}`];\n if (image) {\n const { naturalHeight, naturalWidth } = image;\n if (naturalHeight && naturalWidth) {\n success(naturalWidth, naturalHeight);\n complete = true;\n }\n }\n if (complete) {\n ImageLoader.abort(requestId);\n clearInterval(interval);\n }\n }\n function errorCallback() {\n if (typeof failure === \"function\") {\n failure();\n }\n ImageLoader.abort(requestId);\n clearInterval(interval);\n }\n },\n has(uri) {\n return ImageUriCache.has(uri);\n },\n load(uri, onLoad, onError) {\n id += 1;\n const image = new window.Image();\n image.onerror = onError;\n image.onload = (e) => {\n const onDecode = () => onLoad({ nativeEvent: e });\n if (typeof image.decode === \"function\") {\n image.decode().then(onDecode, onDecode);\n } else {\n setTimeout(onDecode, 0);\n }\n };\n image.src = uri;\n requests[`${id}`] = image;\n return id;\n },\n prefetch(uri) {\n return new Promise((resolve, reject) => {\n ImageLoader.load(\n uri,\n () => {\n ImageUriCache.add(uri);\n ImageUriCache.remove(uri);\n resolve();\n },\n reject\n );\n });\n },\n queryCache(uris) {\n const result = {};\n uris.forEach((u) => {\n if (ImageUriCache.has(u)) {\n result[u] = \"disk/memory\";\n }\n });\n return Promise.resolve(result);\n }\n};\nexport {\n ImageLoader,\n ImageUriCache\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,iBAAiB;AACvB,IAAM,gBAAN,MAAM,cAAc;CAClB,OAAO,kBAAkB;CACzB,OAAO,WAAW,CAAC;CACnB,OAAO,IAAI,KAAK;EACd,MAAM,UAAU,cAAc;EAC9B,MAAM,YAAY,eAAe,KAAK,GAAG;EACzC,OAAO,aAAa,QAAQ,QAAQ,IAAI;CAC1C;CACA,OAAO,IAAI,KAAK;EACd,MAAM,UAAU,cAAc;EAC9B,MAAM,oBAAoB,KAAK,IAAI;EACnC,IAAI,QAAQ,MAAM;GAChB,QAAQ,KAAK,oBAAoB;GACjC,QAAQ,KAAK,YAAY;EAC3B,OAAO;GACL,QAAQ,OAAO;IACb;IACA,UAAU;GACZ;EACF;CACF;CACA,OAAO,OAAO,KAAK;EACjB,MAAM,UAAU,cAAc;EAC9B,IAAI,QAAQ,MAAM;GAChB,QAAQ,KAAK,YAAY;EAC3B;EACA,cAAc,iBAAiB;CACjC;CACA,OAAO,mBAAmB;EACxB,MAAM,UAAU,cAAc;EAC9B,MAAM,YAAY,OAAO,KAAK,OAAO;EACrC,IAAI,UAAU,SAAS,IAAI,cAAc,iBAAiB;GACxD,IAAI;GACJ,IAAI;GACJ,UAAU,SAAS,QAAQ;IACzB,MAAM,QAAQ,QAAQ;IACtB,KAAK,CAAC,0BAA0B,MAAM,oBAAoB,uBAAuB,sBAAsB,MAAM,aAAa,GAAG;KAC3H,uBAAuB;KACvB,yBAAyB;IAC3B;GACF,CAAC;GACD,IAAI,sBAAsB;IACxB,OAAO,QAAQ;GACjB;EACF;C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,OAAO,GAAG;IACxB,QAAQ;GACV,GACA,MACF;EACF,CAAC;CACH;CACA,WAAW,MAAM;EACf,MAAM,SAAS,CAAC;EAChB,KAAK,SAAS,MAAM;GAClB,IAAI,cAAc,IAAI,CAAC,GAAG;IACxB,OAAO,KAAK;GACd;EACF,CAAC;EACD,OAAO,QAAQ,QAAQ,MAAM;CAC/B;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/ImageLoader/index.js"],"sourcesContent":["const dataUriPattern = /^data:/;\nclass ImageUriCache {\n static _maximumEntries = 256;\n static _entries = {};\n static has(uri) {\n const entries = ImageUriCache._entries;\n const isDataUri = dataUriPattern.test(uri);\n return isDataUri || Boolean(entries[uri]);\n }\n static add(uri) {\n const entries = ImageUriCache._entries;\n const lastUsedTimestamp = Date.now();\n if (entries[uri]) {\n entries[uri].lastUsedTimestamp = lastUsedTimestamp;\n entries[uri].refCount += 1;\n } else {\n entries[uri] = {\n lastUsedTimestamp,\n refCount: 1\n };\n }\n }\n static remove(uri) {\n const entries = ImageUriCache._entries;\n if (entries[uri]) {\n entries[uri].refCount -= 1;\n }\n ImageUriCache._cleanUpIfNeeded();\n }\n static _cleanUpIfNeeded() {\n const entries = ImageUriCache._entries;\n const imageUris = Object.keys(entries);\n if (imageUris.length + 1 > ImageUriCache._maximumEntries) {\n let leastRecentlyUsedKey;\n let leastRecentlyUsedEntry;\n imageUris.forEach((uri) => {\n const entry = entries[uri];\n if ((!leastRecentlyUsedEntry || entry.lastUsedTimestamp < leastRecentlyUsedEntry.lastUsedTimestamp) && entry.refCount === 0) {\n leastRecentlyUsedKey = uri;\n leastRecentlyUsedEntry = entry;\n }\n });\n if (leastRecentlyUsedKey) {\n delete entries[leastRecentlyUsedKey];\n }\n }\n }\n}\nlet id = 0;\nconst requests = {};\nconst ImageLoader = {\n abort(requestId) {\n let image = requests[`${requestId}`];\n if (image) {\n image.onerror = null;\n image.onload = null;\n image = null;\n delete requests[`${requestId}`];\n }\n },\n getSize(uri, success, failure) {\n let complete = false;\n const interval = setInterval(callback, 16);\n const requestId = ImageLoader.load(uri, callback, errorCallback);\n function callback() {\n const image = requests[`${requestId}`];\n if (image) {\n const { naturalHeight, naturalWidth } = image;\n if (naturalHeight && naturalWidth) {\n success(naturalWidth, naturalHeight);\n complete = true;\n }\n }\n if (complete) {\n ImageLoader.abort(requestId);\n clearInterval(interval);\n }\n }\n function errorCallback() {\n if (typeof failure === \"function\") {\n failure();\n }\n ImageLoader.abort(requestId);\n clearInterval(interval);\n }\n },\n has(uri) {\n return ImageUriCache.has(uri);\n },\n load(uri, onLoad, onError) {\n id += 1;\n const image = new window.Image();\n image.onerror = onError;\n image.onload = (e) => {\n const onDecode = () => onLoad({ nativeEvent: e });\n if (typeof image.decode === \"function\") {\n image.decode().then(onDecode, onDecode);\n } else {\n setTimeout(onDecode, 0);\n }\n };\n image.src = uri;\n requests[`${id}`] = image;\n return id;\n },\n prefetch(uri) {\n return new Promise((resolve, reject) => {\n ImageLoader.load(\n uri,\n () => {\n ImageUriCache.add(uri);\n ImageUriCache.remove(uri);\n resolve();\n },\n reject\n );\n });\n },\n queryCache(uris) {\n const result = {};\n uris.forEach((u) => {\n if (ImageUriCache.has(u)) {\n result[u] = \"disk/memory\";\n }\n });\n return Promise.resolve(result);\n }\n};\nexport {\n ImageLoader,\n ImageUriCache\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,iBAAiB;AACvB,IAAM,gBAAN,MAAM,cAAc;CAClB,OAAO,kBAAkB;CACzB,OAAO,WAAW,CAAC;CACnB,OAAO,IAAI,KAAK;EACd,MAAM,UAAU,cAAc;EAC9B,MAAM,YAAY,eAAe,KAAK,GAAG;EACzC,OAAO,aAAa,QAAQ,QAAQ,IAAI;CAC1C;CACA,OAAO,IAAI,KAAK;EACd,MAAM,UAAU,cAAc;EAC9B,MAAM,oBAAoB,KAAK,IAAI;EACnC,IAAI,QAAQ,MAAM;GAChB,QAAQ,IAAI,CAAC,oBAAoB;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AO,YAAY,YAAY;IACjC,QAAQ;GACV;GACA,YAAY,MAAM,SAAS;GAC3B,cAAc,QAAQ;EACxB;CACF;CACA,IAAI,KAAK;EACP,OAAO,cAAc,IAAI,GAAG;CAC9B;CACA,KAAK,KAAK,QAAQ,SAAS;EACzB,MAAM;EACN,MAAM,QAAQ,IAAI,OAAO,MAAM;EAC/B,MAAM,UAAU;EAChB,MAAM,UAAU,MAAM;GACpB,MAAM,iBAAiB,OAAO,EAAE,aAAa,EAAE,CAAC;GAChD,IAAI,OAAO,MAAM,WAAW,YAAY;IACtC,MAAM,OAAO,CAAC,CAAC,KAAK,UAAU,QAAQ;GACxC,OAAO;IACL,WAAW,UAAU,CAAC;GACxB;EACF;EACA,MAAM,MAAM;EACZ,SAAS,GAAG,QAAQ;EACpB,OAAO;CACT;CACA,SAAS,KAAK;EACZ,OAAO,IAAI,SAAS,SAAS,WAAW;GACtC,YAAY,KACV,WACM;IACJ,cAAc,IAAI,GAAG;IACrB,cAAc,OAAO,GAAG;IACxB,QAAQ;GACV,GACA,MACF;EACF,CAAC;CACH;CACA,WAAW,MAAM;EACf,MAAM,SAAS,CAAC;EAChB,KAAK,SAAS,MAAM;GAClB,IAAI,cAAc,IAAI,CAAC,GAAG;IACxB,OAAO,KAAK;GACd;EACF,CAAC;EACD,OAAO,QAAQ,QAAQ,MAAM;CAC/B;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionManager.js","names":[],"sources":["esm/modules/InteractionManager.js"],"sourcesContent":["import { invariant } from \"./invariant\";\nimport { requestIdleCallback } from \"./requestIdleCallback/index\";\nclass EventEmitter {\n _registry = {};\n addListener(eventType, listener, context) {\n const registrations = this._allocate(eventType);\n const registration = {\n context,\n listener,\n remove: () => {\n registrations.delete(registration);\n }\n };\n registrations.add(registration);\n return registration;\n }\n emit(eventType, ...args) {\n const registrations = this._registry[eventType];\n if (registrations != null) {\n for (const registration of Array.from(registrations)) {\n registration.listener.apply(registration.context, args);\n }\n }\n }\n _allocate(eventType) {\n let registrations = this._registry[eventType];\n if (registrations == null) {\n registrations = /* @__PURE__ */ new Set();\n this._registry[eventType] = registrations;\n }\n return registrations;\n }\n}\nclass TaskQueue {\n _queueStack;\n _onMoreTasks;\n constructor({ onMoreTasks }) {\n this._onMoreTasks = onMoreTasks;\n this._queueStack = [{ tasks: [], popable: true }];\n }\n enqueueTasks(tasks) {\n tasks.forEach((task) => this._enqueue(task));\n }\n cancelTasks(tasksToCancel) {\n this._queueStack = this._queueStack.map((queue) => ({\n ...queue,\n tasks: queue.tasks.filter((task) => !tasksToCancel.includes(task))\n })).filter((queue, idx) => queue.tasks.length > 0 || idx === 0);\n }\n hasTasksToProcess() {\n return this._getCurrentQueue().length > 0;\n }\n processNext() {\n const queue = this._getCurrentQueue();\n if (queue.length) {\n const task = queue.shift();\n try {\n if (typeof task === \"object\" && task && \"gen\" in task) {\n this._genPromise(task);\n } else if (typeof task === \"object\" && task && \"run\" in task) {\n ;\n task.run();\n } else {\n invariant(\n typeof task === \"function\",\n \"Expected Function, SimpleTask, or PromiseTask, but got:\\n\" + JSON.stringify(task, null, 2)\n );\n task();\n }\n } catch (e) {\n if (e instanceof Error) {\n const taskName = task && typeof task === \"object\" && \"name\" in task ? task.name : \"\";\n e.message = \"TaskQueue: Error with task \" + taskName + \": \" + e.message;\n }\n throw e;\n }\n }\n }\n _enqueue(task) {\n this._getCurrentQueue().push(task);\n }\n _getCurrentQueue() {\n const stackIdx = this._queueStack.length - 1;\n const queue = this._queueStack[stackIdx];\n if (queue.popable && queue.tasks.length === 0 && stackIdx > 0) {\n this._queueStack.pop();\n return this._getCurrentQueue();\n } else {\n return queue.tasks;\n }\n }\n _genPromise(task) {\n const length = this._queueStack.push({ tasks: [], popable: false });\n const stackIdx = length - 1;\n const stackItem = this._queueStack[stackIdx];\n task.gen().then(() => {\n stackItem.popable = true;\n if (this.hasTasksToProcess()) {\n this._onMoreTasks();\n }\n }).catch((ex) => {\n setTimeout(() => {\n if (ex instanceof Error) {\n ex.message = `TaskQueue: Error resolving Promise in task ${task.name}: ${ex.message}`;\n }\n throw ex;\n }, 0);\n });\n }\n}\nconst _emitter = new EventEmitter();\nconst InteractionManager = {\n Events: {\n interactionStart: \"interactionStart\",\n interactionComplete: \"interactionComplete\"\n },\n /**\n * Schedule a function to run after all interactions have completed.\n */\n runAfterInteractions(task) {\n const tasks = [];\n const promise = new Promise((resolve) => {\n _scheduleUpdate();\n if (task) {\n tasks.push(task);\n }\n tasks.push({\n run: resolve,\n name: \"resolve \" + (task && typeof task === \"object\" && \"name\" in task && task.name || \"?\")\n });\n _taskQueue.enqueueTasks(tasks);\n });\n return {\n then: promise.then.bind(promise),\n done: promise.then.bind(promise),\n cancel: () => {\n _taskQueue.cancelTasks(tasks);\n }\n };\n },\n /**\n * Notify manager that an interaction has started.\n */\n createInteractionHandle() {\n _scheduleUpdate();\n const handle = ++_inc;\n _addInteractionSet.add(handle);\n return handle;\n },\n /**\n * Notify manager that an interaction has completed.\n */\n clearInteractionHandle(handle) {\n invariant(!!handle, \"Must provide a handle to clear.\");\n _scheduleUpdate();\n _addInteractionSet.delete(handle);\n _deleteInteractionSet.add(handle);\n },\n addListener: _emitter.addListener.bind(_emitter),\n /**\n * Set deadline for task processing\n */\n setDeadline(deadline) {\n _deadline = deadline;\n }\n};\nconst _interactionSet = /* @__PURE__ */ new Set();\nconst _addInteractionSet = /* @__PURE__ */ new Set();\nconst _deleteInteractionSet = /* @__PURE__ */ new Set();\nconst _taskQueue = new TaskQueue({ onMoreTasks: _scheduleUpdate });\nlet _nextUpdateHandle = null;\nlet _inc = 0;\nlet _deadline = -1;\nfunction _scheduleUpdate() {\n if (!_nextUpdateHandle) {\n if (_deadline > 0) {\n _nextUpdateHandle = setTimeout(_processUpdate);\n } else {\n _nextUpdateHandle = requestIdleCallback(_processUpdate);\n }\n }\n}\nfunction _processUpdate() {\n _nextUpdateHandle = null;\n const interactionCount = _interactionSet.size;\n _addInteractionSet.forEach((handle) => _interactionSet.add(handle));\n _deleteInteractionSet.forEach((handle) => _interactionSet.delete(handle));\n const nextInteractionCount = _interactionSet.size;\n if (interactionCount !== 0 && nextInteractionCount === 0) {\n _emitter.emit(\"interactionComplete\");\n } else if (interactionCount === 0 && nextInteractionCount !== 0) {\n _emitter.emit(\"interactionStart\");\n }\n if (nextInteractionCount === 0) {\n const begin = Date.now();\n while (_taskQueue.hasTasksToProcess()) {\n _taskQueue.processNext();\n if (_deadline > 0 && Date.now() - begin >= _deadline) {\n _scheduleUpdate();\n break;\n }\n }\n }\n _addInteractionSet.clear();\n _deleteInteractionSet.clear();\n}\nexport {\n InteractionManager\n};\n//# sourceMappingURL=InteractionManager.js.map\n"],"mappings":";;;;AAEA,IAAM,eAAN,MAAmB;CACjB,YAAY,CAAC;CACb,YAAY,WAAW,UAAU,SAAS;EACxC,MAAM,gBAAgB,KAAK,UAAU,SAAS;EAC9C,MAAM,eAAe;GACnB;GACA;GACA,cAAc;IACZ,cAAc,OAAO,YAAY;GACnC;EACF;EACA,cAAc,IAAI,YAAY;EAC9B,OAAO;CACT;CACA,KAAK,WAAW,GAAG,MAAM;EACvB,MAAM,gBAAgB,KAAK,UAAU;EACrC,IAAI,iBAAiB,MAAM;GACzB,KAAK,MAAM,gBAAgB,MAAM,KAAK,aAAa,GAAG;IACpD,aAAa,SAAS,MAAM,aAAa,SAAS,IAAI;GACxD;EACF;CACF;CACA,UAAU,WAAW;EACnB,IAAI,gBAAgB,KAAK,UAAU;EACnC,IAAI,iBAAiB,MAAM;GACzB,gCAAgC,IAAI,IAAI;GACxC,KAAK,UAAU,aAAa;EAC9B;EACA,OAAO;CACT;AACF;AACA,IAAM,YAAN,MAAgB;CACd;CACA;CACA,YAAY,EAAE,eAAe;EAC3B,KAAK,eAAe;EACpB,KAAK,cAAc,CAAC;GAAE,OAAO,CAAC;GAAG,SAAS;EAAK,CAAC;CAClD;CACA,aAAa,OAAO;EAClB,MAAM,SAAS,SAAS,KAAK,SAAS,IAAI,CAAC;CAC7C;CACA,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wCAAwC,IAAI,IAAI;AACtD,MAAM,aAAa,IAAI,UAAU,EAAE,aAAa,gBAAgB,CAAC;AACjE,IAAI,oBAAoB;AACxB,IAAI,OAAO;AACX,IAAI,YAAY,CAAC;AACjB,SAAS,kBAAkB;CACzB,IAAI,CAAC,mBAAmB;EACtB,IAAI,YAAY,GAAG;GACjB,oBAAoB,WAAW,cAAc;EAC/C,OAAO;GACL,oBAAoB,oBAAoB,cAAc;EACxD;CACF;AACF;AACA,SAAS,iBAAiB;CACxB,oBAAoB;CACpB,MAAM,mBAAmB,gBAAgB;CACzC,mBAAmB,SAAS,WAAW,gBAAgB,IAAI,MAAM,CAAC;CAClE,sBAAsB,SAAS,WAAW,gBAAgB,OAAO,MAAM,CAAC;CACxE,MAAM,uBAAuB,gBAAgB;CAC7C,IAAI,qBAAqB,KAAK,yBAAyB,GAAG;EACxD,SAAS,KAAK,qBAAqB;CACrC,OAAO,IAAI,qBAAqB,KAAK,yBAAyB,GAAG;EAC/D,SAAS,KAAK,kBAAkB;CAClC;CACA,IAAI,yBAAyB,GAAG;EAC9B,MAAM,QAAQ,KAAK,IAAI;EACvB,OAAO,WAAW,kBAAkB,GAAG;GACrC,WAAW,YAAY;GACvB,IAAI,YAAY,KAAK,KAAK,IAAI,IAAI,SAAS,WAAW;IACpD,gBAAgB;IAChB;GACF;EACF;CACF;CACA,mBAAmB,MAAM;CACzB,sBAAsB,MAAM;AAC9B"}
1
+ {"version":3,"file":"InteractionManager.js","names":[],"sources":["esm/modules/InteractionManager.js"],"sourcesContent":["import { invariant } from \"./invariant\";\nimport { requestIdleCallback } from \"./requestIdleCallback/index\";\nclass EventEmitter {\n _registry = {};\n addListener(eventType, listener, context) {\n const registrations = this._allocate(eventType);\n const registration = {\n context,\n listener,\n remove: () => {\n registrations.delete(registration);\n }\n };\n registrations.add(registration);\n return registration;\n }\n emit(eventType, ...args) {\n const registrations = this._registry[eventType];\n if (registrations != null) {\n for (const registration of Array.from(registrations)) {\n registration.listener.apply(registration.context, args);\n }\n }\n }\n _allocate(eventType) {\n let registrations = this._registry[eventType];\n if (registrations == null) {\n registrations = /* @__PURE__ */ new Set();\n this._registry[eventType] = registrations;\n }\n return registrations;\n }\n}\nclass TaskQueue {\n _queueStack;\n _onMoreTasks;\n constructor({ onMoreTasks }) {\n this._onMoreTasks = onMoreTasks;\n this._queueStack = [{ tasks: [], popable: true }];\n }\n enqueueTasks(tasks) {\n tasks.forEach((task) => this._enqueue(task));\n }\n cancelTasks(tasksToCancel) {\n this._queueStack = this._queueStack.map((queue) => ({\n ...queue,\n tasks: queue.tasks.filter((task) => !tasksToCancel.includes(task))\n })).filter((queue, idx) => queue.tasks.length > 0 || idx === 0);\n }\n hasTasksToProcess() {\n return this._getCurrentQueue().length > 0;\n }\n processNext() {\n const queue = this._getCurrentQueue();\n if (queue.length) {\n const task = queue.shift();\n try {\n if (typeof task === \"object\" && task && \"gen\" in task) {\n this._genPromise(task);\n } else if (typeof task === \"object\" && task && \"run\" in task) {\n ;\n task.run();\n } else {\n invariant(\n typeof task === \"function\",\n \"Expected Function, SimpleTask, or PromiseTask, but got:\\n\" + JSON.stringify(task, null, 2)\n );\n task();\n }\n } catch (e) {\n if (e instanceof Error) {\n const taskName = task && typeof task === \"object\" && \"name\" in task ? task.name : \"\";\n e.message = \"TaskQueue: Error with task \" + taskName + \": \" + e.message;\n }\n throw e;\n }\n }\n }\n _enqueue(task) {\n this._getCurrentQueue().push(task);\n }\n _getCurrentQueue() {\n const stackIdx = this._queueStack.length - 1;\n const queue = this._queueStack[stackIdx];\n if (queue.popable && queue.tasks.length === 0 && stackIdx > 0) {\n this._queueStack.pop();\n return this._getCurrentQueue();\n } else {\n return queue.tasks;\n }\n }\n _genPromise(task) {\n const length = this._queueStack.push({ tasks: [], popable: false });\n const stackIdx = length - 1;\n const stackItem = this._queueStack[stackIdx];\n task.gen().then(() => {\n stackItem.popable = true;\n if (this.hasTasksToProcess()) {\n this._onMoreTasks();\n }\n }).catch((ex) => {\n setTimeout(() => {\n if (ex instanceof Error) {\n ex.message = `TaskQueue: Error resolving Promise in task ${task.name}: ${ex.message}`;\n }\n throw ex;\n }, 0);\n });\n }\n}\nconst _emitter = new EventEmitter();\nconst InteractionManager = {\n Events: {\n interactionStart: \"interactionStart\",\n interactionComplete: \"interactionComplete\"\n },\n /**\n * Schedule a function to run after all interactions have completed.\n */\n runAfterInteractions(task) {\n const tasks = [];\n const promise = new Promise((resolve) => {\n _scheduleUpdate();\n if (task) {\n tasks.push(task);\n }\n tasks.push({\n run: resolve,\n name: \"resolve \" + (task && typeof task === \"object\" && \"name\" in task && task.name || \"?\")\n });\n _taskQueue.enqueueTasks(tasks);\n });\n return {\n then: promise.then.bind(promise),\n done: promise.then.bind(promise),\n cancel: () => {\n _taskQueue.cancelTasks(tasks);\n }\n };\n },\n /**\n * Notify manager that an interaction has started.\n */\n createInteractionHandle() {\n _scheduleUpdate();\n const handle = ++_inc;\n _addInteractionSet.add(handle);\n return handle;\n },\n /**\n * Notify manager that an interaction has completed.\n */\n clearInteractionHandle(handle) {\n invariant(!!handle, \"Must provide a handle to clear.\");\n _scheduleUpdate();\n _addInteractionSet.delete(handle);\n _deleteInteractionSet.add(handle);\n },\n addListener: _emitter.addListener.bind(_emitter),\n /**\n * Set deadline for task processing\n */\n setDeadline(deadline) {\n _deadline = deadline;\n }\n};\nconst _interactionSet = /* @__PURE__ */ new Set();\nconst _addInteractionSet = /* @__PURE__ */ new Set();\nconst _deleteInteractionSet = /* @__PURE__ */ new Set();\nconst _taskQueue = new TaskQueue({ onMoreTasks: _scheduleUpdate });\nlet _nextUpdateHandle = null;\nlet _inc = 0;\nlet _deadline = -1;\nfunction _scheduleUpdate() {\n if (!_nextUpdateHandle) {\n if (_deadline > 0) {\n _nextUpdateHandle = setTimeout(_processUpdate);\n } else {\n _nextUpdateHandle = requestIdleCallback(_processUpdate);\n }\n }\n}\nfunction _processUpdate() {\n _nextUpdateHandle = null;\n const interactionCount = _interactionSet.size;\n _addInteractionSet.forEach((handle) => _interactionSet.add(handle));\n _deleteInteractionSet.forEach((handle) => _interactionSet.delete(handle));\n const nextInteractionCount = _interactionSet.size;\n if (interactionCount !== 0 && nextInteractionCount === 0) {\n _emitter.emit(\"interactionComplete\");\n } else if (interactionCount === 0 && nextInteractionCount !== 0) {\n _emitter.emit(\"interactionStart\");\n }\n if (nextInteractionCount === 0) {\n const begin = Date.now();\n while (_taskQueue.hasTasksToProcess()) {\n _taskQueue.processNext();\n if (_deadline > 0 && Date.now() - begin >= _deadline) {\n _scheduleUpdate();\n break;\n }\n }\n }\n _addInteractionSet.clear();\n _deleteInteractionSet.clear();\n}\nexport {\n InteractionManager\n};\n//# sourceMappingURL=InteractionManager.js.map\n"],"mappings":";;;;AAEA,IAAM,eAAN,MAAmB;CACjB,YAAY,CAAC;CACb,YAAY,WAAW,UAAU,SAAS;EACxC,MAAM,gBAAgB,KAAK,UAAU,SAAS;EAC9C,MAAM,eAAe;GACnB;GACA;GACA,cAAc;IACZ,cAAc,OAAO,YAAY;GACnC;EACF;EACA,cAAc,IAAI,YAAY;EAC9B,OAAO;CACT;CACA,KAAK,WAAW,GAAG,MAAM;EACvB,MAAM,gBAAgB,KAAK,UAAU;EACrC,IAAI,iBAAiB,MAAM;GACzB,KAAK,MAAM,gBAAgB,MAAM,KAAK,aAAa,GAAG;IACpD,aAAa,SAAS,MAAM,aAAa,SAAS,IAAI;GACxD;EACF;CACF;CACA,UAAU,WAAW;EACnB,IAAI,gBAAgB,KAAK,UAAU;EACnC,IAAI,iBAAiB,MAAM;GACzB,gCAAgC,IAAI,IAAI;GACxC,KAAK,UAAU,aAAa;EAC9B;EACA,OAAO;CACT;AACF;AACA,IAAM,YAAN,MAAgB;CACd;CACA;CACA,YAAY,EAAE,eAAe;EAC3B,KAAK,eAAe;EACpB,KAAK,cAAc,CAAC;GAAE,OAAO,CAAC;GAAG,SAAS;EAAK,CAAC;CAClD;CACA,aAAa,OAAO;EAClB,MAAM,SAAS,SAAS,KAAK,SAAS,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AI,IAAI;AAChD,MAAM,qCAAqC,IAAI,IAAI;AACnD,MAAM,wCAAwC,IAAI,IAAI;AACtD,MAAM,aAAa,IAAI,UAAU,EAAE,aAAa,gBAAgB,CAAC;AACjE,IAAI,oBAAoB;AACxB,IAAI,OAAO;AACX,IAAI,YAAY,CAAC;AACjB,SAAS,kBAAkB;CACzB,IAAI,CAAC,mBAAmB;EACtB,IAAI,YAAY,GAAG;GACjB,oBAAoB,WAAW,cAAc;EAC/C,OAAO;GACL,oBAAoB,oBAAoB,cAAc;EACxD;CACF;AACF;AACA,SAAS,iBAAiB;CACxB,oBAAoB;CACpB,MAAM,mBAAmB,gBAAgB;CACzC,mBAAmB,SAAS,WAAW,gBAAgB,IAAI,MAAM,CAAC;CAClE,sBAAsB,SAAS,WAAW,gBAAgB,OAAO,MAAM,CAAC;CACxE,MAAM,uBAAuB,gBAAgB;CAC7C,IAAI,qBAAqB,KAAK,yBAAyB,GAAG;EACxD,SAAS,KAAK,qBAAqB;CACrC,OAAO,IAAI,qBAAqB,KAAK,yBAAyB,GAAG;EAC/D,SAAS,KAAK,kBAAkB;CAClC;CACA,IAAI,yBAAyB,GAAG;EAC9B,MAAM,QAAQ,KAAK,IAAI;EACvB,OAAO,WAAW,kBAAkB,GAAG;GACrC,WAAW,YAAY;GACvB,IAAI,YAAY,KAAK,KAAK,IAAI,IAAI,SAAS,WAAW;IACpD,gBAAgB;IAChB;GACF;EACF;CACF;CACA,mBAAmB,MAAM;CACzB,sBAAsB,MAAM;AAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"invariant.js","names":[],"sources":["esm/modules/invariant.js"],"sourcesContent":["function invariant(condition, log, ...logVars) {\n if (!condition) {\n throw new Error(\n process.env.NODE_ENV === \"development\" ? log.split(\"%s\").flatMap((chunk, i) => [chunk, logVars[i]]).join(\"\") : log\n );\n }\n}\nfunction warning(condition, log, ...logVars) {\n if (process.env.NODE_ENV === \"development\") {\n try {\n invariant(condition, log, ...logVars);\n } catch (err) {\n console.warn(err);\n }\n }\n}\nexport {\n invariant,\n warning\n};\n//# sourceMappingURL=invariant.js.map\n"],"mappings":";AAAA,SAAS,UAAU,WAAW,KAAK,GAAG,SAAS;CAC7C,IAAI,CAAC,WAAW;EACd,MAAM,IAAI,MACR,QAAQ,IAAI,aAAa,gBAAgB,IAAI,MAAM,IAAI,EAAE,SAAS,OAAO,MAAM,CAAC,OAAO,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,GACjH;CACF;AACF;AACA,SAAS,QAAQ,WAAW,KAAK,GAAG,SAAS;CAC3C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;GACF,UAAU,WAAW,KAAK,GAAG,OAAO;EACtC,SAAS,KAAK;GACZ,QAAQ,KAAK,GAAG;EAClB;CACF;AACF"}
1
+ {"version":3,"file":"invariant.js","names":[],"sources":["esm/modules/invariant.js"],"sourcesContent":["function invariant(condition, log, ...logVars) {\n if (!condition) {\n throw new Error(\n process.env.NODE_ENV === \"development\" ? log.split(\"%s\").flatMap((chunk, i) => [chunk, logVars[i]]).join(\"\") : log\n );\n }\n}\nfunction warning(condition, log, ...logVars) {\n if (process.env.NODE_ENV === \"development\") {\n try {\n invariant(condition, log, ...logVars);\n } catch (err) {\n console.warn(err);\n }\n }\n}\nexport {\n invariant,\n warning\n};\n//# sourceMappingURL=invariant.js.map\n"],"mappings":";AAAA,SAAS,UAAU,WAAW,KAAK,GAAG,SAAS;CAC7C,IAAI,CAAC,WAAW;EACd,MAAM,IAAI,MACR,QAAQ,IAAI,aAAa,gBAAgB,IAAI,MAAM,IAAI,CAAC,CAAC,SAAS,OAAO,MAAM,CAAC,OAAO,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,GACjH;CACF;AACF;AACA,SAAS,QAAQ,WAAW,KAAK,GAAG,SAAS;CAC3C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI;GACF,UAAU,WAAW,KAAK,GAAG,OAAO;EACtC,SAAS,KAAK;GACZ,QAAQ,KAAK,GAAG;EAClB;CACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/modules/multiplyStyleLengthValue/index.js"],"sourcesContent":["const CSS_UNIT_RE = /^[+-]?\\d*(?:\\.\\d+)?(?:[Ee][+-]?\\d+)?(%|\\w*)/;\nconst getUnit = (str) => str.match(CSS_UNIT_RE)[1];\nconst isNumeric = (n) => {\n return !isNaN(parseFloat(n)) && isFinite(n);\n};\nconst multiplyStyleLengthValue = (value, multiple) => {\n if (typeof value === \"string\") {\n const number = parseFloat(value) * multiple;\n const unit = getUnit(value);\n return `${number}${unit}`;\n } else if (isNumeric(value)) {\n return value * multiple;\n }\n};\nexport {\n multiplyStyleLengthValue\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,cAAc;AACpB,MAAM,WAAW,QAAQ,IAAI,MAAM,WAAW,EAAE;AAChD,MAAM,aAAa,MAAM;CACvB,OAAO,CAAC,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,CAAC;AAC5C;AACA,MAAM,4BAA4B,OAAO,aAAa;CACpD,IAAI,OAAO,UAAU,UAAU;EAC7B,MAAM,SAAS,WAAW,KAAK,IAAI;EACnC,MAAM,OAAO,QAAQ,KAAK;EAC1B,OAAO,GAAG,SAAS;CACrB,OAAO,IAAI,UAAU,KAAK,GAAG;EAC3B,OAAO,QAAQ;CACjB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/multiplyStyleLengthValue/index.js"],"sourcesContent":["const CSS_UNIT_RE = /^[+-]?\\d*(?:\\.\\d+)?(?:[Ee][+-]?\\d+)?(%|\\w*)/;\nconst getUnit = (str) => str.match(CSS_UNIT_RE)[1];\nconst isNumeric = (n) => {\n return !isNaN(parseFloat(n)) && isFinite(n);\n};\nconst multiplyStyleLengthValue = (value, multiple) => {\n if (typeof value === \"string\") {\n const number = parseFloat(value) * multiple;\n const unit = getUnit(value);\n return `${number}${unit}`;\n } else if (isNumeric(value)) {\n return value * multiple;\n }\n};\nexport {\n multiplyStyleLengthValue\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,cAAc;AACpB,MAAM,WAAW,QAAQ,IAAI,MAAM,WAAW,CAAC,CAAC;AAChD,MAAM,aAAa,MAAM;CACvB,OAAO,CAAC,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,CAAC;AAC5C;AACA,MAAM,4BAA4B,OAAO,aAAa;CACpD,IAAI,OAAO,UAAU,UAAU;EAC7B,MAAM,SAAS,WAAW,KAAK,IAAI;EACnC,MAAM,OAAO,QAAQ,KAAK;EAC1B,OAAO,GAAG,SAAS;CACrB,OAAO,IAAI,UAAU,KAAK,GAAG;EAC3B,OAAO,QAAQ;CACjB;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/modules/normalizeColor/index.js"],"sourcesContent":["import { isWebColor } from \"../isWebColor/index\";\nimport { processColor } from \"../processColor/index\";\nconst normalizeColor = (color, opacity = 1) => {\n if (color == null) return;\n if (typeof color === \"string\" && isWebColor(color)) {\n return color;\n }\n const colorInt = processColor(color);\n if (colorInt != null) {\n const r = colorInt >> 16 & 255;\n const g = colorInt >> 8 & 255;\n const b = colorInt & 255;\n const a = (colorInt >> 24 & 255) / 255;\n const alpha = (a * opacity).toFixed(2);\n return `rgba(${r},${g},${b},${alpha})`;\n }\n};\nexport {\n normalizeColor\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,kBAAkB,OAAO,UAAU,MAAM;CAC7C,IAAI,SAAS,MAAM;CACnB,IAAI,OAAO,UAAU,YAAY,WAAW,KAAK,GAAG;EAClD,OAAO;CACT;CACA,MAAM,WAAW,aAAa,KAAK;CACnC,IAAI,YAAY,MAAM;EACpB,MAAM,IAAI,YAAY,KAAK;EAC3B,MAAM,IAAI,YAAY,IAAI;EAC1B,MAAM,IAAI,WAAW;EACrB,MAAM,KAAK,YAAY,KAAK,OAAO;EACnC,MAAM,SAAS,IAAI,SAAS,QAAQ,CAAC;EACrC,OAAO,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM;CACtC;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/normalizeColor/index.js"],"sourcesContent":["import { isWebColor } from \"../isWebColor/index\";\nimport { processColor } from \"../processColor/index\";\nconst normalizeColor = (color, opacity = 1) => {\n if (color == null) return;\n if (typeof color === \"string\" && isWebColor(color)) {\n return color;\n }\n const colorInt = processColor(color);\n if (colorInt != null) {\n const r = colorInt >> 16 & 255;\n const g = colorInt >> 8 & 255;\n const b = colorInt & 255;\n const a = (colorInt >> 24 & 255) / 255;\n const alpha = (a * opacity).toFixed(2);\n return `rgba(${r},${g},${b},${alpha})`;\n }\n};\nexport {\n normalizeColor\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,kBAAkB,OAAO,UAAU,MAAM;CAC7C,IAAI,SAAS,MAAM;CACnB,IAAI,OAAO,UAAU,YAAY,WAAW,KAAK,GAAG;EAClD,OAAO;CACT;CACA,MAAM,WAAW,aAAa,KAAK;CACnC,IAAI,YAAY,MAAM;EACpB,MAAM,IAAI,YAAY,KAAK;EAC3B,MAAM,IAAI,YAAY,IAAI;EAC1B,MAAM,IAAI,WAAW;EACrB,MAAM,KAAK,YAAY,KAAK,OAAO;EACnC,MAAM,SAAS,IAAI,QAAO,CAAE,QAAQ,CAAC;EACrC,OAAO,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM;CACtC;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"dangerousStyleValue.js","names":["isUnitlessNumber"],"sources":["esm/modules/setValueForStyles/dangerousStyleValue.js"],"sourcesContent":["import { unitlessNumbers as isUnitlessNumber } from \"../unitlessNumbers/index\";\nimport { normalizeValueWithProperty } from \"../../StyleSheet/compiler/normalizeValueWithProperty\";\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n var isEmpty = value == null || typeof value === \"boolean\" || value === \"\";\n if (isEmpty) {\n return \"\";\n }\n if (typeof value === \"object\" && typeof value.__getValue === \"function\") {\n value = value.__getValue();\n }\n if (name === \"transform\" && Array.isArray(value)) {\n return value.map((t) => {\n const key = Object.keys(t)[0];\n let val = t[key];\n if (typeof val === \"object\" && typeof val.__getValue === \"function\") {\n val = val.__getValue();\n }\n if (key === \"matrix\" || key === \"matrix3d\") {\n return `${key}(${val.join(\",\")})`;\n }\n return `${key}(${normalizeValueWithProperty(val, key)})`;\n }).join(\" \");\n }\n if (!isCustomProperty && typeof value === \"number\" && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {\n return value + \"px\";\n }\n return (\"\" + value).trim();\n}\nexport {\n dangerousStyleValue\n};\n//# sourceMappingURL=dangerousStyleValue.js.map\n"],"mappings":";;;;AAEA,SAAS,oBAAoB,MAAM,OAAO,kBAAkB;CAC1D,IAAI,UAAU,SAAS,QAAQ,OAAO,UAAU,aAAa,UAAU;CACvE,IAAI,SAAS;EACX,OAAO;CACT;CACA,IAAI,OAAO,UAAU,YAAY,OAAO,MAAM,eAAe,YAAY;EACvE,QAAQ,MAAM,WAAW;CAC3B;CACA,IAAI,SAAS,eAAe,MAAM,QAAQ,KAAK,GAAG;EAChD,OAAO,MAAM,KAAK,MAAM;GACtB,MAAM,MAAM,OAAO,KAAK,CAAC,EAAE;GAC3B,IAAI,MAAM,EAAE;GACZ,IAAI,OAAO,QAAQ,YAAY,OAAO,IAAI,eAAe,YAAY;IACnE,MAAM,IAAI,WAAW;GACvB;GACA,IAAI,QAAQ,YAAY,QAAQ,YAAY;IAC1C,OAAO,GAAG,IAAI,GAAG,IAAI,KAAK,GAAG,EAAE;GACjC;GACA,OAAO,GAAG,IAAI,GAAG,2BAA2B,KAAK,GAAG,EAAE;EACxD,CAAC,EAAE,KAAK,GAAG;CACb;CACA,IAAI,CAAC,oBAAoB,OAAO,UAAU,YAAY,UAAU,KAAK,EAAEA,gBAAiB,eAAe,IAAI,KAAKA,gBAAiB,QAAQ;EACvI,OAAO,QAAQ;CACjB;CACA,QAAQ,KAAK,OAAO,KAAK;AAC3B"}
1
+ {"version":3,"file":"dangerousStyleValue.js","names":["isUnitlessNumber"],"sources":["esm/modules/setValueForStyles/dangerousStyleValue.js"],"sourcesContent":["import { unitlessNumbers as isUnitlessNumber } from \"../unitlessNumbers/index\";\nimport { normalizeValueWithProperty } from \"../../StyleSheet/compiler/normalizeValueWithProperty\";\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n var isEmpty = value == null || typeof value === \"boolean\" || value === \"\";\n if (isEmpty) {\n return \"\";\n }\n if (typeof value === \"object\" && typeof value.__getValue === \"function\") {\n value = value.__getValue();\n }\n if (name === \"transform\" && Array.isArray(value)) {\n return value.map((t) => {\n const key = Object.keys(t)[0];\n let val = t[key];\n if (typeof val === \"object\" && typeof val.__getValue === \"function\") {\n val = val.__getValue();\n }\n if (key === \"matrix\" || key === \"matrix3d\") {\n return `${key}(${val.join(\",\")})`;\n }\n return `${key}(${normalizeValueWithProperty(val, key)})`;\n }).join(\" \");\n }\n if (!isCustomProperty && typeof value === \"number\" && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {\n return value + \"px\";\n }\n return (\"\" + value).trim();\n}\nexport {\n dangerousStyleValue\n};\n//# sourceMappingURL=dangerousStyleValue.js.map\n"],"mappings":";;;;AAEA,SAAS,oBAAoB,MAAM,OAAO,kBAAkB;CAC1D,IAAI,UAAU,SAAS,QAAQ,OAAO,UAAU,aAAa,UAAU;CACvE,IAAI,SAAS;EACX,OAAO;CACT;CACA,IAAI,OAAO,UAAU,YAAY,OAAO,MAAM,eAAe,YAAY;EACvE,QAAQ,MAAM,WAAW;CAC3B;CACA,IAAI,SAAS,eAAe,MAAM,QAAQ,KAAK,GAAG;EAChD,OAAO,MAAM,KAAK,MAAM;GACtB,MAAM,MAAM,OAAO,KAAK,CAAC,CAAC,CAAC;GAC3B,IAAI,MAAM,EAAE;GACZ,IAAI,OAAO,QAAQ,YAAY,OAAO,IAAI,eAAe,YAAY;IACnE,MAAM,IAAI,WAAW;GACvB;GACA,IAAI,QAAQ,YAAY,QAAQ,YAAY;IAC1C,OAAO,GAAG,IAAI,GAAG,IAAI,KAAK,GAAG,EAAE;GACjC;GACA,OAAO,GAAG,IAAI,GAAG,2BAA2B,KAAK,GAAG,EAAE;EACxD,CAAC,CAAC,CAAC,KAAK,GAAG;CACb;CACA,IAAI,CAAC,oBAAoB,OAAO,UAAU,YAAY,UAAU,KAAK,EAAEA,gBAAiB,eAAe,IAAI,KAAKA,gBAAiB,QAAQ;EACvI,OAAO,QAAQ;CACjB;CACA,QAAQ,KAAK,MAAK,CAAE,KAAK;AAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/modules/unitlessNumbers/index.js"],"sourcesContent":["const unitlessNumbers = {\n animationIterationCount: true,\n aspectRatio: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexOrder: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n fontWeight: true,\n gap: true,\n columnGap: true,\n rowGap: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowGap: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnGap: true,\n gridColumnStart: true,\n lineClamp: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n // SVG-related\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true,\n // transform types\n scale: true,\n scaleX: true,\n scaleY: true,\n scaleZ: true,\n // RN properties\n shadowOpacity: true\n};\nconst prefixes = [\"ms\", \"Moz\", \"O\", \"Webkit\"];\nconst prefixKey = (prefix, key) => {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n};\nObject.keys(unitlessNumbers).forEach((prop) => {\n prefixes.forEach((prefix) => {\n unitlessNumbers[prefixKey(prefix, prop)] = unitlessNumbers[prop];\n });\n});\nexport {\n unitlessNumbers\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,kBAAkB;CACtB,yBAAyB;CACzB,aAAa;CACb,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,SAAS;CACT,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,cAAc;CACd,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,KAAK;CACL,WAAW;CACX,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,eAAe;CACf,eAAe;CACf,iBAAiB;CACjB,WAAW;CACX,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,MAAM;CAEN,aAAa;CACb,cAAc;CACd,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,kBAAkB;CAClB,eAAe;CACf,aAAa;CAEb,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,QAAQ;CAER,eAAe;AACjB;AACA,MAAM,WAAW;CAAC;CAAM;CAAO;CAAK;AAAQ;AAC5C,MAAM,aAAa,QAAQ,QAAQ;CACjC,OAAO,SAAS,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,UAAU,CAAC;AAC/D;AACA,OAAO,KAAK,eAAe,EAAE,SAAS,SAAS;CAC7C,SAAS,SAAS,WAAW;EAC3B,gBAAgB,UAAU,QAAQ,IAAI,KAAK,gBAAgB;CAC7D,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/modules/unitlessNumbers/index.js"],"sourcesContent":["const unitlessNumbers = {\n animationIterationCount: true,\n aspectRatio: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexOrder: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n fontWeight: true,\n gap: true,\n columnGap: true,\n rowGap: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowGap: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnGap: true,\n gridColumnStart: true,\n lineClamp: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n // SVG-related\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true,\n // transform types\n scale: true,\n scaleX: true,\n scaleY: true,\n scaleZ: true,\n // RN properties\n shadowOpacity: true\n};\nconst prefixes = [\"ms\", \"Moz\", \"O\", \"Webkit\"];\nconst prefixKey = (prefix, key) => {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n};\nObject.keys(unitlessNumbers).forEach((prop) => {\n prefixes.forEach((prefix) => {\n unitlessNumbers[prefixKey(prefix, prop)] = unitlessNumbers[prop];\n });\n});\nexport {\n unitlessNumbers\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,MAAM,kBAAkB;CACtB,yBAAyB;CACzB,aAAa;CACb,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,SAAS;CACT,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,cAAc;CACd,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,KAAK;CACL,WAAW;CACX,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,cAAc;CACd,YAAY;CACZ,eAAe;CACf,eAAe;CACf,iBAAiB;CACjB,WAAW;CACX,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,MAAM;CAEN,aAAa;CACb,cAAc;CACd,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,kBAAkB;CAClB,eAAe;CACf,aAAa;CAEb,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,QAAQ;CAER,eAAe;AACjB;AACA,MAAM,WAAW;CAAC;CAAM;CAAO;CAAK;AAAQ;AAC5C,MAAM,aAAa,QAAQ,QAAQ;CACjC,OAAO,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,IAAI,UAAU,CAAC;AAC/D;AACA,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS;CAC7C,SAAS,SAAS,WAAW;EAC3B,gBAAgB,UAAU,QAAQ,IAAI,KAAK,gBAAgB;CAC7D,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isLocaleRTL.js","names":[],"sources":["esm/modules/useLocale/isLocaleRTL.js"],"sourcesContent":["const rtlScripts = /* @__PURE__ */ new Set([\n \"Arab\",\n \"Syrc\",\n \"Samr\",\n \"Mand\",\n \"Thaa\",\n \"Mend\",\n \"Nkoo\",\n \"Adlm\",\n \"Rohg\",\n \"Hebr\"\n]);\nconst rtlLangs = /* @__PURE__ */ new Set([\n \"ae\",\n // Avestan\n \"ar\",\n // Arabic\n \"arc\",\n // Aramaic\n \"bcc\",\n // Southern Balochi\n \"bqi\",\n // Bakthiari\n \"ckb\",\n // Sorani\n \"dv\",\n // Dhivehi\n \"fa\",\n \"far\",\n // Persian\n \"glk\",\n // Gilaki\n \"he\",\n \"iw\",\n // Hebrew\n \"khw\",\n // Khowar\n \"ks\",\n // Kashmiri\n \"ku\",\n // Kurdish\n \"mzn\",\n // Mazanderani\n \"nqo\",\n // N'Ko\n \"pnb\",\n // Western Punjabi\n \"ps\",\n // Pashto\n \"sd\",\n // Sindhi\n \"ug\",\n // Uyghur\n \"ur\",\n // Urdu\n \"yi\"\n // Yiddish\n]);\nconst cache = /* @__PURE__ */ new Map();\nfunction isLocaleRTL(locale) {\n const cachedRTL = cache.get(locale);\n if (cachedRTL) {\n return cachedRTL;\n }\n let isRTL = false;\n if (Intl.Locale) {\n const script = new Intl.Locale(locale).maximize().script;\n isRTL = rtlScripts.has(script);\n } else {\n const lang = locale.split(\"-\")[0];\n isRTL = rtlLangs.has(lang);\n }\n cache.set(locale, isRTL);\n return isRTL;\n}\nexport {\n isLocaleRTL\n};\n//# sourceMappingURL=isLocaleRTL.js.map\n"],"mappings":";AAAA,MAAM,6BAA6B,IAAI,IAAI;CACzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,2BAA2B,IAAI,IAAI;CACvC;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;AAEF,CAAC;AACD,MAAM,wBAAwB,IAAI,IAAI;AACtC,SAAS,YAAY,QAAQ;CAC3B,MAAM,YAAY,MAAM,IAAI,MAAM;CAClC,IAAI,WAAW;EACb,OAAO;CACT;CACA,IAAI,QAAQ;CACZ,IAAI,KAAK,QAAQ;EACf,MAAM,SAAS,IAAI,KAAK,OAAO,MAAM,EAAE,SAAS,EAAE;EAClD,QAAQ,WAAW,IAAI,MAAM;CAC/B,OAAO;EACL,MAAM,OAAO,OAAO,MAAM,GAAG,EAAE;EAC/B,QAAQ,SAAS,IAAI,IAAI;CAC3B;CACA,MAAM,IAAI,QAAQ,KAAK;CACvB,OAAO;AACT"}
1
+ {"version":3,"file":"isLocaleRTL.js","names":[],"sources":["esm/modules/useLocale/isLocaleRTL.js"],"sourcesContent":["const rtlScripts = /* @__PURE__ */ new Set([\n \"Arab\",\n \"Syrc\",\n \"Samr\",\n \"Mand\",\n \"Thaa\",\n \"Mend\",\n \"Nkoo\",\n \"Adlm\",\n \"Rohg\",\n \"Hebr\"\n]);\nconst rtlLangs = /* @__PURE__ */ new Set([\n \"ae\",\n // Avestan\n \"ar\",\n // Arabic\n \"arc\",\n // Aramaic\n \"bcc\",\n // Southern Balochi\n \"bqi\",\n // Bakthiari\n \"ckb\",\n // Sorani\n \"dv\",\n // Dhivehi\n \"fa\",\n \"far\",\n // Persian\n \"glk\",\n // Gilaki\n \"he\",\n \"iw\",\n // Hebrew\n \"khw\",\n // Khowar\n \"ks\",\n // Kashmiri\n \"ku\",\n // Kurdish\n \"mzn\",\n // Mazanderani\n \"nqo\",\n // N'Ko\n \"pnb\",\n // Western Punjabi\n \"ps\",\n // Pashto\n \"sd\",\n // Sindhi\n \"ug\",\n // Uyghur\n \"ur\",\n // Urdu\n \"yi\"\n // Yiddish\n]);\nconst cache = /* @__PURE__ */ new Map();\nfunction isLocaleRTL(locale) {\n const cachedRTL = cache.get(locale);\n if (cachedRTL) {\n return cachedRTL;\n }\n let isRTL = false;\n if (Intl.Locale) {\n const script = new Intl.Locale(locale).maximize().script;\n isRTL = rtlScripts.has(script);\n } else {\n const lang = locale.split(\"-\")[0];\n isRTL = rtlLangs.has(lang);\n }\n cache.set(locale, isRTL);\n return isRTL;\n}\nexport {\n isLocaleRTL\n};\n//# sourceMappingURL=isLocaleRTL.js.map\n"],"mappings":";AAAA,MAAM,6BAA6B,IAAI,IAAI;CACzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,2BAA2B,IAAI,IAAI;CACvC;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;CAEA;AAEF,CAAC;AACD,MAAM,wBAAwB,IAAI,IAAI;AACtC,SAAS,YAAY,QAAQ;CAC3B,MAAM,YAAY,MAAM,IAAI,MAAM;CAClC,IAAI,WAAW;EACb,OAAO;CACT;CACA,IAAI,QAAQ;CACZ,IAAI,KAAK,QAAQ;EACf,MAAM,SAAS,IAAI,KAAK,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;EAClD,QAAQ,WAAW,IAAI,MAAM;CAC/B,OAAO;EACL,MAAM,OAAO,OAAO,MAAM,GAAG,CAAC,CAAC;EAC/B,QAAQ,SAAS,IAAI,IAAI;CAC3B;CACA,MAAM,IAAI,QAAQ,KAAK;CACvB,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-web-internals",
3
- "version": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.728.1",
4
4
  "description": "React Native for Web",
5
5
  "keywords": [
6
6
  "react",
@@ -36,17 +36,17 @@
36
36
  "clean:build": "tamagui-build clean:build"
37
37
  },
38
38
  "dependencies": {
39
- "@tamagui/normalize-css-color": "3.0.0-beta.669.1",
40
- "@tamagui/react-native-use-pressable": "3.0.0-beta.669.1",
41
- "@tamagui/react-native-use-responder-events": "3.0.0-beta.669.1",
42
- "@tamagui/simple-hash": "3.0.0-beta.669.1",
43
- "@tamagui/use-element-layout": "3.0.0-beta.669.1",
44
- "@tamagui/web": "3.0.0-beta.669.1"
39
+ "@tamagui/normalize-css-color": "3.0.0-beta.728.1",
40
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.728.1",
41
+ "@tamagui/react-native-use-responder-events": "3.0.0-beta.728.1",
42
+ "@tamagui/simple-hash": "3.0.0-beta.728.1",
43
+ "@tamagui/use-element-layout": "3.0.0-beta.728.1",
44
+ "@tamagui/web": "3.0.0-beta.728.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "3.0.0-beta.669.1",
48
- "react": ">=19",
49
- "react-dom": "*"
47
+ "@tamagui/build": "3.0.0-beta.728.1",
48
+ "react": "19.2.3",
49
+ "react-dom": "19.2.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=19",