@dvrd/dvr-controls 1.0.55 → 1.0.56

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": "@dvrd/dvr-controls",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -29,7 +29,7 @@ interface Props {
29
29
  placeholder?: string;
30
30
  }
31
31
 
32
- export type GroupedSelectRef = { open: VoidFunction; close: VoidFunction; }
32
+ export type GroupedSelectRef = { open: VoidFunction; close: VoidFunction; toggle: (forcedValue?: boolean) => void };
33
33
 
34
34
  function findInItems(items: Array<GroupedSelectItem>, value: string | number): GroupedSelectItem | null {
35
35
  for (const item of items) {
@@ -200,7 +200,7 @@ function DVRDGroupedSelect(props: Props, ref: ForwardedRef<GroupedSelectRef>) {
200
200
  }, [open]);
201
201
 
202
202
  useImperativeHandle(ref, () => ({
203
- open: onOpen, close: onClose
203
+ open: onOpen, close: onClose, toggle: onToggleOpen
204
204
  }));
205
205
 
206
206
  return (
@@ -34,7 +34,6 @@
34
34
  background-color: white;
35
35
 
36
36
  .grouped-select-placeholder, .grouped-select-value {
37
- font-family: avenir-light, sans-serif;
38
37
  user-select: none;
39
38
  vertical-align: middle;
40
39
  }
@@ -63,7 +62,7 @@
63
62
  background-color: white;
64
63
  position: absolute;
65
64
  left: 1px;
66
- width: calc(100% - 2px);
65
+ min-width: calc(100% - 2px);
67
66
  transition: visibility .2s ease-in-out, opacity .2s ease-in-out;
68
67
  visibility: hidden;
69
68
  opacity: 0;