@tamagui/core 3.0.7 → 3.0.8

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.
@@ -34,11 +34,11 @@ __export(createOptimizedView_native_exports, {
34
34
  module.exports = __toCommonJS(createOptimizedView_native_exports);
35
35
  var import_react = __toESM(require("react"), 1);
36
36
  function createOptimizedView(children, viewProps, baseViews, isInText) {
37
+ var _ref;
37
38
  var _viewProps_style;
38
39
  var TextAncestor = baseViews.TextAncestor;
39
40
  var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, "aria-busy": ariaBusy, "aria-checked": ariaChecked, "aria-disabled": ariaDisabled, "aria-expanded": ariaExpanded, "aria-hidden": ariaHidden, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-live": ariaLive, "aria-selected": ariaSelected, "aria-valuemax": ariaValueMax, "aria-valuemin": ariaValueMin, "aria-valuenow": ariaValueNow, "aria-valuetext": ariaValueText, id, role, tabIndex } = viewProps;
40
- var _ariaLabelledBy_split;
41
- var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;
41
+ var _accessibilityLabelledBy = (_ref = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ref !== void 0 ? _ref : accessibilityLabelledBy;
42
42
  var _accessibilityState;
43
43
  if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {
44
44
  _accessibilityState = {
@@ -34,11 +34,11 @@ __export(createOptimizedView_native_exports, {
34
34
  module.exports = __toCommonJS(createOptimizedView_native_exports);
35
35
  var import_react = __toESM(require("react"), 1);
36
36
  function createOptimizedView(children, viewProps, baseViews, isInText) {
37
+ var _ref;
37
38
  var _viewProps_style;
38
39
  var TextAncestor = baseViews.TextAncestor;
39
40
  var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, "aria-busy": ariaBusy, "aria-checked": ariaChecked, "aria-disabled": ariaDisabled, "aria-expanded": ariaExpanded, "aria-hidden": ariaHidden, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-live": ariaLive, "aria-selected": ariaSelected, "aria-valuemax": ariaValueMax, "aria-valuemin": ariaValueMin, "aria-valuenow": ariaValueNow, "aria-valuetext": ariaValueText, id, role, tabIndex } = viewProps;
40
- var _ariaLabelledBy_split;
41
- var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;
41
+ var _accessibilityLabelledBy = (_ref = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ref !== void 0 ? _ref : accessibilityLabelledBy;
42
42
  var _accessibilityState;
43
43
  if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {
44
44
  _accessibilityState = {
@@ -1 +1 @@
1
- {"version":3,"file":"createOptimizedView.native.js","names":[],"sources":["cjs/createOptimizedView.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createOptimizedView_native_exports = {};\n__export(createOptimizedView_native_exports, {\n createOptimizedView: () => createOptimizedView,\n getAccessibilityRoleFromRole: () => getAccessibilityRoleFromRole\n});\nmodule.exports = __toCommonJS(createOptimizedView_native_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createOptimizedView(children, viewProps, baseViews, isInText) {\n var _viewProps_style;\n var TextAncestor = baseViews.TextAncestor;\n var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, \"aria-busy\": ariaBusy, \"aria-checked\": ariaChecked, \"aria-disabled\": ariaDisabled, \"aria-expanded\": ariaExpanded, \"aria-hidden\": ariaHidden, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy, \"aria-live\": ariaLive, \"aria-selected\": ariaSelected, \"aria-valuemax\": ariaValueMax, \"aria-valuemin\": ariaValueMin, \"aria-valuenow\": ariaValueNow, \"aria-valuetext\": ariaValueText, id, role, tabIndex } = (\n // ...otherProps\n viewProps\n );\n var _ariaLabelledBy_split;\n var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\\s*,\\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;\n var _accessibilityState;\n if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {\n _accessibilityState = {\n busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,\n checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,\n disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,\n expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,\n selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected\n };\n }\n var _accessibilityValue;\n if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {\n _accessibilityValue = {\n max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,\n min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,\n now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,\n text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text\n };\n }\n if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {\n var _viewProps_style1;\n viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;\n }\n if (id) {\n viewProps.nativeID = id;\n }\n if (ariaHidden === true) {\n viewProps.importantForAccessibility = \"no-hide-descendants\";\n }\n if (_accessibilityValue) {\n viewProps.accessibilityValue = _accessibilityValue;\n }\n if (role) {\n viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);\n }\n if (ariaLive === \"off\") {\n viewProps.accessibilityLiveRegion = \"none\";\n } else {\n var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;\n if (alr) {\n viewProps.accessibilityLiveRegion = alr;\n }\n }\n var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;\n if (al) {\n viewProps.accessibilityLabel = al;\n }\n delete viewProps.focusable;\n if (tabIndex !== void 0) {\n viewProps.focusable = Number(tabIndex) >= 0;\n }\n if (_accessibilityState != null) {\n viewProps.accessibilityState = _accessibilityState;\n }\n var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;\n if (ah != null) {\n viewProps.accessibilityElementsHidden = ah;\n }\n if (_accessibilityLabelledBy) {\n viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;\n }\n var finalElement = /* @__PURE__ */ import_react.default.createElement(\"RCTView\", viewProps, children);\n if (!isInText) {\n return finalElement;\n }\n return /* @__PURE__ */ import_react.default.createElement(TextAncestor.Provider, {\n value: false\n }, finalElement);\n}\nfunction getAccessibilityRoleFromRole(role) {\n switch (role) {\n case \"alert\":\n return \"alert\";\n case \"alertdialog\":\n return;\n case \"application\":\n return;\n case \"article\":\n return;\n case \"banner\":\n return;\n case \"button\":\n return \"button\";\n case \"cell\":\n return;\n case \"checkbox\":\n return \"checkbox\";\n case \"columnheader\":\n return;\n case \"combobox\":\n return \"combobox\";\n case \"complementary\":\n return;\n case \"contentinfo\":\n return;\n case \"definition\":\n return;\n case \"dialog\":\n return;\n case \"directory\":\n return;\n case \"document\":\n return;\n case \"feed\":\n return;\n case \"figure\":\n return;\n case \"form\":\n return;\n case \"grid\":\n return \"grid\";\n case \"group\":\n return;\n case \"heading\":\n return \"header\";\n case \"img\":\n return \"image\";\n case \"link\":\n return \"link\";\n case \"list\":\n return \"list\";\n case \"listitem\":\n return;\n case \"log\":\n return;\n case \"main\":\n return;\n case \"marquee\":\n return;\n case \"math\":\n return;\n case \"menu\":\n return \"menu\";\n case \"menubar\":\n return \"menubar\";\n case \"menuitem\":\n return \"menuitem\";\n case \"meter\":\n return;\n case \"navigation\":\n return;\n case \"none\":\n return \"none\";\n case \"note\":\n return;\n case \"option\":\n return;\n case \"presentation\":\n return \"none\";\n case \"progressbar\":\n return \"progressbar\";\n case \"radio\":\n return \"radio\";\n case \"radiogroup\":\n return \"radiogroup\";\n case \"region\":\n return;\n case \"row\":\n return;\n case \"rowgroup\":\n return;\n case \"rowheader\":\n return;\n case \"scrollbar\":\n return \"scrollbar\";\n case \"searchbox\":\n return \"search\";\n case \"separator\":\n return;\n case \"slider\":\n return \"adjustable\";\n case \"spinbutton\":\n return \"spinbutton\";\n case \"status\":\n return;\n case \"summary\":\n return \"summary\";\n case \"switch\":\n return \"switch\";\n case \"tab\":\n return \"tab\";\n case \"table\":\n return;\n case \"tablist\":\n return \"tablist\";\n case \"tabpanel\":\n return;\n case \"term\":\n return;\n case \"timer\":\n return \"timer\";\n case \"toolbar\":\n return \"toolbar\";\n case \"tooltip\":\n return;\n case \"tree\":\n return;\n case \"treegrid\":\n return;\n case \"treeitem\":\n return;\n }\n return;\n}\n//# sourceMappingURL=createOptimizedView.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAA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AACA,SAAS,6BAA6B,MAAM;CAC1C,QAAQ,MAAR;EACE,KAAK,SACH,OAAO;EACT,KAAK,eACH;EACF,KAAK,eACH;EACF,KAAK,WACH;EACF,KAAK,UACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,gBACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,iBACH;EACF,KAAK,eACH;EACF,KAAK,cACH;EACF,KAAK,UACH;EACF,KAAK,aACH;EACF,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,OACH;EACF,KAAK,QACH;EACF,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,YACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,cACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,gBACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,OACH;EACF,KAAK,YACH;EACF,KAAK,aACH;EACF,KAAK,aACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,aACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,SACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,YACH;EACF,KAAK,YACH;CACJ;CACA;AACF"}
1
+ {"version":3,"file":"createOptimizedView.native.js","names":[],"sources":["cjs/createOptimizedView.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createOptimizedView_native_exports = {};\n__export(createOptimizedView_native_exports, {\n createOptimizedView: () => createOptimizedView,\n getAccessibilityRoleFromRole: () => getAccessibilityRoleFromRole\n});\nmodule.exports = __toCommonJS(createOptimizedView_native_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createOptimizedView(children, viewProps, baseViews, isInText) {\n var _ref;\n var _viewProps_style;\n var TextAncestor = baseViews.TextAncestor;\n var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, \"aria-busy\": ariaBusy, \"aria-checked\": ariaChecked, \"aria-disabled\": ariaDisabled, \"aria-expanded\": ariaExpanded, \"aria-hidden\": ariaHidden, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy, \"aria-live\": ariaLive, \"aria-selected\": ariaSelected, \"aria-valuemax\": ariaValueMax, \"aria-valuemin\": ariaValueMin, \"aria-valuenow\": ariaValueNow, \"aria-valuetext\": ariaValueText, id, role, tabIndex } = (\n // ...otherProps\n viewProps\n );\n var _accessibilityLabelledBy = (_ref = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\\s*,\\s*/g)) !== null && _ref !== void 0 ? _ref : accessibilityLabelledBy;\n var _accessibilityState;\n if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {\n _accessibilityState = {\n busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,\n checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,\n disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,\n expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,\n selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected\n };\n }\n var _accessibilityValue;\n if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {\n _accessibilityValue = {\n max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,\n min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,\n now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,\n text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text\n };\n }\n if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {\n var _viewProps_style1;\n viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;\n }\n if (id) {\n viewProps.nativeID = id;\n }\n if (ariaHidden === true) {\n viewProps.importantForAccessibility = \"no-hide-descendants\";\n }\n if (_accessibilityValue) {\n viewProps.accessibilityValue = _accessibilityValue;\n }\n if (role) {\n viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);\n }\n if (ariaLive === \"off\") {\n viewProps.accessibilityLiveRegion = \"none\";\n } else {\n var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;\n if (alr) {\n viewProps.accessibilityLiveRegion = alr;\n }\n }\n var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;\n if (al) {\n viewProps.accessibilityLabel = al;\n }\n delete viewProps.focusable;\n if (tabIndex !== void 0) {\n viewProps.focusable = Number(tabIndex) >= 0;\n }\n if (_accessibilityState != null) {\n viewProps.accessibilityState = _accessibilityState;\n }\n var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;\n if (ah != null) {\n viewProps.accessibilityElementsHidden = ah;\n }\n if (_accessibilityLabelledBy) {\n viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;\n }\n var finalElement = /* @__PURE__ */ import_react.default.createElement(\"RCTView\", viewProps, children);\n if (!isInText) {\n return finalElement;\n }\n return /* @__PURE__ */ import_react.default.createElement(TextAncestor.Provider, {\n value: false\n }, finalElement);\n}\nfunction getAccessibilityRoleFromRole(role) {\n switch (role) {\n case \"alert\":\n return \"alert\";\n case \"alertdialog\":\n return;\n case \"application\":\n return;\n case \"article\":\n return;\n case \"banner\":\n return;\n case \"button\":\n return \"button\";\n case \"cell\":\n return;\n case \"checkbox\":\n return \"checkbox\";\n case \"columnheader\":\n return;\n case \"combobox\":\n return \"combobox\";\n case \"complementary\":\n return;\n case \"contentinfo\":\n return;\n case \"definition\":\n return;\n case \"dialog\":\n return;\n case \"directory\":\n return;\n case \"document\":\n return;\n case \"feed\":\n return;\n case \"figure\":\n return;\n case \"form\":\n return;\n case \"grid\":\n return \"grid\";\n case \"group\":\n return;\n case \"heading\":\n return \"header\";\n case \"img\":\n return \"image\";\n case \"link\":\n return \"link\";\n case \"list\":\n return \"list\";\n case \"listitem\":\n return;\n case \"log\":\n return;\n case \"main\":\n return;\n case \"marquee\":\n return;\n case \"math\":\n return;\n case \"menu\":\n return \"menu\";\n case \"menubar\":\n return \"menubar\";\n case \"menuitem\":\n return \"menuitem\";\n case \"meter\":\n return;\n case \"navigation\":\n return;\n case \"none\":\n return \"none\";\n case \"note\":\n return;\n case \"option\":\n return;\n case \"presentation\":\n return \"none\";\n case \"progressbar\":\n return \"progressbar\";\n case \"radio\":\n return \"radio\";\n case \"radiogroup\":\n return \"radiogroup\";\n case \"region\":\n return;\n case \"row\":\n return;\n case \"rowgroup\":\n return;\n case \"rowheader\":\n return;\n case \"scrollbar\":\n return \"scrollbar\";\n case \"searchbox\":\n return \"search\";\n case \"separator\":\n return;\n case \"slider\":\n return \"adjustable\";\n case \"spinbutton\":\n return \"spinbutton\";\n case \"status\":\n return;\n case \"summary\":\n return \"summary\";\n case \"switch\":\n return \"switch\";\n case \"tab\":\n return \"tab\";\n case \"table\":\n return;\n case \"tablist\":\n return \"tablist\";\n case \"tabpanel\":\n return;\n case \"term\":\n return;\n case \"timer\":\n return \"timer\";\n case \"toolbar\":\n return \"toolbar\";\n case \"tooltip\":\n return;\n case \"tree\":\n return;\n case \"treegrid\":\n return;\n case \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jC;CACA,IAAI,KAAK,eAAe,QAAQ,eAAe,KAAK,IAAI,aAAa;CACrE,IAAI,MAAM,MAAM;EACd,UAAU,8BAA8B;CAC1C;CACA,IAAI,0BAA0B;EAC5B,UAAU,0BAA0B;CACtC;CACA,IAAI,eAA+B,6BAAa,QAAQ,cAAc,WAAW,WAAW,QAAQ;CACpG,IAAI,CAAC,UAAU;EACb,OAAO;CACT;CACA,OAAuB,6BAAa,QAAQ,cAAc,aAAa,UAAU,EAC/E,OAAO,MACT,GAAG,YAAY;AACjB;AACA,SAAS,6BAA6B,MAAM;CAC1C,QAAQ,MAAR;EACE,KAAK,SACH,OAAO;EACT,KAAK,eACH;EACF,KAAK,eACH;EACF,KAAK,WACH;EACF,KAAK,UACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,gBACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,iBACH;EACF,KAAK,eACH;EACF,KAAK,cACH;EACF,KAAK,UACH;EACF,KAAK,aACH;EACF,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,OACH;EACF,KAAK,QACH;EACF,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,YACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,cACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,gBACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,OACH;EACF,KAAK,YACH;EACF,KAAK,aACH;EACF,KAAK,aACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,aACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,SACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,YACH;EACF,KAAK,YACH;CACJ;CACA;AACF"}
@@ -24,7 +24,7 @@ var inject_styles_exports = {};
24
24
  __export(inject_styles_exports, { injectStyles: () => injectStyles });
25
25
  module.exports = __toCommonJS(inject_styles_exports);
26
26
  var stylesheets = {};
27
- var injectStyles = function(param) {
27
+ var injectStyles = function injectStyles2(param) {
28
28
  var { filePath, css } = param;
29
29
  var stylesheet = stylesheets[filePath];
30
30
  if (!stylesheet) {
@@ -24,7 +24,7 @@ var inject_styles_exports = {};
24
24
  __export(inject_styles_exports, { injectStyles: () => injectStyles });
25
25
  module.exports = __toCommonJS(inject_styles_exports);
26
26
  var stylesheets = {};
27
- var injectStyles = function(param) {
27
+ var injectStyles = function injectStyles2(param) {
28
28
  var { filePath, css } = param;
29
29
  var stylesheet = stylesheets[filePath];
30
30
  if (!stylesheet) {
@@ -1 +1 @@
1
- {"version":3,"file":"inject-styles.native.js","names":[],"sources":["cjs/inject-styles.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar inject_styles_exports = {};\n__export(inject_styles_exports, {\n injectStyles: () => injectStyles\n});\nmodule.exports = __toCommonJS(inject_styles_exports);\nvar stylesheets = {};\nvar injectStyles = function(param) {\n var { filePath, css } = param;\n var stylesheet = stylesheets[filePath];\n if (!stylesheet) {\n var styleEl = document.createElement(\"style\");\n styleEl.setAttribute(\"data-file\", filePath);\n styleEl.setAttribute(\"type\", \"text/css\");\n stylesheet = stylesheets[filePath] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\n//# sourceMappingURL=inject-styles.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB,EAC9B,oBAAoB,aACtB,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,cAAc,CAAC;AACnB,IAAI,eAAe,SAAS,OAAO;CACjC,IAAI,EAAE,UAAU,QAAQ;CACxB,IAAI,aAAa,YAAY;CAC7B,IAAI,CAAC,YAAY;EACf,IAAI,UAAU,SAAS,cAAc,OAAO;EAC5C,QAAQ,aAAa,aAAa,QAAQ;EAC1C,QAAQ,aAAa,QAAQ,UAAU;EACvC,aAAa,YAAY,YAAY;EACrC,SAAS,KAAK,YAAY,OAAO;CACnC;CACA,WAAW,YAAY;AACzB"}
1
+ {"version":3,"file":"inject-styles.native.js","names":[],"sources":["cjs/inject-styles.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar inject_styles_exports = {};\n__export(inject_styles_exports, {\n injectStyles: () => injectStyles\n});\nmodule.exports = __toCommonJS(inject_styles_exports);\nvar stylesheets = {};\nvar injectStyles = function injectStyles2(param) {\n var { filePath, css } = param;\n var stylesheet = stylesheets[filePath];\n if (!stylesheet) {\n var styleEl = document.createElement(\"style\");\n styleEl.setAttribute(\"data-file\", filePath);\n styleEl.setAttribute(\"type\", \"text/css\");\n stylesheet = stylesheets[filePath] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\n//# sourceMappingURL=inject-styles.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"__tamagui_gesture_enabled_freeze__";
39
39
  function freezeGestureHandlerEnabledMode() {
40
+ var _g, _GESTURE_ENABLED_FREEZE_KEY, _;
40
41
  var _g_GESTURE_STATE_KEY;
41
- var _g, _GESTURE_ENABLED_FREEZE_KEY;
42
42
  var g = globalThis;
43
- var _;
44
43
  var freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {
45
44
  frozen: false,
46
45
  enabled: false,
@@ -51,21 +50,21 @@ function freezeGestureHandlerEnabledMode() {
51
50
  freezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);
52
51
  freezeState.warned = false;
53
52
  }
54
- var TamaguiProvider = function(props) {
53
+ var TamaguiProvider = function TamaguiProvider2(props) {
55
54
  freezeGestureHandlerEnabledMode();
56
55
  (0, import_constants.useIsomorphicLayoutEffect)(function() {
57
56
  (0, import_use_element_layout.enable)();
58
57
  }, []);
59
58
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });
60
59
  };
61
- var createTamagui = function(conf) {
60
+ var createTamagui = function createTamagui2(conf) {
62
61
  if (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);
63
62
  return (0, import_internal_runtime.createTamagui)(conf);
64
63
  };
65
64
  var baseViews = (0, import_getBaseViews.getBaseViews)();
66
65
  (0, import_internal_runtime.setupHooks)({
67
66
  getBaseViews: import_getBaseViews.getBaseViews,
68
- setElementProps: function(node) {},
67
+ setElementProps: function setElementProps(node) {},
69
68
  usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
70
69
  useChildren(elementType, children, viewProps, isPassthrough) {
71
70
  var isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;
@@ -37,10 +37,9 @@ var import_setupMedia = require("./setupMedia.native.js");
37
37
  var GESTURE_STATE_KEY = "__tamagui_gesture__";
38
38
  var GESTURE_ENABLED_FREEZE_KEY = "__tamagui_gesture_enabled_freeze__";
39
39
  function freezeGestureHandlerEnabledMode() {
40
+ var _g, _GESTURE_ENABLED_FREEZE_KEY, _;
40
41
  var _g_GESTURE_STATE_KEY;
41
- var _g, _GESTURE_ENABLED_FREEZE_KEY;
42
42
  var g = globalThis;
43
- var _;
44
43
  var freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {
45
44
  frozen: false,
46
45
  enabled: false,
@@ -51,21 +50,21 @@ function freezeGestureHandlerEnabledMode() {
51
50
  freezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);
52
51
  freezeState.warned = false;
53
52
  }
54
- var TamaguiProvider = function(props) {
53
+ var TamaguiProvider = function TamaguiProvider2(props) {
55
54
  freezeGestureHandlerEnabledMode();
56
55
  (0, import_constants.useIsomorphicLayoutEffect)(function() {
57
56
  (0, import_use_element_layout.enable)();
58
57
  }, []);
59
58
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });
60
59
  };
61
- var createTamagui = function(conf) {
60
+ var createTamagui = function createTamagui2(conf) {
62
61
  if (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);
63
62
  return (0, import_internal_runtime.createTamagui)(conf);
64
63
  };
65
64
  var baseViews = (0, import_getBaseViews.getBaseViews)();
66
65
  (0, import_internal_runtime.setupHooks)({
67
66
  getBaseViews: import_getBaseViews.getBaseViews,
68
- setElementProps: function(node) {},
67
+ setElementProps: function setElementProps(node) {},
69
68
  usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
70
69
  useChildren(elementType, children, viewProps, isPassthrough) {
71
70
  var isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.native.js","names":[],"sources":["cjs/runtime.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar runtime_exports = {};\n__export(runtime_exports, {\n\tTamaguiProvider: () => TamaguiProvider,\n\tcreateTamagui: () => createTamagui\n});\nmodule.exports = __toCommonJS(runtime_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_use_element_layout = require(\"@tamagui/use-element-layout\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_createOptimizedView = require(\"./createOptimizedView\");\nvar import_getBaseViews = require(\"./getBaseViews\");\nvar import_setupMedia = require(\"./setupMedia\");\nvar GESTURE_STATE_KEY = \"__tamagui_gesture__\";\nvar GESTURE_ENABLED_FREEZE_KEY = \"__tamagui_gesture_enabled_freeze__\";\nfunction freezeGestureHandlerEnabledMode() {\n\tvar _g_GESTURE_STATE_KEY;\n\tvar _g, _GESTURE_ENABLED_FREEZE_KEY;\n\tvar g = globalThis;\n\tvar _;\n\tvar freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {\n\t\tfrozen: false,\n\t\tenabled: false,\n\t\twarned: false\n\t};\n\tif (freezeState.frozen) return;\n\tfreezeState.frozen = true;\n\tfreezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);\n\tfreezeState.warned = false;\n}\nvar TamaguiProvider = function(props) {\n\tfreezeGestureHandlerEnabledMode();\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_use_element_layout.enable)();\n\t}, []);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });\n};\nvar createTamagui = function(conf) {\n\tif (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);\n\treturn (0, import_internal_runtime.createTamagui)(conf);\n};\nvar baseViews = (0, import_getBaseViews.getBaseViews)();\n(0, import_internal_runtime.setupHooks)({\n\tgetBaseViews: import_getBaseViews.getBaseViews,\n\tsetElementProps: function(node) {},\n\tusePropsTransform(elementType, propsIn, stateRef, willHydrate) {},\n\tuseChildren(elementType, children, viewProps, isPassthrough) {\n\t\tvar isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;\n\t\tif (process.env.NODE_ENV === \"test\") return;\n\t\tif (isPassthrough) return;\n\t\tif (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews, isInText);\n\t}\n});\n//# sourceMappingURL=runtime.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI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AAQ;EACR,SAAS;EACT,QAAQ;CACT;CACA,IAAI,YAAY,QAAQ;CACxB,YAAY,SAAS;CACrB,YAAY,UAAU,SAAS,uBAAuB,EAAE,wBAAwB,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,OAAO;CAC/J,YAAY,SAAS;AACtB;AACA,IAAI,kBAAkB,SAAS,OAAO;CACrC,gCAAgC;CAChC,CAAC,GAAG,iBAAiB,0BAAyB,CAAE,WAAW;EAC1D,CAAC,GAAG,0BAA0B,OAAM,CAAE;CACvC,GAAG,CAAC,CAAC;CACL,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,wBAAwB,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACzG;AACA,IAAI,gBAAgB,SAAS,MAAM;CAClC,IAAI,KAAK,OAAO,KAAK,SAAS,GAAG,kBAAkB,WAAU,CAAE,KAAK,KAAK;CACzE,QAAQ,GAAG,wBAAwB,cAAa,CAAE,IAAI;AACvD;AACA,IAAI,aAAa,GAAG,oBAAoB,aAAY,CAAE;CACrD,GAAG,wBAAwB,WAAU,CAAE;CACvC,cAAc,oBAAoB;CAClC,iBAAiB,SAAS,MAAM,CAAC;CACjC,kBAAkB,aAAa,SAAS,UAAU,aAAa,CAAC;CAChE,YAAY,aAAa,UAAU,WAAW,eAAe;EAC5D,IAAI,WAAW,UAAU,eAAe,SAAS,GAAG,aAAa,WAAU,CAAE,UAAU,YAAY,CAAC,IAAI;EACxG,IAAI,QAAQ,IAAI,aAAa,QAAQ;EACrC,IAAI,eAAe;EACnB,IAAI,gBAAgB,UAAU,QAAQ,UAAU,cAAc,QAAQ,GAAG,2BAA2B,oBAAmB,CAAE,UAAU,WAAW,WAAW,QAAQ;CAClK;AACD,CAAC"}
1
+ {"version":3,"file":"runtime.native.js","names":[],"sources":["cjs/runtime.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar runtime_exports = {};\n__export(runtime_exports, {\n\tTamaguiProvider: () => TamaguiProvider,\n\tcreateTamagui: () => createTamagui\n});\nmodule.exports = __toCommonJS(runtime_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_use_element_layout = require(\"@tamagui/use-element-layout\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_createOptimizedView = require(\"./createOptimizedView\");\nvar import_getBaseViews = require(\"./getBaseViews\");\nvar import_setupMedia = require(\"./setupMedia\");\nvar GESTURE_STATE_KEY = \"__tamagui_gesture__\";\nvar GESTURE_ENABLED_FREEZE_KEY = \"__tamagui_gesture_enabled_freeze__\";\nfunction freezeGestureHandlerEnabledMode() {\n\tvar _g, _GESTURE_ENABLED_FREEZE_KEY, _;\n\tvar _g_GESTURE_STATE_KEY;\n\tvar g = globalThis;\n\tvar freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {\n\t\tfrozen: false,\n\t\tenabled: false,\n\t\twarned: false\n\t};\n\tif (freezeState.frozen) return;\n\tfreezeState.frozen = true;\n\tfreezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);\n\tfreezeState.warned = false;\n}\nvar TamaguiProvider = function TamaguiProvider2(props) {\n\tfreezeGestureHandlerEnabledMode();\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_use_element_layout.enable)();\n\t}, []);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });\n};\nvar createTamagui = function createTamagui2(conf) {\n\tif (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);\n\treturn (0, import_internal_runtime.createTamagui)(conf);\n};\nvar baseViews = (0, import_getBaseViews.getBaseViews)();\n(0, import_internal_runtime.setupHooks)({\n\tgetBaseViews: import_getBaseViews.getBaseViews,\n\tsetElementProps: function setElementProps(node) {},\n\tusePropsTransform(elementType, propsIn, stateRef, willHydrate) {},\n\tuseChildren(elementType, children, viewProps, isPassthrough) {\n\t\tvar isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;\n\t\tif (process.env.NODE_ENV === \"test\") return;\n\t\tif (isPassthrough) return;\n\t\tif (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews, isInText);\n\t}\n});\n//# sourceMappingURL=runtime.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,S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,GAAG,iBAAiB,0BAAyB,CAAE,WAAW;EAC1D,CAAC,GAAG,0BAA0B,OAAM,CAAE;CACvC,GAAG,CAAC,CAAC;CACL,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,wBAAwB,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACzG;AACA,IAAI,gBAAgB,SAAS,eAAe,MAAM;CACjD,IAAI,KAAK,OAAO,KAAK,SAAS,GAAG,kBAAkB,WAAU,CAAE,KAAK,KAAK;CACzE,QAAQ,GAAG,wBAAwB,cAAa,CAAE,IAAI;AACvD;AACA,IAAI,aAAa,GAAG,oBAAoB,aAAY,CAAE;CACrD,GAAG,wBAAwB,WAAU,CAAE;CACvC,cAAc,oBAAoB;CAClC,iBAAiB,SAAS,gBAAgB,MAAM,CAAC;CACjD,kBAAkB,aAAa,SAAS,UAAU,aAAa,CAAC;CAChE,YAAY,aAAa,UAAU,WAAW,eAAe;EAC5D,IAAI,WAAW,UAAU,eAAe,SAAS,GAAG,aAAa,WAAU,CAAE,UAAU,YAAY,CAAC,IAAI;EACxG,IAAI,QAAQ,IAAI,aAAa,QAAQ;EACrC,IAAI,eAAe;EACnB,IAAI,gBAAgB,UAAU,QAAQ,UAAU,cAAc,QAAQ,GAAG,2BAA2B,oBAAmB,CAAE,UAAU,WAAW,WAAW,QAAQ;CAClK;AACD,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
 
3
3
  function createOptimizedView(children, viewProps, baseViews, isInText) {
4
+ var _ref;
4
5
  var _viewProps_style;
5
6
  var TextAncestor = baseViews.TextAncestor;
6
7
  var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, "aria-busy": ariaBusy, "aria-checked": ariaChecked, "aria-disabled": ariaDisabled, "aria-expanded": ariaExpanded, "aria-hidden": ariaHidden, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-live": ariaLive, "aria-selected": ariaSelected, "aria-valuemax": ariaValueMax, "aria-valuemin": ariaValueMin, "aria-valuenow": ariaValueNow, "aria-valuetext": ariaValueText, id, role, tabIndex } = viewProps;
7
- var _ariaLabelledBy_split;
8
- var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;
8
+ var _accessibilityLabelledBy = (_ref = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\s*,\s*/g)) !== null && _ref !== void 0 ? _ref : accessibilityLabelledBy;
9
9
  var _accessibilityState;
10
10
  if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {
11
11
  _accessibilityState = {
@@ -1 +1 @@
1
- {"version":3,"file":"createOptimizedView.native.js","names":[],"sources":["esm/createOptimizedView.native.js"],"sourcesContent":["import React from \"react\";\nfunction createOptimizedView(children, viewProps, baseViews, isInText) {\n var _viewProps_style;\n var TextAncestor = baseViews.TextAncestor;\n var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, \"aria-busy\": ariaBusy, \"aria-checked\": ariaChecked, \"aria-disabled\": ariaDisabled, \"aria-expanded\": ariaExpanded, \"aria-hidden\": ariaHidden, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy, \"aria-live\": ariaLive, \"aria-selected\": ariaSelected, \"aria-valuemax\": ariaValueMax, \"aria-valuemin\": ariaValueMin, \"aria-valuenow\": ariaValueNow, \"aria-valuetext\": ariaValueText, id, role, tabIndex } = (\n // ...otherProps\n viewProps\n );\n var _ariaLabelledBy_split;\n var _accessibilityLabelledBy = (_ariaLabelledBy_split = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\\s*,\\s*/g)) !== null && _ariaLabelledBy_split !== void 0 ? _ariaLabelledBy_split : accessibilityLabelledBy;\n var _accessibilityState;\n if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {\n _accessibilityState = {\n busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,\n checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,\n disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,\n expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,\n selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected\n };\n }\n var _accessibilityValue;\n if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {\n _accessibilityValue = {\n max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,\n min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,\n now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,\n text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text\n };\n }\n if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {\n var _viewProps_style1;\n viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;\n }\n if (id) {\n viewProps.nativeID = id;\n }\n if (ariaHidden === true) {\n viewProps.importantForAccessibility = \"no-hide-descendants\";\n }\n if (_accessibilityValue) {\n viewProps.accessibilityValue = _accessibilityValue;\n }\n if (role) {\n viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);\n }\n if (ariaLive === \"off\") {\n viewProps.accessibilityLiveRegion = \"none\";\n } else {\n var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;\n if (alr) {\n viewProps.accessibilityLiveRegion = alr;\n }\n }\n var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;\n if (al) {\n viewProps.accessibilityLabel = al;\n }\n delete viewProps.focusable;\n if (tabIndex !== void 0) {\n viewProps.focusable = Number(tabIndex) >= 0;\n }\n if (_accessibilityState != null) {\n viewProps.accessibilityState = _accessibilityState;\n }\n var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;\n if (ah != null) {\n viewProps.accessibilityElementsHidden = ah;\n }\n if (_accessibilityLabelledBy) {\n viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;\n }\n var finalElement = /* @__PURE__ */ React.createElement(\"RCTView\", viewProps, children);\n if (!isInText) {\n return finalElement;\n }\n return /* @__PURE__ */ React.createElement(TextAncestor.Provider, {\n value: false\n }, finalElement);\n}\nfunction getAccessibilityRoleFromRole(role) {\n switch (role) {\n case \"alert\":\n return \"alert\";\n case \"alertdialog\":\n return;\n case \"application\":\n return;\n case \"article\":\n return;\n case \"banner\":\n return;\n case \"button\":\n return \"button\";\n case \"cell\":\n return;\n case \"checkbox\":\n return \"checkbox\";\n case \"columnheader\":\n return;\n case \"combobox\":\n return \"combobox\";\n case \"complementary\":\n return;\n case \"contentinfo\":\n return;\n case \"definition\":\n return;\n case \"dialog\":\n return;\n case \"directory\":\n return;\n case \"document\":\n return;\n case \"feed\":\n return;\n case \"figure\":\n return;\n case \"form\":\n return;\n case \"grid\":\n return \"grid\";\n case \"group\":\n return;\n case \"heading\":\n return \"header\";\n case \"img\":\n return \"image\";\n case \"link\":\n return \"link\";\n case \"list\":\n return \"list\";\n case \"listitem\":\n return;\n case \"log\":\n return;\n case \"main\":\n return;\n case \"marquee\":\n return;\n case \"math\":\n return;\n case \"menu\":\n return \"menu\";\n case \"menubar\":\n return \"menubar\";\n case \"menuitem\":\n return \"menuitem\";\n case \"meter\":\n return;\n case \"navigation\":\n return;\n case \"none\":\n return \"none\";\n case \"note\":\n return;\n case \"option\":\n return;\n case \"presentation\":\n return \"none\";\n case \"progressbar\":\n return \"progressbar\";\n case \"radio\":\n return \"radio\";\n case \"radiogroup\":\n return \"radiogroup\";\n case \"region\":\n return;\n case \"row\":\n return;\n case \"rowgroup\":\n return;\n case \"rowheader\":\n return;\n case \"scrollbar\":\n return \"scrollbar\";\n case \"searchbox\":\n return \"search\";\n case \"separator\":\n return;\n case \"slider\":\n return \"adjustable\";\n case \"spinbutton\":\n return \"spinbutton\";\n case \"status\":\n return;\n case \"summary\":\n return \"summary\";\n case \"switch\":\n return \"switch\";\n case \"tab\":\n return \"tab\";\n case \"table\":\n return;\n case \"tablist\":\n return \"tablist\";\n case \"tabpanel\":\n return;\n case \"term\":\n return;\n case \"timer\":\n return \"timer\";\n case \"toolbar\":\n return \"toolbar\";\n case \"tooltip\":\n return;\n case \"tree\":\n return;\n case \"treegrid\":\n return;\n case \"treeitem\":\n return;\n }\n return;\n}\nexport {\n createOptimizedView,\n getAccessibilityRoleFromRole\n};\n//# sourceMappingURL=createOptimizedView.native.js.map\n"],"mappings":";;;AACA,SAAS,oBAAoB,UAAU,WAAW,WAAW,UAAU;CACrE,IAAI;CACJ,IAAI,eAAe,UAAU;CAC7B,IAAI,EAAE,6BAA6B,oBAAoB,yBAAyB,yBAAyB,oBAAoB,oBAAoB,aAAa,UAAU,gBAAgB,aAAa,iBAAiB,cAAc,iBAAiB,cAAc,eAAe,YAAY,cAAc,WAAW,mBAAmB,gBAAgB,aAAa,UA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,cAAc,WAAW,WAAW,QAAQ;CACrF,IAAI,CAAC,UAAU;EACb,OAAO;CACT;CACA,OAAuB,sBAAM,cAAc,aAAa,UAAU,EAChE,OAAO,MACT,GAAG,YAAY;AACjB;AACA,SAAS,6BAA6B,MAAM;CAC1C,QAAQ,MAAR;EACE,KAAK,SACH,OAAO;EACT,KAAK,eACH;EACF,KAAK,eACH;EACF,KAAK,WACH;EACF,KAAK,UACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,gBACH;EACF,KAAK,YACH,OAAO;EACT,KAAK,iBACH;EACF,KAAK,eACH;EACF,KAAK,cACH;EACF,KAAK,UACH;EACF,KAAK,aACH;EACF,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,OACH;EACF,KAAK,QACH;EACF,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,YACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,cACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,gBACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,OACH;EACF,KAAK,YACH;EACF,KAAK,aACH;EACF,KAAK,aACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,aACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,SACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,YACH;EACF,KAAK,YACH;CACJ;CACA;AACF"}
1
+ {"version":3,"file":"createOptimizedView.native.js","names":[],"sources":["esm/createOptimizedView.native.js"],"sourcesContent":["import React from \"react\";\nfunction createOptimizedView(children, viewProps, baseViews, isInText) {\n var _ref;\n var _viewProps_style;\n var TextAncestor = baseViews.TextAncestor;\n var { accessibilityElementsHidden, accessibilityLabel, accessibilityLabelledBy, accessibilityLiveRegion, accessibilityState, accessibilityValue, \"aria-busy\": ariaBusy, \"aria-checked\": ariaChecked, \"aria-disabled\": ariaDisabled, \"aria-expanded\": ariaExpanded, \"aria-hidden\": ariaHidden, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy, \"aria-live\": ariaLive, \"aria-selected\": ariaSelected, \"aria-valuemax\": ariaValueMax, \"aria-valuemin\": ariaValueMin, \"aria-valuenow\": ariaValueNow, \"aria-valuetext\": ariaValueText, id, role, tabIndex } = (\n // ...otherProps\n viewProps\n );\n var _accessibilityLabelledBy = (_ref = ariaLabelledBy === null || ariaLabelledBy === void 0 ? void 0 : ariaLabelledBy.split(/\\s*,\\s*/g)) !== null && _ref !== void 0 ? _ref : accessibilityLabelledBy;\n var _accessibilityState;\n if (accessibilityState != null || ariaBusy != null || ariaChecked != null || ariaDisabled != null || ariaExpanded != null || ariaSelected != null) {\n _accessibilityState = {\n busy: ariaBusy !== null && ariaBusy !== void 0 ? ariaBusy : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy,\n checked: ariaChecked !== null && ariaChecked !== void 0 ? ariaChecked : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked,\n disabled: ariaDisabled !== null && ariaDisabled !== void 0 ? ariaDisabled : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled,\n expanded: ariaExpanded !== null && ariaExpanded !== void 0 ? ariaExpanded : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded,\n selected: ariaSelected !== null && ariaSelected !== void 0 ? ariaSelected : accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected\n };\n }\n var _accessibilityValue;\n if (accessibilityValue != null || ariaValueMax != null || ariaValueMin != null || ariaValueNow != null || ariaValueText != null) {\n _accessibilityValue = {\n max: ariaValueMax !== null && ariaValueMax !== void 0 ? ariaValueMax : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.max,\n min: ariaValueMin !== null && ariaValueMin !== void 0 ? ariaValueMin : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.min,\n now: ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.now,\n text: ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : accessibilityValue === null || accessibilityValue === void 0 ? void 0 : accessibilityValue.text\n };\n }\n if ((_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style.pointerEvents) {\n var _viewProps_style1;\n viewProps.pointerEvents = (_viewProps_style1 = viewProps.style) === null || _viewProps_style1 === void 0 ? void 0 : _viewProps_style1.pointerEvents;\n }\n if (id) {\n viewProps.nativeID = id;\n }\n if (ariaHidden === true) {\n viewProps.importantForAccessibility = \"no-hide-descendants\";\n }\n if (_accessibilityValue) {\n viewProps.accessibilityValue = _accessibilityValue;\n }\n if (role) {\n viewProps.accessibilityRole = getAccessibilityRoleFromRole(role);\n }\n if (ariaLive === \"off\") {\n viewProps.accessibilityLiveRegion = \"none\";\n } else {\n var alr = ariaLive !== null && ariaLive !== void 0 ? ariaLive : accessibilityLiveRegion;\n if (alr) {\n viewProps.accessibilityLiveRegion = alr;\n }\n }\n var al = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : accessibilityLabel;\n if (al) {\n viewProps.accessibilityLabel = al;\n }\n delete viewProps.focusable;\n if (tabIndex !== void 0) {\n viewProps.focusable = Number(tabIndex) >= 0;\n }\n if (_accessibilityState != null) {\n viewProps.accessibilityState = _accessibilityState;\n }\n var ah = ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : accessibilityElementsHidden;\n if (ah != null) {\n viewProps.accessibilityElementsHidden = ah;\n }\n if (_accessibilityLabelledBy) {\n viewProps.accessibilityLabelledBy = _accessibilityLabelledBy;\n }\n var finalElement = /* @__PURE__ */ React.createElement(\"RCTView\", viewProps, children);\n if (!isInText) {\n return finalElement;\n }\n return /* @__PURE__ */ React.createElement(TextAncestor.Provider, {\n value: false\n }, finalElement);\n}\nfunction getAccessibilityRoleFromRole(role) {\n switch (role) {\n case \"alert\":\n return \"alert\";\n case \"alertdialog\":\n return;\n case \"application\":\n return;\n case \"article\":\n return;\n case \"banner\":\n return;\n case \"button\":\n return \"button\";\n case \"cell\":\n return;\n case \"checkbox\":\n return \"checkbox\";\n case \"columnheader\":\n return;\n case \"combobox\":\n return \"combobox\";\n case \"complementary\":\n return;\n case \"contentinfo\":\n return;\n case \"definition\":\n return;\n case \"dialog\":\n return;\n case \"directory\":\n return;\n case \"document\":\n return;\n case \"feed\":\n return;\n case \"figure\":\n return;\n case \"form\":\n return;\n case \"grid\":\n return \"grid\";\n case \"group\":\n return;\n case \"heading\":\n return \"header\";\n case \"img\":\n return \"image\";\n case \"link\":\n return \"link\";\n case \"list\":\n return \"list\";\n case \"listitem\":\n return;\n case \"log\":\n return;\n case \"main\":\n return;\n case \"marquee\":\n return;\n case \"math\":\n return;\n case \"menu\":\n return \"menu\";\n case \"menubar\":\n return \"menubar\";\n case \"menuitem\":\n return \"menuitem\";\n case \"meter\":\n return;\n case \"navigation\":\n return;\n case \"none\":\n return \"none\";\n case \"note\":\n return;\n case \"option\":\n return;\n case \"presentation\":\n return \"none\";\n case \"progressbar\":\n return \"progressbar\";\n case \"radio\":\n return \"radio\";\n case \"radiogroup\":\n return \"radiogroup\";\n case \"region\":\n return;\n case \"row\":\n return;\n case \"rowgroup\":\n return;\n case \"rowheader\":\n return;\n case \"scrollbar\":\n return \"scrollbar\";\n case \"searchbox\":\n return \"search\";\n case \"separator\":\n return;\n case \"slider\":\n return \"adjustable\";\n case \"spinbutton\":\n return \"spinbutton\";\n case \"status\":\n return;\n case \"summary\":\n return \"summary\";\n case \"switch\":\n return \"switch\";\n case \"tab\":\n return \"tab\";\n case \"table\":\n return;\n case \"tablist\":\n return \"tablist\";\n case \"tabpanel\":\n return;\n case \"term\":\n return;\n case \"timer\":\n return \"timer\";\n case \"toolbar\":\n return \"toolbar\";\n case \"tooltip\":\n return;\n case \"tree\":\n return;\n case \"treegrid\":\n return;\n case \"treeitem\":\n return;\n }\n return;\n}\nexport {\n createOptimizedView,\n getAccessibilityRoleFromRole\n};\n//# sourceMappingURL=createOptimizedView.native.js.map\n"],"mappings":";;;AACA,SAAS,oBAAoB,UAAU,WAAW,WAAW,UAAU;CACrE,IAAI;CACJ,IAAI;CACJ,IAAI,eAAe,UAAU;CAC7B,IAAI,EAAE,6BAA6B,oBAAoB,yBAAyB,yBAAyB,oBAAoB,oBAAoB,aAAa,UAAU,gBAAgB,aAAa,iBAAiB,cAAc,iBAAiB,cAAc,eAAe,YAAY,cAAc,WAAW,mBAAmB,gBAAgB,aAAa,UAAU,iBAAiB,cAAc,iBAAiB,cAAc,iBAAiB,cAAc,iBAAiB,cAAc,kBAAkB,eAAe,IAAI,MAAM,aAEthB;CAEF,IAAI,4BAA4B,OAAO,mBAAmB,QAAQ,mBAAmB,KAAK,IAAI,KAAK,IAAI,eAAe,MAAM,UAAU,OAAO,QAAQ,SAAS,KAAK,IAAI,OAAO;CAC9K,IAAI;CACJ,IAAI,sBAAsB,QAAQ,YAAY,QAAQ,eAAe,QAAQ,gBAAgB,QAAQ,gBAAgB,QAAQ,gBAAgB,MAAM;EACjJ,sBAAsB;GACpB,MAAM,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW,uBAAuB,QAAQ,uB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,aACH;EACF,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,OACH;EACF,KAAK,QACH;EACF,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,YACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,cACH;EACF,KAAK,QACH,OAAO;EACT,KAAK,QACH;EACF,KAAK,UACH;EACF,KAAK,gBACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,OACH;EACF,KAAK,YACH;EACF,KAAK,aACH;EACF,KAAK,aACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,aACH;EACF,KAAK,UACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,UACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,SACH;EACF,KAAK,WACH,OAAO;EACT,KAAK,YACH;EACF,KAAK,QACH;EACF,KAAK,SACH,OAAO;EACT,KAAK,WACH,OAAO;EACT,KAAK,WACH;EACF,KAAK,QACH;EACF,KAAK,YACH;EACF,KAAK,YACH;CACJ;CACA;AACF"}
@@ -1,5 +1,5 @@
1
1
  var stylesheets = {};
2
- var injectStyles = function(param) {
2
+ var injectStyles = function injectStyles2(param) {
3
3
  var { filePath, css } = param;
4
4
  var stylesheet = stylesheets[filePath];
5
5
  if (!stylesheet) {
@@ -1 +1 @@
1
- {"version":3,"file":"inject-styles.native.js","names":[],"sources":["esm/inject-styles.native.js"],"sourcesContent":["var stylesheets = {};\nvar injectStyles = function(param) {\n var { filePath, css } = param;\n var stylesheet = stylesheets[filePath];\n if (!stylesheet) {\n var styleEl = document.createElement(\"style\");\n styleEl.setAttribute(\"data-file\", filePath);\n styleEl.setAttribute(\"type\", \"text/css\");\n stylesheet = stylesheets[filePath] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\nexport {\n injectStyles\n};\n//# sourceMappingURL=inject-styles.js.map\n"],"mappings":";AAAA,IAAI,cAAc,CAAC;AACnB,IAAI,eAAe,SAAS,OAAO;CACjC,IAAI,EAAE,UAAU,QAAQ;CACxB,IAAI,aAAa,YAAY;CAC7B,IAAI,CAAC,YAAY;EACf,IAAI,UAAU,SAAS,cAAc,OAAO;EAC5C,QAAQ,aAAa,aAAa,QAAQ;EAC1C,QAAQ,aAAa,QAAQ,UAAU;EACvC,aAAa,YAAY,YAAY;EACrC,SAAS,KAAK,YAAY,OAAO;CACnC;CACA,WAAW,YAAY;AACzB"}
1
+ {"version":3,"file":"inject-styles.native.js","names":[],"sources":["esm/inject-styles.native.js"],"sourcesContent":["var stylesheets = {};\nvar injectStyles = function injectStyles2(param) {\n var { filePath, css } = param;\n var stylesheet = stylesheets[filePath];\n if (!stylesheet) {\n var styleEl = document.createElement(\"style\");\n styleEl.setAttribute(\"data-file\", filePath);\n styleEl.setAttribute(\"type\", \"text/css\");\n stylesheet = stylesheets[filePath] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\nexport {\n injectStyles\n};\n//# sourceMappingURL=inject-styles.js.map\n"],"mappings":";AAAA,IAAI,cAAc,CAAC;AACnB,IAAI,eAAe,SAAS,cAAc,OAAO;CAC/C,IAAI,EAAE,UAAU,QAAQ;CACxB,IAAI,aAAa,YAAY;CAC7B,IAAI,CAAC,YAAY;EACf,IAAI,UAAU,SAAS,cAAc,OAAO;EAC5C,QAAQ,aAAa,aAAa,QAAQ;EAC1C,QAAQ,aAAa,QAAQ,UAAU;EACvC,aAAa,YAAY,YAAY;EACrC,SAAS,KAAK,YAAY,OAAO;CACnC;CACA,WAAW,YAAY;AACzB"}
@@ -10,10 +10,9 @@ import { setupMedia } from "./setupMedia.native.js";
10
10
  var GESTURE_STATE_KEY = "__tamagui_gesture__";
11
11
  var GESTURE_ENABLED_FREEZE_KEY = "__tamagui_gesture_enabled_freeze__";
12
12
  function freezeGestureHandlerEnabledMode() {
13
+ var _g, _GESTURE_ENABLED_FREEZE_KEY, _;
13
14
  var _g_GESTURE_STATE_KEY;
14
- var _g, _GESTURE_ENABLED_FREEZE_KEY;
15
15
  var g = globalThis;
16
- var _;
17
16
  var freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {
18
17
  frozen: false,
19
18
  enabled: false,
@@ -24,21 +23,21 @@ function freezeGestureHandlerEnabledMode() {
24
23
  freezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);
25
24
  freezeState.warned = false;
26
25
  }
27
- var TamaguiProvider = function(props) {
26
+ var TamaguiProvider = function TamaguiProvider2(props) {
28
27
  freezeGestureHandlerEnabledMode();
29
28
  useIsomorphicLayoutEffect(function() {
30
29
  enable();
31
30
  }, []);
32
31
  return /* @__PURE__ */ jsx(TamaguiProvider$1, { ...props });
33
32
  };
34
- var createTamagui = function(conf) {
33
+ var createTamagui = function createTamagui2(conf) {
35
34
  if (conf.media) conf.media = setupMedia(conf.media);
36
35
  return createTamagui$1(conf);
37
36
  };
38
37
  var baseViews = getBaseViews();
39
38
  setupHooks({
40
39
  getBaseViews,
41
- setElementProps: function(node) {},
40
+ setElementProps: function setElementProps(node) {},
42
41
  usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
43
42
  useChildren(elementType, children, viewProps, isPassthrough) {
44
43
  var isInText = baseViews.TextAncestor ? Boolean(useContext(baseViews.TextAncestor)) : false;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.native.js","names":[],"sources":["esm/runtime.native.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { useContext } from \"react\";\nimport { enable } from \"@tamagui/use-element-layout\";\nimport { TamaguiProvider as TamaguiProvider$1, createTamagui as createTamagui$1, setupHooks } from \"@tamagui/web/internal-runtime\";\nimport { createOptimizedView } from \"./createOptimizedView\";\nimport { getBaseViews } from \"./getBaseViews\";\nimport { setupMedia } from \"./setupMedia\";\n\nvar GESTURE_STATE_KEY = \"__tamagui_gesture__\";\nvar GESTURE_ENABLED_FREEZE_KEY = \"__tamagui_gesture_enabled_freeze__\";\nfunction freezeGestureHandlerEnabledMode() {\n\tvar _g_GESTURE_STATE_KEY;\n\tvar _g, _GESTURE_ENABLED_FREEZE_KEY;\n\tvar g = globalThis;\n\tvar _;\n\tvar freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {\n\t\tfrozen: false,\n\t\tenabled: false,\n\t\twarned: false\n\t};\n\tif (freezeState.frozen) return;\n\tfreezeState.frozen = true;\n\tfreezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);\n\tfreezeState.warned = false;\n}\nvar TamaguiProvider = function(props) {\n\tfreezeGestureHandlerEnabledMode();\n\tuseIsomorphicLayoutEffect(function() {\n\t\tenable();\n\t}, []);\n\treturn /* @__PURE__ */ jsx(TamaguiProvider$1, { ...props });\n};\nvar createTamagui = function(conf) {\n\tif (conf.media) conf.media = setupMedia(conf.media);\n\treturn createTamagui$1(conf);\n};\nvar baseViews = getBaseViews();\nsetupHooks({\n\tgetBaseViews,\n\tsetElementProps: function(node) {},\n\tusePropsTransform(elementType, propsIn, stateRef, willHydrate) {},\n\tuseChildren(elementType, children, viewProps, isPassthrough) {\n\t\tvar isInText = baseViews.TextAncestor ? Boolean(useContext(baseViews.TextAncestor)) : false;\n\t\tif (process.env.NODE_ENV === \"test\") return;\n\t\tif (isPassthrough) return;\n\t\tif (elementType === baseViews.View && baseViews.TextAncestor) return createOptimizedView(children, viewProps, baseViews, isInText);\n\t}\n});\n\nexport { TamaguiProvider, createTamagui };"],"mappings":";;;;;;;;;;AASA,IAAI,oBAAoB;AACxB,IAAI,6BAA6B;AACjC,SAAS,kCAAkC;CAC1C,IAAI;CACJ,IAAI,IAAI;CACR,IAAI,IAAI;CACR,IAAI;CACJ,IAAI,eAAe,KAAK,KAAK,EAAC,CAAE,8BAA8B,iCAAiC,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,+BAA+B;EAC3J,QAAQ;EACR,SAAS;EACT,QAAQ;CACT;CACA,IAAI,YAAY,QAAQ;CACxB,YAAY,SAAS;CACrB,YAAY,UAAU,SAAS,uBAAuB,EAAE,wBAAwB,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,OAAO;CAC/J,YAAY,SAAS;AACtB;AACA,IAAI,kBAAkB,SAAS,OAAO;CACrC,gCAAgC;CAChC,0BAA0B,WAAW;EACpC,OAAO;CACR,GAAG,CAAC,CAAC;CACL,OAAuB,oBAAI,mBAAmB,EAAE,GAAG,MAAM,CAAC;AAC3D;AACA,IAAI,gBAAgB,SAAS,MAAM;CAClC,IAAI,KAAK,OAAO,KAAK,QAAQ,WAAW,KAAK,KAAK;CAClD,OAAO,gBAAgB,IAAI;AAC5B;AACA,IAAI,YAAY,aAAa;AAC7B,WAAW;CACV;CACA,iBAAiB,SAAS,MAAM,CAAC;CACjC,kBAAkB,aAAa,SAAS,UAAU,aAAa,CAAC;CAChE,YAAY,aAAa,UAAU,WAAW,eAAe;EAC5D,IAAI,WAAW,UAAU,eAAe,QAAQ,WAAW,UAAU,YAAY,CAAC,IAAI;EACtF,IAAI,QAAQ,IAAI,aAAa,QAAQ;EACrC,IAAI,eAAe;EACnB,IAAI,gBAAgB,UAAU,QAAQ,UAAU,cAAc,OAAO,oBAAoB,UAAU,WAAW,WAAW,QAAQ;CAClI;AACD,CAAC"}
1
+ {"version":3,"file":"runtime.native.js","names":[],"sources":["esm/runtime.native.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { useContext } from \"react\";\nimport { enable } from \"@tamagui/use-element-layout\";\nimport { TamaguiProvider as TamaguiProvider$1, createTamagui as createTamagui$1, setupHooks } from \"@tamagui/web/internal-runtime\";\nimport { createOptimizedView } from \"./createOptimizedView\";\nimport { getBaseViews } from \"./getBaseViews\";\nimport { setupMedia } from \"./setupMedia\";\n\nvar GESTURE_STATE_KEY = \"__tamagui_gesture__\";\nvar GESTURE_ENABLED_FREEZE_KEY = \"__tamagui_gesture_enabled_freeze__\";\nfunction freezeGestureHandlerEnabledMode() {\n\tvar _g, _GESTURE_ENABLED_FREEZE_KEY, _;\n\tvar _g_GESTURE_STATE_KEY;\n\tvar g = globalThis;\n\tvar freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {\n\t\tfrozen: false,\n\t\tenabled: false,\n\t\twarned: false\n\t};\n\tif (freezeState.frozen) return;\n\tfreezeState.frozen = true;\n\tfreezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);\n\tfreezeState.warned = false;\n}\nvar TamaguiProvider = function TamaguiProvider2(props) {\n\tfreezeGestureHandlerEnabledMode();\n\tuseIsomorphicLayoutEffect(function() {\n\t\tenable();\n\t}, []);\n\treturn /* @__PURE__ */ jsx(TamaguiProvider$1, { ...props });\n};\nvar createTamagui = function createTamagui2(conf) {\n\tif (conf.media) conf.media = setupMedia(conf.media);\n\treturn createTamagui$1(conf);\n};\nvar baseViews = getBaseViews();\nsetupHooks({\n\tgetBaseViews,\n\tsetElementProps: function setElementProps(node) {},\n\tusePropsTransform(elementType, propsIn, stateRef, willHydrate) {},\n\tuseChildren(elementType, children, viewProps, isPassthrough) {\n\t\tvar isInText = baseViews.TextAncestor ? Boolean(useContext(baseViews.TextAncestor)) : false;\n\t\tif (process.env.NODE_ENV === \"test\") return;\n\t\tif (isPassthrough) return;\n\t\tif (elementType === baseViews.View && baseViews.TextAncestor) return createOptimizedView(children, viewProps, baseViews, isInText);\n\t}\n});\n\nexport { TamaguiProvider, createTamagui };"],"mappings":";;;;;;;;;;AASA,IAAI,oBAAoB;AACxB,IAAI,6BAA6B;AACjC,SAAS,kCAAkC;CAC1C,IAAI,IAAI,6BAA6B;CACrC,IAAI;CACJ,IAAI,IAAI;CACR,IAAI,eAAe,KAAK,KAAK,EAAC,CAAE,8BAA8B,iCAAiC,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,+BAA+B;EAC3J,QAAQ;EACR,SAAS;EACT,QAAQ;CACT;CACA,IAAI,YAAY,QAAQ;CACxB,YAAY,SAAS;CACrB,YAAY,UAAU,SAAS,uBAAuB,EAAE,wBAAwB,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,OAAO;CAC/J,YAAY,SAAS;AACtB;AACA,IAAI,kBAAkB,SAAS,iBAAiB,OAAO;CACtD,gCAAgC;CAChC,0BAA0B,WAAW;EACpC,OAAO;CACR,GAAG,CAAC,CAAC;CACL,OAAuB,oBAAI,mBAAmB,EAAE,GAAG,MAAM,CAAC;AAC3D;AACA,IAAI,gBAAgB,SAAS,eAAe,MAAM;CACjD,IAAI,KAAK,OAAO,KAAK,QAAQ,WAAW,KAAK,KAAK;CAClD,OAAO,gBAAgB,IAAI;AAC5B;AACA,IAAI,YAAY,aAAa;AAC7B,WAAW;CACV;CACA,iBAAiB,SAAS,gBAAgB,MAAM,CAAC;CACjD,kBAAkB,aAAa,SAAS,UAAU,aAAa,CAAC;CAChE,YAAY,aAAa,UAAU,WAAW,eAAe;EAC5D,IAAI,WAAW,UAAU,eAAe,QAAQ,WAAW,UAAU,YAAY,CAAC,IAAI;EACtF,IAAI,QAAQ,IAAI,aAAa,QAAQ;EACrC,IAAI,eAAe;EACnB,IAAI,gBAAgB,UAAU,QAAQ,UAAU,cAAc,OAAO,oBAAoB,UAAU,WAAW,WAAW,QAAQ;CAClI;AACD,CAAC"}