tamagui 1.137.2 → 1.137.3

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 (3) hide show
  1. package/dist/native.cjs +99 -10
  2. package/dist/test.cjs +99 -10
  3. package/package.json +55 -55
package/dist/native.cjs CHANGED
@@ -1827,23 +1827,73 @@ function getNewThemeName() {
1827
1827
  }
1828
1828
  var parentParts = parentName.split("_"), lastName = parentParts[parentParts.length - 1];
1829
1829
  lastName && lastName[0].toLowerCase() !== lastName[0] && parentParts.pop();
1830
- for (var subNames = [name && componentName ? `${name}_${componentName}` : void 0, name, componentName].filter(Boolean), found = null, max2 = parentParts.length, i = 0; i <= max2; i++) {
1831
- var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
1830
+ var subNames = [name && componentName ? `${name}_${componentName}` : void 0, name, componentName].filter(Boolean), found = null;
1831
+ if (name) {
1832
+ var nameHasScheme = getScheme(name);
1833
+ if (nameHasScheme) {
1834
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
1835
+ try {
1836
+ for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1837
+ var subName = _step.value;
1838
+ if (subName in themes2) {
1839
+ found = subName;
1840
+ break;
1841
+ }
1842
+ }
1843
+ } catch (err) {
1844
+ _didIteratorError = true, _iteratorError = err;
1845
+ } finally {
1846
+ try {
1847
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
1848
+ } finally {
1849
+ if (_didIteratorError) throw _iteratorError;
1850
+ }
1851
+ }
1852
+ }
1853
+ if (!found && !nameHasScheme) {
1854
+ var parentScheme = getScheme(parentName);
1855
+ if (parentScheme) {
1856
+ var parentBase = parentParts.join("_"), withScheme = [componentName ? `${parentBase}_${name}_${componentName}` : void 0, `${parentBase}_${name}`, componentName ? `${parentScheme}_${name}_${componentName}` : void 0, `${parentScheme}_${name}`].filter(Boolean), _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
1857
+ try {
1858
+ for (var _iterator1 = withScheme[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
1859
+ var potential = _step1.value;
1860
+ if (potential in themes2) {
1861
+ found = potential;
1862
+ break;
1863
+ }
1864
+ }
1865
+ } catch (err) {
1866
+ _didIteratorError1 = true, _iteratorError1 = err;
1867
+ } finally {
1868
+ try {
1869
+ !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
1870
+ } finally {
1871
+ if (_didIteratorError1) throw _iteratorError1;
1872
+ }
1873
+ }
1874
+ }
1875
+ }
1876
+ }
1877
+ if (!found) if (!name && componentName) {
1878
+ var potential1 = `${parentParts.join("_")}_${componentName}`;
1879
+ potential1 in themes2 && (found = potential1);
1880
+ } else for (var max2 = parentParts.length, i = 0; i <= max2; i++) {
1881
+ var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
1832
1882
  try {
1833
- for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1834
- var subName = _step.value, potential = base ? `${base}_${subName}` : subName;
1835
- if (potential in themes2) {
1836
- found = potential;
1883
+ for (var _iterator2 = subNames[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
1884
+ var subName1 = _step2.value, potential2 = base ? `${base}_${subName1}` : subName1;
1885
+ if (potential2 in themes2) {
1886
+ found = potential2;
1837
1887
  break;
1838
1888
  }
1839
1889
  }
1840
1890
  } catch (err) {
1841
- _didIteratorError = true, _iteratorError = err;
1891
+ _didIteratorError2 = true, _iteratorError2 = err;
1842
1892
  } finally {
1843
1893
  try {
1844
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
1894
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
1845
1895
  } finally {
1846
- if (_didIteratorError) throw _iteratorError;
1896
+ if (_didIteratorError2) throw _iteratorError2;
1847
1897
  }
1848
1898
  }
1849
1899
  if (found) break;
@@ -4761,7 +4811,45 @@ function createTamagui$2(configIn) {
4761
4811
  return themeRuleSets;
4762
4812
  }
4763
4813
  };
4764
- })(), shorthands = configIn.shorthands || {}, getCSS = function() {
4814
+ })(), builtinShorthands = {
4815
+ fd: "flexDirection",
4816
+ fb: "flexBasis",
4817
+ bblr: "borderBottomLeftRadius",
4818
+ bbrr: "borderBottomRightRadius",
4819
+ fwr: "flexWrap",
4820
+ col: "color",
4821
+ ff: "fontFamily",
4822
+ fst: "fontStyle",
4823
+ tr: "transform",
4824
+ tt: "textTransform",
4825
+ td: "textDecorationLine",
4826
+ va: "verticalAlign",
4827
+ ws: "whiteSpace",
4828
+ wb: "wordBreak",
4829
+ ww: "wordWrap",
4830
+ brc: "borderRightColor",
4831
+ brw: "borderRightWidth",
4832
+ bs: "borderStyle",
4833
+ btc: "borderTopColor",
4834
+ btlr: "borderTopLeftRadius",
4835
+ btrr: "borderTopRightRadius",
4836
+ btw: "borderTopWidth",
4837
+ bw: "borderWidth",
4838
+ o: "opacity",
4839
+ cur: "cursor",
4840
+ pe: "pointerEvents",
4841
+ ov: "overflow",
4842
+ pos: "position",
4843
+ dsp: "display",
4844
+ fw: "fontWeight",
4845
+ fs: "fontSize",
4846
+ ls: "letterSpacing",
4847
+ lh: "lineHeight",
4848
+ bxs: "boxSizing",
4849
+ bxsh: "boxShadow",
4850
+ ox: "overflowX",
4851
+ oy: "overflowY"
4852
+ }, userShorthands = configIn.shorthands || {}, shorthands = __spreadValues(__spreadValues({}, builtinShorthands), userShorthands), getCSS = function() {
4765
4853
  return "";
4766
4854
  }, getNewCSS = function(opts) {
4767
4855
  return getCSS(__spreadValues({}, opts));
@@ -4793,6 +4881,7 @@ function createTamagui$2(configIn) {
4793
4881
  tokens,
4794
4882
  // vite made this into a function if it wasn't set
4795
4883
  shorthands,
4884
+ userShorthands,
4796
4885
  inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(function(param) {
4797
4886
  var [k, v] = param;
4798
4887
  return [v, k];
package/dist/test.cjs CHANGED
@@ -2067,23 +2067,73 @@ function getNewThemeName() {
2067
2067
  }
2068
2068
  var parentParts = parentName.split("_"), lastName = parentParts[parentParts.length - 1];
2069
2069
  lastName && lastName[0].toLowerCase() !== lastName[0] && parentParts.pop();
2070
- for (var subNames = [name && componentName ? `${name}_${componentName}` : void 0, name, componentName].filter(Boolean), found = null, max2 = parentParts.length, i = 0; i <= max2; i++) {
2071
- var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
2070
+ var subNames = [name && componentName ? `${name}_${componentName}` : void 0, name, componentName].filter(Boolean), found = null;
2071
+ if (name) {
2072
+ var nameHasScheme = getScheme(name);
2073
+ if (nameHasScheme) {
2074
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
2075
+ try {
2076
+ for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2077
+ var subName = _step.value;
2078
+ if (subName in themes2) {
2079
+ found = subName;
2080
+ break;
2081
+ }
2082
+ }
2083
+ } catch (err) {
2084
+ _didIteratorError = true, _iteratorError = err;
2085
+ } finally {
2086
+ try {
2087
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
2088
+ } finally {
2089
+ if (_didIteratorError) throw _iteratorError;
2090
+ }
2091
+ }
2092
+ }
2093
+ if (!found && !nameHasScheme) {
2094
+ var parentScheme = getScheme(parentName);
2095
+ if (parentScheme) {
2096
+ var parentBase = parentParts.join("_"), withScheme = [componentName ? `${parentBase}_${name}_${componentName}` : void 0, `${parentBase}_${name}`, componentName ? `${parentScheme}_${name}_${componentName}` : void 0, `${parentScheme}_${name}`].filter(Boolean), _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
2097
+ try {
2098
+ for (var _iterator1 = withScheme[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
2099
+ var potential = _step1.value;
2100
+ if (potential in themes2) {
2101
+ found = potential;
2102
+ break;
2103
+ }
2104
+ }
2105
+ } catch (err) {
2106
+ _didIteratorError1 = true, _iteratorError1 = err;
2107
+ } finally {
2108
+ try {
2109
+ !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
2110
+ } finally {
2111
+ if (_didIteratorError1) throw _iteratorError1;
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ if (!found) if (!name && componentName) {
2118
+ var potential1 = `${parentParts.join("_")}_${componentName}`;
2119
+ potential1 in themes2 && (found = potential1);
2120
+ } else for (var max2 = parentParts.length, i = 0; i <= max2; i++) {
2121
+ var base = (i === 0 ? parentParts : parentParts.slice(0, -i)).join("_"), _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
2072
2122
  try {
2073
- for (var _iterator = subNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2074
- var subName = _step.value, potential = base ? `${base}_${subName}` : subName;
2075
- if (potential in themes2) {
2076
- found = potential;
2123
+ for (var _iterator2 = subNames[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
2124
+ var subName1 = _step2.value, potential2 = base ? `${base}_${subName1}` : subName1;
2125
+ if (potential2 in themes2) {
2126
+ found = potential2;
2077
2127
  break;
2078
2128
  }
2079
2129
  }
2080
2130
  } catch (err) {
2081
- _didIteratorError = true, _iteratorError = err;
2131
+ _didIteratorError2 = true, _iteratorError2 = err;
2082
2132
  } finally {
2083
2133
  try {
2084
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
2134
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
2085
2135
  } finally {
2086
- if (_didIteratorError) throw _iteratorError;
2136
+ if (_didIteratorError2) throw _iteratorError2;
2087
2137
  }
2088
2138
  }
2089
2139
  if (found) break;
@@ -5008,7 +5058,45 @@ function createTamagui$2(configIn) {
5008
5058
  return themeRuleSets;
5009
5059
  }
5010
5060
  };
5011
- })(), shorthands = configIn.shorthands || {}, getCSS = function() {
5061
+ })(), builtinShorthands = {
5062
+ fd: "flexDirection",
5063
+ fb: "flexBasis",
5064
+ bblr: "borderBottomLeftRadius",
5065
+ bbrr: "borderBottomRightRadius",
5066
+ fwr: "flexWrap",
5067
+ col: "color",
5068
+ ff: "fontFamily",
5069
+ fst: "fontStyle",
5070
+ tr: "transform",
5071
+ tt: "textTransform",
5072
+ td: "textDecorationLine",
5073
+ va: "verticalAlign",
5074
+ ws: "whiteSpace",
5075
+ wb: "wordBreak",
5076
+ ww: "wordWrap",
5077
+ brc: "borderRightColor",
5078
+ brw: "borderRightWidth",
5079
+ bs: "borderStyle",
5080
+ btc: "borderTopColor",
5081
+ btlr: "borderTopLeftRadius",
5082
+ btrr: "borderTopRightRadius",
5083
+ btw: "borderTopWidth",
5084
+ bw: "borderWidth",
5085
+ o: "opacity",
5086
+ cur: "cursor",
5087
+ pe: "pointerEvents",
5088
+ ov: "overflow",
5089
+ pos: "position",
5090
+ dsp: "display",
5091
+ fw: "fontWeight",
5092
+ fs: "fontSize",
5093
+ ls: "letterSpacing",
5094
+ lh: "lineHeight",
5095
+ bxs: "boxSizing",
5096
+ bxsh: "boxShadow",
5097
+ ox: "overflowX",
5098
+ oy: "overflowY"
5099
+ }, userShorthands = configIn.shorthands || {}, shorthands = __spreadValues(__spreadValues({}, builtinShorthands), userShorthands), getCSS = function() {
5012
5100
  return "";
5013
5101
  }, getNewCSS = function(opts) {
5014
5102
  return getCSS(__spreadValues({}, opts));
@@ -5040,6 +5128,7 @@ function createTamagui$2(configIn) {
5040
5128
  tokens,
5041
5129
  // vite made this into a function if it wasn't set
5042
5130
  shorthands,
5131
+ userShorthands,
5043
5132
  inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(function(param) {
5044
5133
  var [k, v] = param;
5045
5134
  return [v, k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamagui",
3
- "version": "1.137.2",
3
+ "version": "1.137.3",
4
4
  "type": "module",
5
5
  "description": "Style and UI for React (web and native) meet an optimizing compiler",
6
6
  "removeSideEffects": true,
@@ -81,62 +81,62 @@
81
81
  }
82
82
  },
83
83
  "dependencies": {
84
- "@tamagui/accordion": "1.137.2",
85
- "@tamagui/adapt": "1.137.2",
86
- "@tamagui/alert-dialog": "1.137.2",
87
- "@tamagui/animate-presence": "1.137.2",
88
- "@tamagui/avatar": "1.137.2",
89
- "@tamagui/button": "1.137.2",
90
- "@tamagui/card": "1.137.2",
91
- "@tamagui/checkbox": "1.137.2",
92
- "@tamagui/compose-refs": "1.137.2",
93
- "@tamagui/constants": "1.137.2",
94
- "@tamagui/core": "1.137.2",
95
- "@tamagui/create-context": "1.137.2",
96
- "@tamagui/dialog": "1.137.2",
97
- "@tamagui/elements": "1.137.2",
98
- "@tamagui/fake-react-native": "1.137.2",
99
- "@tamagui/focusable": "1.137.2",
100
- "@tamagui/font-size": "1.137.2",
101
- "@tamagui/form": "1.137.2",
102
- "@tamagui/get-button-sized": "1.137.2",
103
- "@tamagui/get-font-sized": "1.137.2",
104
- "@tamagui/get-token": "1.137.2",
105
- "@tamagui/group": "1.137.2",
106
- "@tamagui/helpers-tamagui": "1.137.2",
107
- "@tamagui/image": "1.137.2",
108
- "@tamagui/label": "1.137.2",
109
- "@tamagui/linear-gradient": "1.137.2",
110
- "@tamagui/list-item": "1.137.2",
111
- "@tamagui/polyfill-dev": "1.137.2",
112
- "@tamagui/popover": "1.137.2",
113
- "@tamagui/popper": "1.137.2",
114
- "@tamagui/portal": "1.137.2",
115
- "@tamagui/progress": "1.137.2",
116
- "@tamagui/radio-group": "1.137.2",
117
- "@tamagui/react-native-media-driver": "1.137.2",
118
- "@tamagui/scroll-view": "1.137.2",
119
- "@tamagui/select": "1.137.2",
120
- "@tamagui/separator": "1.137.2",
121
- "@tamagui/shapes": "1.137.2",
122
- "@tamagui/sheet": "1.137.2",
123
- "@tamagui/slider": "1.137.2",
124
- "@tamagui/stacks": "1.137.2",
125
- "@tamagui/switch": "1.137.2",
126
- "@tamagui/tabs": "1.137.2",
127
- "@tamagui/text": "1.137.2",
128
- "@tamagui/theme": "1.137.2",
129
- "@tamagui/toggle-group": "1.137.2",
130
- "@tamagui/tooltip": "1.137.2",
131
- "@tamagui/use-controllable-state": "1.137.2",
132
- "@tamagui/use-debounce": "1.137.2",
133
- "@tamagui/use-force-update": "1.137.2",
134
- "@tamagui/use-window-dimensions": "1.137.2",
135
- "@tamagui/visually-hidden": "1.137.2",
136
- "@tamagui/z-index-stack": "1.137.2"
84
+ "@tamagui/accordion": "1.137.3",
85
+ "@tamagui/adapt": "1.137.3",
86
+ "@tamagui/alert-dialog": "1.137.3",
87
+ "@tamagui/animate-presence": "1.137.3",
88
+ "@tamagui/avatar": "1.137.3",
89
+ "@tamagui/button": "1.137.3",
90
+ "@tamagui/card": "1.137.3",
91
+ "@tamagui/checkbox": "1.137.3",
92
+ "@tamagui/compose-refs": "1.137.3",
93
+ "@tamagui/constants": "1.137.3",
94
+ "@tamagui/core": "1.137.3",
95
+ "@tamagui/create-context": "1.137.3",
96
+ "@tamagui/dialog": "1.137.3",
97
+ "@tamagui/elements": "1.137.3",
98
+ "@tamagui/fake-react-native": "1.137.3",
99
+ "@tamagui/focusable": "1.137.3",
100
+ "@tamagui/font-size": "1.137.3",
101
+ "@tamagui/form": "1.137.3",
102
+ "@tamagui/get-button-sized": "1.137.3",
103
+ "@tamagui/get-font-sized": "1.137.3",
104
+ "@tamagui/get-token": "1.137.3",
105
+ "@tamagui/group": "1.137.3",
106
+ "@tamagui/helpers-tamagui": "1.137.3",
107
+ "@tamagui/image": "1.137.3",
108
+ "@tamagui/label": "1.137.3",
109
+ "@tamagui/linear-gradient": "1.137.3",
110
+ "@tamagui/list-item": "1.137.3",
111
+ "@tamagui/polyfill-dev": "1.137.3",
112
+ "@tamagui/popover": "1.137.3",
113
+ "@tamagui/popper": "1.137.3",
114
+ "@tamagui/portal": "1.137.3",
115
+ "@tamagui/progress": "1.137.3",
116
+ "@tamagui/radio-group": "1.137.3",
117
+ "@tamagui/react-native-media-driver": "1.137.3",
118
+ "@tamagui/scroll-view": "1.137.3",
119
+ "@tamagui/select": "1.137.3",
120
+ "@tamagui/separator": "1.137.3",
121
+ "@tamagui/shapes": "1.137.3",
122
+ "@tamagui/sheet": "1.137.3",
123
+ "@tamagui/slider": "1.137.3",
124
+ "@tamagui/stacks": "1.137.3",
125
+ "@tamagui/switch": "1.137.3",
126
+ "@tamagui/tabs": "1.137.3",
127
+ "@tamagui/text": "1.137.3",
128
+ "@tamagui/theme": "1.137.3",
129
+ "@tamagui/toggle-group": "1.137.3",
130
+ "@tamagui/tooltip": "1.137.3",
131
+ "@tamagui/use-controllable-state": "1.137.3",
132
+ "@tamagui/use-debounce": "1.137.3",
133
+ "@tamagui/use-force-update": "1.137.3",
134
+ "@tamagui/use-window-dimensions": "1.137.3",
135
+ "@tamagui/visually-hidden": "1.137.3",
136
+ "@tamagui/z-index-stack": "1.137.3"
137
137
  },
138
138
  "devDependencies": {
139
- "@tamagui/build": "1.137.2",
139
+ "@tamagui/build": "1.137.3",
140
140
  "react": "*",
141
141
  "react-native": "^0.79.2",
142
142
  "react-native-web": "^0.20.0"