@onehat/ui 0.2.46 → 0.2.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.2.46",
3
+ "version": "0.2.48",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -56,8 +56,9 @@ function NumberElement(props) {
56
56
  onChangeText = (value) => {
57
57
  if (value === '') {
58
58
  value = null; // empty string makes value null
59
+ } else {
60
+ value = parseFloat(value, 10);
59
61
  }
60
- value = parseFloat(value, 10);
61
62
  setLocalValue(value);
62
63
  debouncedSetValueRef.current(value);
63
64
  },
@@ -314,6 +314,9 @@ export default function withFilters(WrappedComponent) {
314
314
  const q = 'q';
315
315
  newFilterFields.push(q);
316
316
  filters.push({ name: q, value: filterQValue, });
317
+ if (Repository.searchAncillary && !Repository.hasBaseParam('searchAncillary')) {
318
+ Repository.setBaseParam('searchAncillary', true);
319
+ }
317
320
  }
318
321
  setFilterFields(newFilterFields);
319
322
 
@@ -5,12 +5,8 @@ import { Icon } from 'native-base';
5
5
 
6
6
  function SvgComponent(props) {
7
7
  return (
8
- <Icon
9
- xmlns="http://www.w3.org/2000/svg"
10
- viewBox="0 0 576 512"
11
- {...props}
12
- >
13
- <Path d="M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32v301.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z" />
8
+ <Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}>
9
+ <Path d="M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32v301.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32z" />
14
10
  </Icon>
15
11
  )
16
12
  }