@ceed/ads 1.7.7 → 1.8.0-next.1
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/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +14 -0
- package/dist/components/FilterMenu/components/Autocomplete.d.ts +11 -0
- package/dist/components/FilterMenu/components/CheckboxGroup.d.ts +11 -0
- package/dist/components/FilterMenu/components/CurrencyInput.d.ts +11 -0
- package/dist/components/FilterMenu/components/CurrencyRange.d.ts +11 -0
- package/dist/components/FilterMenu/components/DateRange.d.ts +11 -0
- package/dist/components/FilterMenu/components/PercentageInput.d.ts +7 -0
- package/dist/components/FilterMenu/components/PercentageRange.d.ts +11 -0
- package/dist/components/FilterMenu/components/RadioGroup.d.ts +11 -0
- package/dist/components/FilterMenu/index.d.ts +1 -0
- package/dist/components/FilterMenu/types.d.ts +46 -0
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +5505 -4268
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5418 -4183
- package/framer/index.js +51 -51
- package/package.json +3 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterItem } from "./types";
|
|
3
|
+
interface FilterMenuProps {
|
|
4
|
+
filters?: FilterItem[];
|
|
5
|
+
values?: Record<string, any>;
|
|
6
|
+
defaultValues?: Record<string, any>;
|
|
7
|
+
onChange?: (values: Record<string, any>) => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function FilterMenu(props: FilterMenuProps): React.JSX.Element;
|
|
11
|
+
declare namespace FilterMenu {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export { FilterMenu };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FilterAutocompleteItem } from "../types";
|
|
3
|
+
interface AutocompleteProps extends FilterAutocompleteItem {
|
|
4
|
+
onChange?: (value?: string | number) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function Autocomplete(props: AutocompleteProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace Autocomplete {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { Autocomplete };
|
|
11
|
+
export default Autocomplete;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterCheckboxGroupItem } from "../types";
|
|
3
|
+
interface CheckboxGroupProps extends FilterCheckboxGroupItem {
|
|
4
|
+
onChange?: (value: (string | number)[]) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function CheckboxGroup(props: CheckboxGroupProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace CheckboxGroup {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { CheckboxGroup };
|
|
11
|
+
export default CheckboxGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterCurrencyInputItem } from "../types";
|
|
3
|
+
interface CurrencyInputProps extends FilterCurrencyInputItem {
|
|
4
|
+
onChange?: (value: number | undefined) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function CurrencyInput(props: CurrencyInputProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace CurrencyInput {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { CurrencyInput };
|
|
11
|
+
export default CurrencyInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterCurrencyRangeItem } from "../types";
|
|
3
|
+
interface CurrencyRangeProps extends FilterCurrencyRangeItem {
|
|
4
|
+
onChange?: (value: [number, number] | null) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function CurrencyRange(props: CurrencyRangeProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace CurrencyRange {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { CurrencyRange };
|
|
11
|
+
export default CurrencyRange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterDateRangeItem } from "../types";
|
|
3
|
+
interface DateRangeProps extends FilterDateRangeItem {
|
|
4
|
+
onChange?: (value: [string, string] | null) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function DateRange(props: DateRangeProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace DateRange {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { DateRange };
|
|
11
|
+
export default DateRange;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FilterPercentageInputItem } from "../types";
|
|
3
|
+
export interface PercentageInputProps extends FilterPercentageInputItem {
|
|
4
|
+
onChange?: (value?: number) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const PercentageInput: React.FC<PercentageInputProps>;
|
|
7
|
+
export default PercentageInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterPercentageRangeItem } from "../types";
|
|
3
|
+
interface PercentageRangeProps extends FilterPercentageRangeItem {
|
|
4
|
+
onChange?: (value: [number, number] | null) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function PercentageRange(props: PercentageRangeProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace PercentageRange {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { PercentageRange };
|
|
11
|
+
export default PercentageRange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterRadioGroupItem } from "../types";
|
|
3
|
+
interface RadioGroupProps extends FilterRadioGroupItem {
|
|
4
|
+
onChange?: (value: string | number) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function RadioGroup(props: RadioGroupProps): React.JSX.Element | null;
|
|
7
|
+
declare namespace RadioGroup {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export { RadioGroup };
|
|
11
|
+
export default RadioGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FilterMenu";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { DateRangePickerProps } from "../DateRangePicker";
|
|
2
|
+
import type { CurrencyInputProps } from "../CurrencyInput";
|
|
3
|
+
import type { PercentageInputProps } from "../PercentageInput";
|
|
4
|
+
import type { AutocompleteProps } from "../Autocomplete";
|
|
5
|
+
type DateTime = string;
|
|
6
|
+
export interface FilterBaseItem<V = never> {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
value?: V;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
onChange?: (value: V) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface FilterCheckboxGroupItem extends FilterBaseItem<(string | number)[]> {
|
|
14
|
+
type: "checkbox-group";
|
|
15
|
+
options: {
|
|
16
|
+
label: string;
|
|
17
|
+
value: string | number;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export interface FilterRadioGroupItem extends FilterBaseItem<string | number> {
|
|
21
|
+
type: "radio-group";
|
|
22
|
+
options: {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string | number;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
export interface FilterDateRangeItem extends FilterBaseItem<[DateTime, DateTime]>, Pick<DateRangePickerProps, "minDate" | "maxDate" | "disableFuture" | "disablePast" | "format" | "inputReadOnly" | "hideClearButton"> {
|
|
28
|
+
type: "date-range";
|
|
29
|
+
}
|
|
30
|
+
export interface FilterCurrencyInputItem extends FilterBaseItem<number>, Pick<CurrencyInputProps, "max" | "placeholder" | "useMinorUnit" | "currency"> {
|
|
31
|
+
type: "currency-input";
|
|
32
|
+
}
|
|
33
|
+
export interface FilterCurrencyRangeItem extends FilterBaseItem<[number, number]>, Pick<CurrencyInputProps, "max" | "placeholder" | "useMinorUnit" | "currency"> {
|
|
34
|
+
type: "currency-range";
|
|
35
|
+
}
|
|
36
|
+
export interface FilterPercentageInputItem extends FilterBaseItem<number>, Pick<PercentageInputProps, "useMinorUnit" | "maxDecimalScale" | "min" | "max" | "placeholder"> {
|
|
37
|
+
type: "percentage-input";
|
|
38
|
+
}
|
|
39
|
+
export interface FilterPercentageRangeItem extends FilterBaseItem<[number, number]>, Pick<PercentageInputProps, "useMinorUnit" | "maxDecimalScale" | "min" | "max"> {
|
|
40
|
+
type: "percentage-range";
|
|
41
|
+
}
|
|
42
|
+
export interface FilterAutocompleteItem extends FilterBaseItem<string | number>, Pick<AutocompleteProps<any, boolean>, "options" | "multiple"> {
|
|
43
|
+
type: "autocomplete";
|
|
44
|
+
}
|
|
45
|
+
export type FilterItem = FilterCheckboxGroupItem | FilterRadioGroupItem | FilterDateRangeItem | FilterCurrencyInputItem | FilterCurrencyRangeItem | FilterPercentageInputItem | FilterPercentageRangeItem | FilterAutocompleteItem;
|
|
46
|
+
export {};
|
|
@@ -22,6 +22,7 @@ export { DialogFrame } from "./DialogFrame";
|
|
|
22
22
|
export { Divider } from "./Divider";
|
|
23
23
|
export { InsetDrawer } from "./InsetDrawer";
|
|
24
24
|
export { Dropdown } from "./Dropdown";
|
|
25
|
+
export { FilterMenu } from "./FilterMenu";
|
|
25
26
|
export { Uploader } from "./Uploader";
|
|
26
27
|
export { FormControl } from "./FormControl";
|
|
27
28
|
export { FormHelperText } from "./FormHelperText";
|