downshift 6.1.8 → 6.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1410,6 +1410,7 @@ Thanks goes to these people ([emoji key][emojis]):
1410
1410
  <td align="center"><a href="https://github.com/KaiminHuang"><img src="https://avatars.githubusercontent.com/u/5600404?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaimin Huang</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=KaiminHuang" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3AKaiminHuang" title="Bug reports">🐛</a></td>
1411
1411
  <td align="center"><a href="http://theredcircuit.com"><img src="https://avatars.githubusercontent.com/u/1242456?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Welling</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=davewelling" title="Code">💻</a> <a href="https://github.com/downshift-js/downshift/issues?q=author%3Adavewelling" title="Bug reports">🐛</a></td>
1412
1412
  <td align="center"><a href="https://github.com/chandrasekhar1996"><img src="https://avatars.githubusercontent.com/u/33996892?v=4?s=100" width="100px;" alt=""/><br /><sub><b>chandrasekhar1996</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/issues?q=author%3Achandrasekhar1996" title="Bug reports">🐛</a> <a href="https://github.com/downshift-js/downshift/commits?author=chandrasekhar1996" title="Code">💻</a></td>
1413
+ <td align="center"><a href="https://github.com/drewbrend"><img src="https://avatars.githubusercontent.com/u/5375799?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brendan Drew</b></sub></a><br /><a href="https://github.com/downshift-js/downshift/commits?author=drewbrend" title="Code">💻</a></td>
1413
1414
  </tr>
1414
1415
  </table>
1415
1416
 
@@ -1915,10 +1915,10 @@ function getDefaultValue$1(props, propKey, defaultStateValues) {
1915
1915
  defaultStateValues = dropdownDefaultStateValues;
1916
1916
  }
1917
1917
 
1918
- const defaultPropKey = "default" + capitalizeString(propKey);
1918
+ const defaultValue = props["default" + capitalizeString(propKey)];
1919
1919
 
1920
- if (defaultPropKey in props) {
1921
- return props[defaultPropKey];
1920
+ if (defaultValue !== undefined) {
1921
+ return defaultValue;
1922
1922
  }
1923
1923
 
1924
1924
  return defaultStateValues[propKey];
@@ -1929,14 +1929,16 @@ function getInitialValue$1(props, propKey, defaultStateValues) {
1929
1929
  defaultStateValues = dropdownDefaultStateValues;
1930
1930
  }
1931
1931
 
1932
- if (propKey in props) {
1933
- return props[propKey];
1932
+ const value = props[propKey];
1933
+
1934
+ if (value !== undefined) {
1935
+ return value;
1934
1936
  }
1935
1937
 
1936
- const initialPropKey = "initial" + capitalizeString(propKey);
1938
+ const initialValue = props["initial" + capitalizeString(propKey)];
1937
1939
 
1938
- if (initialPropKey in props) {
1939
- return props[initialPropKey];
1940
+ if (initialValue !== undefined) {
1941
+ return initialValue;
1940
1942
  }
1941
1943
 
1942
1944
  return getDefaultValue$1(props, propKey, defaultStateValues);
@@ -1906,10 +1906,10 @@ function getDefaultValue$1(props, propKey, defaultStateValues) {
1906
1906
  defaultStateValues = dropdownDefaultStateValues;
1907
1907
  }
1908
1908
 
1909
- const defaultPropKey = "default" + capitalizeString(propKey);
1909
+ const defaultValue = props["default" + capitalizeString(propKey)];
1910
1910
 
1911
- if (defaultPropKey in props) {
1912
- return props[defaultPropKey];
1911
+ if (defaultValue !== undefined) {
1912
+ return defaultValue;
1913
1913
  }
1914
1914
 
1915
1915
  return defaultStateValues[propKey];
@@ -1920,14 +1920,16 @@ function getInitialValue$1(props, propKey, defaultStateValues) {
1920
1920
  defaultStateValues = dropdownDefaultStateValues;
1921
1921
  }
1922
1922
 
1923
- if (propKey in props) {
1924
- return props[propKey];
1923
+ const value = props[propKey];
1924
+
1925
+ if (value !== undefined) {
1926
+ return value;
1925
1927
  }
1926
1928
 
1927
- const initialPropKey = "initial" + capitalizeString(propKey);
1929
+ const initialValue = props["initial" + capitalizeString(propKey)];
1928
1930
 
1929
- if (initialPropKey in props) {
1930
- return props[initialPropKey];
1931
+ if (initialValue !== undefined) {
1932
+ return initialValue;
1931
1933
  }
1932
1934
 
1933
1935
  return getDefaultValue$1(props, propKey, defaultStateValues);
@@ -1846,10 +1846,10 @@ function getDefaultValue$1(props, propKey, defaultStateValues) {
1846
1846
  defaultStateValues = dropdownDefaultStateValues;
1847
1847
  }
1848
1848
 
1849
- const defaultPropKey = "default" + capitalizeString(propKey);
1849
+ const defaultValue = props["default" + capitalizeString(propKey)];
1850
1850
 
1851
- if (defaultPropKey in props) {
1852
- return props[defaultPropKey];
1851
+ if (defaultValue !== undefined) {
1852
+ return defaultValue;
1853
1853
  }
1854
1854
 
1855
1855
  return defaultStateValues[propKey];
@@ -1860,14 +1860,16 @@ function getInitialValue$1(props, propKey, defaultStateValues) {
1860
1860
  defaultStateValues = dropdownDefaultStateValues;
1861
1861
  }
1862
1862
 
1863
- if (propKey in props) {
1864
- return props[propKey];
1863
+ const value = props[propKey];
1864
+
1865
+ if (value !== undefined) {
1866
+ return value;
1865
1867
  }
1866
1868
 
1867
- const initialPropKey = "initial" + capitalizeString(propKey);
1869
+ const initialValue = props["initial" + capitalizeString(propKey)];
1868
1870
 
1869
- if (initialPropKey in props) {
1870
- return props[initialPropKey];
1871
+ if (initialValue !== undefined) {
1872
+ return initialValue;
1871
1873
  }
1872
1874
 
1873
1875
  return getDefaultValue$1(props, propKey, defaultStateValues);
@@ -3157,10 +3157,10 @@
3157
3157
  defaultStateValues = dropdownDefaultStateValues;
3158
3158
  }
3159
3159
 
3160
- const defaultPropKey = "default" + capitalizeString(propKey);
3160
+ const defaultValue = props["default" + capitalizeString(propKey)];
3161
3161
 
3162
- if (defaultPropKey in props) {
3163
- return props[defaultPropKey];
3162
+ if (defaultValue !== undefined) {
3163
+ return defaultValue;
3164
3164
  }
3165
3165
 
3166
3166
  return defaultStateValues[propKey];
@@ -3171,14 +3171,16 @@
3171
3171
  defaultStateValues = dropdownDefaultStateValues;
3172
3172
  }
3173
3173
 
3174
- if (propKey in props) {
3175
- return props[propKey];
3174
+ const value = props[propKey];
3175
+
3176
+ if (value !== undefined) {
3177
+ return value;
3176
3178
  }
3177
3179
 
3178
- const initialPropKey = "initial" + capitalizeString(propKey);
3180
+ const initialValue = props["initial" + capitalizeString(propKey)];
3179
3181
 
3180
- if (initialPropKey in props) {
3181
- return props[initialPropKey];
3182
+ if (initialValue !== undefined) {
3183
+ return initialValue;
3182
3184
  }
3183
3185
 
3184
3186
  return getDefaultValue$1(props, propKey, defaultStateValues);