@veracity/vui 2.14.3 → 2.14.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAoB,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAO9D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAmFxC;yBAnFe,MAAM;;;;;;;;;;AA2FtB,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAoB,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAO9D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAkFxC;yBAlFe,MAAM;;;;;;;;;;AA0FtB,eAAe,MAAM,CAAA"}
@@ -79,7 +79,7 @@ function Select(props) {
79
79
  const filterOptions = (i) => { var _a, _b; return !showOptionsFilter || !(query === null || query === void 0 ? void 0 : query.length) ? true : (_b = (_a = i === null || i === void 0 ? void 0 : i.text) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes(query); };
80
80
  (0, react_1.useEffect)(() => {
81
81
  setFilteredOptions(options === null || options === void 0 ? void 0 : options.filter(filterOptions));
82
- }, [query]);
82
+ }, [query, options]);
83
83
  return (react_1.default.createElement(context_1.SelectProvider, { value: context },
84
84
  react_1.default.createElement(popover_1.Popover, Object.assign({ matchWidth: true }, rest),
85
85
  react_1.default.createElement(react_1.default.Fragment, null, selectButton !== null && selectButton !== void 0 ? selectButton : react_1.default.createElement(selectButton_1.default, Object.assign({}, selectButtonProps)),
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAoB,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAO9D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAmFxC;yBAnFe,MAAM;;;;;;;;;;AA2FtB,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAoB,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAO9D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAkFxC;yBAlFe,MAAM;;;;;;;;;;AA0FtB,eAAe,MAAM,CAAA"}
@@ -40,7 +40,7 @@ export function Select(props) {
40
40
  const filterOptions = (i) => !showOptionsFilter || !query?.length ? true : i?.text?.toLowerCase()?.includes(query);
41
41
  useEffect(() => {
42
42
  setFilteredOptions(options?.filter(filterOptions));
43
- }, [query]);
43
+ }, [query, options]);
44
44
  return (React.createElement(SelectProvider, { value: context },
45
45
  React.createElement(Popover, { matchWidth: true, ...rest },
46
46
  React.createElement(React.Fragment, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "2.14.3",
3
+ "version": "2.14.4",
4
4
  "description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -56,7 +56,6 @@ export function Select(props: SelectProps) {
56
56
  options,
57
57
  placeholder,
58
58
  readOnly,
59
-
60
59
  size,
61
60
  variant,
62
61
  ...selectProps
@@ -70,7 +69,7 @@ export function Select(props: SelectProps) {
70
69
 
71
70
  useEffect(() => {
72
71
  setFilteredOptions(options?.filter(filterOptions))
73
- }, [query])
72
+ }, [query, options])
74
73
 
75
74
  return (
76
75
  <SelectProvider value={context}>