@onehat/ui 0.3.200 → 0.3.202

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.3.200",
3
+ "version": "0.3.202",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -22,6 +22,7 @@ export default function ValueBox(props) {
22
22
  mr={1}
23
23
  bg="trueGray.200"
24
24
  alignItems="center"
25
+ maxWidth="100%"
25
26
  >
26
27
  <IconButton
27
28
  _icon={{
@@ -40,6 +40,7 @@ export default function withFilters(WrappedComponent) {
40
40
  searchAllText = true,
41
41
  showLabels = true,
42
42
  showFilterSelector = true,
43
+ showClearFiltersButton = true,
43
44
  defaultFilters = [], // likely a list of field names, possibly could be of shape below
44
45
  customFilters = [], // of shape: { title, type, field, value, getRepoFilters(value) }
45
46
  minFilters = 3,
@@ -433,15 +434,15 @@ export default function withFilters(WrappedComponent) {
433
434
  </ScrollView>
434
435
  </Row>
435
436
  <Row flex={hasFilters ? null : 1} alignItems="center" alignSelf="flex-end">
436
- <IconButton
437
- key="clear"
437
+ {showClearFiltersButton && <IconButton
438
+ key="clearFiltersBtn"
438
439
  _icon={{
439
440
  as: Ban,
440
441
  }}
441
442
  ml={1}
442
443
  onPress={onClearFilters}
443
444
  tooltip="Clear all filters"
444
- />
445
+ />}
445
446
  {showFilterSelector && !isUsingCustomFilters && <IconButton
446
447
  key="gear"
447
448
  _icon={{