@webority/ui-react 0.27.1 → 0.27.3
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/dist/types/components/AppFilterBar.d.ts +3 -3
- package/dist/ui-react.js +393 -392
- package/package.json +3 -3
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @param {object} props
|
|
13
13
|
* @param {{ key: string, label: string, type: 'enum'|'multiEnum'|'dateRange'|'text',
|
|
14
|
-
* options?: { value: string, label: string }[] }[]} props.facets `options`
|
|
15
|
-
*
|
|
14
|
+
* options?: { value: string, label: string }[] }[]} props.facets `options` fills an `enum` or `multiEnum`;
|
|
15
|
+
* one with no options draws nothing. `label` names the control for assistive technology and is its placeholder.
|
|
16
16
|
* @param {Record<string, string|string[]|{ from: string, to: string }>} props.value The current filters.
|
|
17
17
|
* @param {(key: string, value: string|string[]|{ from: string, to: string }) => void} props.onChange
|
|
18
18
|
* Called with the facet key and its new value. Clear all calls it once per active facet, with the empty value.
|
|
19
19
|
* @param {string} [props.className]
|
|
20
20
|
*/
|
|
21
|
-
export default function AppFilterBar({ facets, value, onChange, className, ...rest }: {
|
|
21
|
+
export default function AppFilterBar({ facets: allFacets, value, onChange, className, ...rest }: {
|
|
22
22
|
facets: {
|
|
23
23
|
key: string;
|
|
24
24
|
label: string;
|