@vritti/quantum-ui 0.2.9 → 0.2.10
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/Alert.js +7 -2
- package/dist/Alert.js.map +1 -1
- package/dist/Avatar.js +5 -5
- package/dist/Badge.js +2 -28
- package/dist/Badge.js.map +1 -1
- package/dist/Badge2.js +30 -0
- package/dist/Badge2.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/Button2.js +35 -16
- package/dist/Button2.js.map +1 -1
- package/dist/Card.js +1 -1
- package/dist/Chart.js +1 -1
- package/dist/Checkbox.js +2 -289
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox2.js +292 -0
- package/dist/Checkbox2.js.map +1 -0
- package/dist/Combination.js +5 -5
- package/dist/DatePicker.js +3 -325
- package/dist/DatePicker.js.map +1 -1
- package/dist/DropdownMenu.js +77 -7
- package/dist/DropdownMenu.js.map +1 -1
- package/dist/Form.js +23 -6
- package/dist/Form.js.map +1 -1
- package/dist/Label.js +2 -2
- package/dist/OTPField.js +1 -1
- package/dist/PasswordField.js +1 -1
- package/dist/PhoneField.js +6 -6
- package/dist/PhoneField.js.map +1 -1
- package/dist/Progress.js +3 -3
- package/dist/Skeleton.js +1 -1
- package/dist/Sonner.js +4 -1
- package/dist/Sonner.js.map +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Switch.js +4 -4
- package/dist/TextArea.js +1 -1
- package/dist/TextField.js +4 -3
- package/dist/TextField.js.map +1 -1
- package/dist/ThemeContext.js +2 -8
- package/dist/ThemeContext.js.map +1 -1
- package/dist/Toggle.js +3 -3
- package/dist/Typography.js +1 -1
- package/dist/assets/quantum-ui.css +31 -31
- package/dist/{chevron-down.js → chevron-left.js} +4 -4
- package/dist/chevron-left.js.map +1 -0
- package/dist/components/Badge.js +2 -1
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/DataTable.js +2 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/Select.js +1379 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/field.js +2 -2
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index10.js +10 -99
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +35 -73
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.js +3 -3
- package/dist/index2.js +65 -58
- package/dist/index2.js.map +1 -1
- package/dist/index3.js +60 -8
- package/dist/index3.js.map +1 -1
- package/dist/index4.js +80 -106
- package/dist/index4.js.map +1 -1
- package/dist/index5.js +42 -37
- package/dist/index5.js.map +1 -1
- package/dist/index6.js +9 -4
- package/dist/index6.js.map +1 -1
- package/dist/index7.js +125 -10
- package/dist/index7.js.map +1 -1
- package/dist/index8.js +37 -42
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +4 -37
- package/dist/index9.js.map +1 -1
- package/dist/lib/components/Alert/Alert.d.ts +2 -1
- package/dist/lib/components/Alert/Alert.d.ts.map +1 -1
- package/dist/lib/components/DataTable/DataTable.d.ts +15 -0
- package/dist/lib/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts +12 -0
- package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTableEmpty.d.ts +13 -0
- package/dist/lib/components/DataTable/components/DataTableEmpty.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTablePagination.d.ts +13 -0
- package/dist/lib/components/DataTable/components/DataTablePagination.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTableToolbar.d.ts +15 -0
- package/dist/lib/components/DataTable/components/DataTableToolbar.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts +11 -0
- package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts.map +1 -0
- package/dist/lib/components/DataTable/hooks/useDataTable.d.ts +3 -0
- package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -0
- package/dist/lib/components/DataTable/index.d.ts +10 -0
- package/dist/lib/components/DataTable/index.d.ts.map +1 -0
- package/dist/lib/components/DataTable/types.d.ts +67 -0
- package/dist/lib/components/DataTable/types.d.ts.map +1 -0
- package/dist/lib/components/DataTable/utils.d.ts +3 -0
- package/dist/lib/components/DataTable/utils.d.ts.map +1 -0
- package/dist/lib/components/Form/Form.d.ts +2 -1
- package/dist/lib/components/Form/Form.d.ts.map +1 -1
- package/dist/lib/components/PhoneField/PhoneField.d.ts +1 -0
- package/dist/lib/components/PhoneField/PhoneField.d.ts.map +1 -1
- package/dist/lib/components/Select/Select.d.ts +23 -0
- package/dist/lib/components/Select/Select.d.ts.map +1 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts +25 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts +21 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +25 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts +21 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts.map +1 -0
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +32 -0
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +23 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -0
- package/dist/lib/components/Select/hooks/useSingleSelect.d.ts +30 -0
- package/dist/lib/components/Select/hooks/useSingleSelect.d.ts.map +1 -0
- package/dist/lib/components/Select/index.d.ts +38 -0
- package/dist/lib/components/Select/index.d.ts.map +1 -0
- package/dist/lib/components/Select/types.d.ts +31 -0
- package/dist/lib/components/Select/types.d.ts.map +1 -0
- package/dist/lib/components/TextField/TextField.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/context/ThemeContext.d.ts +1 -1
- package/dist/lib/context/ThemeContext.d.ts.map +1 -1
- package/dist/lib/context/index.d.ts +1 -1
- package/dist/lib/context/index.d.ts.map +1 -1
- package/dist/lib/hooks/index.d.ts +2 -1
- package/dist/lib/hooks/index.d.ts.map +1 -1
- package/dist/lib/hooks/useSSE.d.ts +21 -0
- package/dist/lib/hooks/useSSE.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/utils/axios.d.ts.map +1 -1
- package/dist/popover.js +329 -0
- package/dist/popover.js.map +1 -0
- package/dist/separator2.js +2 -2
- package/dist/shadcn/shadcnAlert/alert.d.ts.map +1 -1
- package/dist/shadcn/shadcnAlert/index.d.ts +1 -1
- package/dist/shadcn/shadcnAlert/index.d.ts.map +1 -1
- package/dist/shadcn/shadcnBadge/Badge.d.ts +1 -1
- package/dist/shadcn/shadcnButton/Button.d.ts +2 -2
- package/dist/shadcn/shadcnButton/Button.d.ts.map +1 -1
- package/dist/shadcn/shadcnInputOTP/InputOTP.d.ts +2 -2
- package/dist/shadcn/shadcnMultiSelect/index.d.ts +3 -0
- package/dist/shadcn/shadcnMultiSelect/index.d.ts.map +1 -0
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts +61 -0
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -0
- package/dist/shadcn/shadcnSingleSelect/index.d.ts +3 -0
- package/dist/shadcn/shadcnSingleSelect/index.d.ts.map +1 -0
- package/dist/shadcn/shadcnSingleSelect/single-select.d.ts +60 -0
- package/dist/shadcn/shadcnSingleSelect/single-select.d.ts.map +1 -0
- package/dist/shadcn/shadcnSonner/sonner.d.ts +1 -1
- package/dist/shadcn/shadcnSonner/sonner.d.ts.map +1 -1
- package/dist/useSSE.js +82 -0
- package/dist/useSSE.js.map +1 -0
- package/dist/useTheme.js.map +1 -1
- package/dist/utils/axios.js +4167 -2
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils.js +3748 -2970
- package/dist/utils.js.map +1 -1
- package/dist/utils2.js +3042 -0
- package/dist/utils2.js.map +1 -0
- package/dist/x.js +18 -0
- package/dist/x.js.map +1 -0
- package/package.json +11 -5
- package/dist/SelectField.js +0 -1351
- package/dist/SelectField.js.map +0 -1
- package/dist/axios.js +0 -4228
- package/dist/axios.js.map +0 -1
- package/dist/chevron-down.js.map +0 -1
- package/dist/components/SelectField.js +0 -2
- package/dist/components/SelectField.js.map +0 -1
- package/dist/lib/components/SelectField/SelectField.d.ts +0 -24
- package/dist/lib/components/SelectField/SelectField.d.ts.map +0 -1
- package/dist/lib/components/SelectField/index.d.ts +0 -3
- package/dist/lib/components/SelectField/index.d.ts.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SelectGroup, SelectOption, SelectValue } from '../types';
|
|
2
|
+
interface UseMultiSelectStateProps {
|
|
3
|
+
options: SelectOption[];
|
|
4
|
+
groups?: SelectGroup[];
|
|
5
|
+
value?: SelectValue[];
|
|
6
|
+
onChange?: (values: SelectValue[]) => void;
|
|
7
|
+
defaultValue?: SelectValue[];
|
|
8
|
+
remoteSearch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useMultiSelect({ options, groups, value: controlledValue, onChange, defaultValue, remoteSearch, }: UseMultiSelectStateProps): {
|
|
11
|
+
selectedValues: SelectValue[];
|
|
12
|
+
selectedSet: Set<SelectValue>;
|
|
13
|
+
selectedOptions: SelectOption[];
|
|
14
|
+
open: boolean;
|
|
15
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
16
|
+
searchQuery: string;
|
|
17
|
+
setSearchQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
18
|
+
listboxId: string;
|
|
19
|
+
filteredOptions: SelectOption[];
|
|
20
|
+
grouped: {
|
|
21
|
+
ungrouped: SelectOption[];
|
|
22
|
+
entries: {
|
|
23
|
+
name: string;
|
|
24
|
+
options: SelectOption[];
|
|
25
|
+
}[];
|
|
26
|
+
} | null;
|
|
27
|
+
toggleOption: (optionValue: SelectValue) => void;
|
|
28
|
+
selectAll: () => void;
|
|
29
|
+
clearAll: () => void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=useMultiSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMultiSelect.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Select/hooks/useMultiSelect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,wBAAwB;IAChC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAGD,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,KAAK,EAAE,eAAe,EACtB,QAAQ,EACR,YAAY,EACZ,YAAY,GACb,EAAE,wBAAwB;;;;;;;;;;;;;kBAiGM,MAAM;qBAAW,YAAY,EAAE;;;gCAzD9C,WAAW;;;EAkF5B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SelectFieldKeys, SelectGroup, SelectOption, SelectValue } from '../types';
|
|
2
|
+
export interface UseSelectProps {
|
|
3
|
+
options?: SelectOption[];
|
|
4
|
+
groups?: SelectGroup[];
|
|
5
|
+
optionsEndpoint?: string;
|
|
6
|
+
searchDebounceMs?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
fieldKeys?: SelectFieldKeys;
|
|
9
|
+
params?: Record<string, string | number | boolean>;
|
|
10
|
+
selectedValues?: SelectValue[];
|
|
11
|
+
}
|
|
12
|
+
export interface UseSelectReturn {
|
|
13
|
+
options: SelectOption[];
|
|
14
|
+
groups: SelectGroup[];
|
|
15
|
+
loading: boolean;
|
|
16
|
+
loadingMore: boolean;
|
|
17
|
+
hasMore: boolean;
|
|
18
|
+
searchQuery: string;
|
|
19
|
+
setSearchQuery: (q: string) => void;
|
|
20
|
+
sentinelRef: (node?: Element | null) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function useSelect({ options: staticOptions, groups: staticGroups, optionsEndpoint, searchDebounceMs, limit, fieldKeys, params, selectedValues, }: UseSelectProps): UseSelectReturn;
|
|
23
|
+
//# sourceMappingURL=useSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelect.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Select/hooks/useSelect.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAyB,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/G,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,WAAW,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C;AAWD,wBAAgB,SAAS,CAAC,EACxB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,YAAY,EACpB,eAAe,EACf,gBAAsB,EACtB,KAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,GACf,EAAE,cAAc,GAAG,eAAe,CAwHlC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SelectGroup, SelectOption, SelectValue } from '../types';
|
|
2
|
+
interface UseSingleSelectStateProps {
|
|
3
|
+
options: SelectOption[];
|
|
4
|
+
groups?: SelectGroup[];
|
|
5
|
+
value?: SelectValue;
|
|
6
|
+
onChange?: (value: SelectValue) => void;
|
|
7
|
+
defaultValue?: SelectValue;
|
|
8
|
+
remoteSearch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useSingleSelect({ options, groups, value: controlledValue, onChange, defaultValue, remoteSearch, }: UseSingleSelectStateProps): {
|
|
11
|
+
selectedValue: SelectValue;
|
|
12
|
+
selectedOption: SelectOption | undefined;
|
|
13
|
+
open: boolean;
|
|
14
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
15
|
+
searchQuery: string;
|
|
16
|
+
setSearchQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
17
|
+
listboxId: string;
|
|
18
|
+
filteredOptions: SelectOption[];
|
|
19
|
+
grouped: {
|
|
20
|
+
ungrouped: SelectOption[];
|
|
21
|
+
entries: {
|
|
22
|
+
name: string;
|
|
23
|
+
options: SelectOption[];
|
|
24
|
+
}[];
|
|
25
|
+
} | null;
|
|
26
|
+
selectOption: (optionValue: SelectValue) => void;
|
|
27
|
+
clearSelection: () => void;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useSingleSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSingleSelect.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Select/hooks/useSingleSelect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,yBAAyB;IACjC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAID,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,MAAM,EACN,KAAK,EAAE,eAAe,EACtB,QAAQ,EACR,YAAY,EACZ,YAAY,GACb,EAAE,yBAAyB;;;;;;;;;;;;kBA8EK,MAAM;qBAAW,YAAY,EAAE;;;gCA3C9C,WAAW;;EAkE5B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MultiSelectActions as ShadcnMultiSelectActions, MultiSelectContent as ShadcnMultiSelectContent, MultiSelectEmpty as ShadcnMultiSelectEmpty, MultiSelectGroup as ShadcnMultiSelectGroup, MultiSelectGroupLabel as ShadcnMultiSelectGroupLabel, MultiSelectList as ShadcnMultiSelectList, MultiSelectRoot as ShadcnMultiSelectRoot, MultiSelectSearch as ShadcnMultiSelectSearch } from '../../../shadcn/shadcnMultiSelect';
|
|
2
|
+
import { SingleSelectClear as ShadcnSingleSelectClear, SingleSelectContent as ShadcnSingleSelectContent, SingleSelectEmpty as ShadcnSingleSelectEmpty, SingleSelectGroup as ShadcnSingleSelectGroup, SingleSelectGroupLabel as ShadcnSingleSelectGroupLabel, SingleSelectList as ShadcnSingleSelectList, SingleSelectRoot as ShadcnSingleSelectRoot, SingleSelectSearch as ShadcnSingleSelectSearch } from '../../../shadcn/shadcnSingleSelect';
|
|
3
|
+
export type { MultiSelectProps } from './components/MultiSelect/MultiSelect';
|
|
4
|
+
export { MultiSelect } from './components/MultiSelect/MultiSelect';
|
|
5
|
+
export type { MultiSelectFilterProps } from './components/MultiSelect/MultiSelectFilter';
|
|
6
|
+
export { MultiSelectFilter } from './components/MultiSelect/MultiSelectFilter';
|
|
7
|
+
export type { SingleSelectProps } from './components/SingleSelect/SingleSelect';
|
|
8
|
+
export { SingleSelect } from './components/SingleSelect/SingleSelect';
|
|
9
|
+
export type { SingleSelectFilterProps } from './components/SingleSelect/SingleSelectFilter';
|
|
10
|
+
export { SingleSelectFilter } from './components/SingleSelect/SingleSelectFilter';
|
|
11
|
+
export type { UseSelectProps, UseSelectReturn } from './hooks/useSelect';
|
|
12
|
+
export { useSelect } from './hooks/useSelect';
|
|
13
|
+
export type { SelectProps } from './Select';
|
|
14
|
+
export { Select } from './Select';
|
|
15
|
+
export type { AsyncSelectState, SelectFieldKeys, SelectGroup, SelectOption, SelectOptionsResponse, SelectValue, SelectVariant, } from './types';
|
|
16
|
+
export declare const MultiSelectRoot: typeof ShadcnMultiSelectRoot;
|
|
17
|
+
export declare const MultiSelectTrigger: import('react').ForwardRefExoticComponent<Omit<import('.').MultiSelectTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
export declare const MultiSelectContent: typeof ShadcnMultiSelectContent;
|
|
19
|
+
export declare const MultiSelectSearch: typeof ShadcnMultiSelectSearch;
|
|
20
|
+
export declare const MultiSelectActions: typeof ShadcnMultiSelectActions;
|
|
21
|
+
export declare const MultiSelectGroup: typeof ShadcnMultiSelectGroup;
|
|
22
|
+
export declare const MultiSelectGroupLabel: typeof ShadcnMultiSelectGroupLabel;
|
|
23
|
+
export declare const MultiSelectList: typeof ShadcnMultiSelectList;
|
|
24
|
+
export declare const MultiSelectRow: import('react').NamedExoticComponent<import('.').MultiSelectRowProps>;
|
|
25
|
+
export declare const MultiSelectEmpty: typeof ShadcnMultiSelectEmpty;
|
|
26
|
+
export type { MultiSelectActionsProps, MultiSelectContentProps, MultiSelectEmptyProps, MultiSelectGroupLabelProps, MultiSelectGroupProps, MultiSelectListProps, MultiSelectRootProps, MultiSelectRowProps, MultiSelectSearchProps, MultiSelectTriggerProps, } from '../../../shadcn/shadcnMultiSelect';
|
|
27
|
+
export declare const SingleSelectRoot: typeof ShadcnSingleSelectRoot;
|
|
28
|
+
export declare const SingleSelectTrigger: import('react').ForwardRefExoticComponent<Omit<import('.').SingleSelectTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
export declare const SingleSelectContent: typeof ShadcnSingleSelectContent;
|
|
30
|
+
export declare const SingleSelectSearch: typeof ShadcnSingleSelectSearch;
|
|
31
|
+
export declare const SingleSelectClear: typeof ShadcnSingleSelectClear;
|
|
32
|
+
export declare const SingleSelectGroup: typeof ShadcnSingleSelectGroup;
|
|
33
|
+
export declare const SingleSelectGroupLabel: typeof ShadcnSingleSelectGroupLabel;
|
|
34
|
+
export declare const SingleSelectList: typeof ShadcnSingleSelectList;
|
|
35
|
+
export declare const SingleSelectRow: import('react').NamedExoticComponent<import('.').SingleSelectRowProps>;
|
|
36
|
+
export declare const SingleSelectEmpty: typeof ShadcnSingleSelectEmpty;
|
|
37
|
+
export type { SingleSelectClearProps, SingleSelectContentProps, SingleSelectEmptyProps, SingleSelectGroupLabelProps, SingleSelectGroupProps, SingleSelectListProps, SingleSelectRootProps, SingleSelectRowProps, SingleSelectSearchProps, SingleSelectTriggerProps, } from '../../../shadcn/shadcnSingleSelect';
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0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A2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type SelectValue = string | number | boolean;
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: SelectValue;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
groupId?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectGroup {
|
|
9
|
+
id: string | number;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectOptionsResponse {
|
|
13
|
+
options: SelectOption[];
|
|
14
|
+
groups?: SelectGroup[];
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface AsyncSelectState {
|
|
18
|
+
loading: boolean;
|
|
19
|
+
loadingMore: boolean;
|
|
20
|
+
hasMore: boolean;
|
|
21
|
+
searchQuery: string;
|
|
22
|
+
setSearchQuery: (q: string) => void;
|
|
23
|
+
sentinelRef: (node?: Element | null) => void;
|
|
24
|
+
}
|
|
25
|
+
export type SelectVariant = 'default' | 'filter';
|
|
26
|
+
export interface SelectFieldKeys {
|
|
27
|
+
valueKey?: string;
|
|
28
|
+
labelKey?: string;
|
|
29
|
+
groupIdKey?: string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MA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":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../lib/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAInE,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAK9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAKjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAGD,eAAO,MAAM,SAAS,sGA0BrB,CAAC"}
|
|
@@ -5,6 +5,7 @@ export * from './Button';
|
|
|
5
5
|
export * from './Card';
|
|
6
6
|
export * from './Chart';
|
|
7
7
|
export * from './Checkbox';
|
|
8
|
+
export * from './DataTable';
|
|
8
9
|
export * from './DatePicker';
|
|
9
10
|
export * from './DropdownMenu';
|
|
10
11
|
export * from './Field';
|
|
@@ -13,7 +14,7 @@ export * from './OTPField';
|
|
|
13
14
|
export * from './PasswordField';
|
|
14
15
|
export * from './PhoneField';
|
|
15
16
|
export * from './Progress';
|
|
16
|
-
export * from './
|
|
17
|
+
export * from './Select';
|
|
17
18
|
export * from './Separator';
|
|
18
19
|
export * from './Skeleton';
|
|
19
20
|
export * from './Sonner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -11,7 +11,7 @@ export interface ThemeProviderProps {
|
|
|
11
11
|
storageKey?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const ThemeContext: import('react').Context<ThemeContextValue | null>;
|
|
14
|
-
export declare function ThemeProvider({ children, defaultTheme, storageKey
|
|
14
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare namespace ThemeProvider {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../lib/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../lib/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAmD,MAAM,OAAO,CAAC;AAKvG,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAKzC,MAAM,WAAW,iBAAiB;IAEhC,KAAK,EAAE,SAAS,CAAC;IAEjB,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC;AAKD,MAAM,WAAW,kBAAkB;IAEjC,QAAQ,EAAE,SAAS,CAAC;IAEpB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAQD,eAAO,MAAM,YAAY,mDAAgD,CAAC;AAkE1E,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,UAA8B,EAAE,EAAE,kBAAkB,2CAgC3G;yBAhCe,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ThemeContext,
|
|
1
|
+
export { ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, } from './ThemeContext';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface UseSSEOptions<EventMap extends Record<string, unknown> = Record<string, unknown>> {
|
|
2
|
+
path: string;
|
|
3
|
+
events: (keyof EventMap & string)[];
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
autoReconnect?: boolean;
|
|
6
|
+
withCredentials?: boolean;
|
|
7
|
+
onError?: (event: Event) => void;
|
|
8
|
+
onOpen?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface UseSSEReturn<EventMap extends Record<string, unknown>> {
|
|
11
|
+
eventType: keyof EventMap | null;
|
|
12
|
+
data: EventMap[keyof EventMap] | null;
|
|
13
|
+
eventTypes: {
|
|
14
|
+
[K in keyof EventMap as Uppercase<K & string>]: K;
|
|
15
|
+
};
|
|
16
|
+
isConnected: boolean;
|
|
17
|
+
error: string | null;
|
|
18
|
+
disconnect: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function useSSE<EventMap extends Record<string, unknown> = Record<string, unknown>>(options: UseSSEOptions<EventMap>): UseSSEReturn<EventMap>;
|
|
21
|
+
//# sourceMappingURL=useSSE.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSSE.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useSSE.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE/F,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;IAEpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAOD,MAAM,WAAW,YAAY,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEpE,SAAS,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC;IAEjC,IAAI,EAAE,QAAQ,CAAC,MAAM,QAAQ,CAAC,GAAG,IAAI,CAAC;IAEtC,UAAU,EAAE;SAAG,CAAC,IAAI,MAAM,QAAQ,IAAI,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;KAAE,CAAC;IAElE,WAAW,EAAE,OAAO,CAAC;IAErB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AA6BD,wBAAgB,MAAM,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvF,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,QAAQ,CAAC,CAmGxB"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { cn } from '../shadcn/utils';
|
|
2
|
-
export * from './hooks';
|
|
3
|
-
export * from './context';
|
|
4
2
|
export * from './components';
|
|
5
3
|
export { type AuthConfig, type AxiosConfig, type CsrfConfig, configureQuantumUI, defineConfig, getConfig, type QuantumUIConfig, resetConfig, } from './config';
|
|
4
|
+
export * from './context';
|
|
5
|
+
export * from './hooks';
|
|
6
6
|
export { axios, cancelTokenRefresh, clearCsrfToken, clearToken, getCsrfToken, getToken, recoverToken, scheduleTokenRefresh, setCsrfToken, setToken, } from './utils/axios';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,KAAK,eAAe,EACpB,WAAW,GACZ,MAAM,UAAU,CAAC;AAElB,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAGxB,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,QAAQ,GACT,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../../lib/utils/axios.ts"],"names":[],"mappings":"AAAA,OAAc,EAAmB,KAAK,aAAa,EAAmC,MAAM,OAAO,CAAC;AAKpG,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAiB,kBAAkB;QAEjC,MAAM,CAAC,EAA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5D;AAED,wBAAgB,kBAAkB,IAAI,IAAI,CAKzC;AAwED,eAAO,MAAM,KAAK,EAAE,aAAqC,CAAC;AAuI1D,eAAe,KAAK,CAAC"}
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { c as createLucideIcon } from './createLucideIcon.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { u as useControllableState, P as Primitive, c as composeEventHandlers, a as createSlot } from './index13.js';
|
|
5
|
+
import { u as useComposedRefs } from './index8.js';
|
|
6
|
+
import { c as createContextScope } from './index12.js';
|
|
7
|
+
import { c as createPopperScope, R as Root2$1, u as useId, A as Anchor, P as Portal$1, h as hideOthers, a as ReactRemoveScroll, b as useFocusGuards, F as FocusScope, D as DismissableLayer, C as Content, d as Arrow } from './Combination.js';
|
|
8
|
+
import { P as Presence } from './index7.js';
|
|
9
|
+
import { c as cn } from './utils2.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @license lucide-react v0.562.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
20
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
21
|
+
|
|
22
|
+
var POPOVER_NAME = "Popover";
|
|
23
|
+
var [createPopoverContext] = createContextScope(POPOVER_NAME, [
|
|
24
|
+
createPopperScope
|
|
25
|
+
]);
|
|
26
|
+
var usePopperScope = createPopperScope();
|
|
27
|
+
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
|
28
|
+
var Popover$1 = (props) => {
|
|
29
|
+
const {
|
|
30
|
+
__scopePopover,
|
|
31
|
+
children,
|
|
32
|
+
open: openProp,
|
|
33
|
+
defaultOpen,
|
|
34
|
+
onOpenChange,
|
|
35
|
+
modal = false
|
|
36
|
+
} = props;
|
|
37
|
+
const popperScope = usePopperScope(__scopePopover);
|
|
38
|
+
const triggerRef = React.useRef(null);
|
|
39
|
+
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
40
|
+
const [open, setOpen] = useControllableState({
|
|
41
|
+
prop: openProp,
|
|
42
|
+
defaultProp: defaultOpen ?? false,
|
|
43
|
+
onChange: onOpenChange,
|
|
44
|
+
caller: POPOVER_NAME
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsx(Root2$1, { ...popperScope, children: /* @__PURE__ */ jsx(
|
|
47
|
+
PopoverProvider,
|
|
48
|
+
{
|
|
49
|
+
scope: __scopePopover,
|
|
50
|
+
contentId: useId(),
|
|
51
|
+
triggerRef,
|
|
52
|
+
open,
|
|
53
|
+
onOpenChange: setOpen,
|
|
54
|
+
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
55
|
+
hasCustomAnchor,
|
|
56
|
+
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
|
|
57
|
+
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
|
|
58
|
+
modal,
|
|
59
|
+
children
|
|
60
|
+
}
|
|
61
|
+
) });
|
|
62
|
+
};
|
|
63
|
+
Popover$1.displayName = POPOVER_NAME;
|
|
64
|
+
var ANCHOR_NAME = "PopoverAnchor";
|
|
65
|
+
var PopoverAnchor = React.forwardRef(
|
|
66
|
+
(props, forwardedRef) => {
|
|
67
|
+
const { __scopePopover, ...anchorProps } = props;
|
|
68
|
+
const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
|
|
69
|
+
const popperScope = usePopperScope(__scopePopover);
|
|
70
|
+
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
|
71
|
+
React.useEffect(() => {
|
|
72
|
+
onCustomAnchorAdd();
|
|
73
|
+
return () => onCustomAnchorRemove();
|
|
74
|
+
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
75
|
+
return /* @__PURE__ */ jsx(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
79
|
+
var TRIGGER_NAME = "PopoverTrigger";
|
|
80
|
+
var PopoverTrigger$1 = React.forwardRef(
|
|
81
|
+
(props, forwardedRef) => {
|
|
82
|
+
const { __scopePopover, ...triggerProps } = props;
|
|
83
|
+
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
|
84
|
+
const popperScope = usePopperScope(__scopePopover);
|
|
85
|
+
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
86
|
+
const trigger = /* @__PURE__ */ jsx(
|
|
87
|
+
Primitive.button,
|
|
88
|
+
{
|
|
89
|
+
type: "button",
|
|
90
|
+
"aria-haspopup": "dialog",
|
|
91
|
+
"aria-expanded": context.open,
|
|
92
|
+
"aria-controls": context.contentId,
|
|
93
|
+
"data-state": getState(context.open),
|
|
94
|
+
...triggerProps,
|
|
95
|
+
ref: composedTriggerRef,
|
|
96
|
+
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
PopoverTrigger$1.displayName = TRIGGER_NAME;
|
|
103
|
+
var PORTAL_NAME = "PopoverPortal";
|
|
104
|
+
var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
|
|
105
|
+
forceMount: void 0
|
|
106
|
+
});
|
|
107
|
+
var PopoverPortal = (props) => {
|
|
108
|
+
const { __scopePopover, forceMount, children, container } = props;
|
|
109
|
+
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
|
110
|
+
return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children }) }) });
|
|
111
|
+
};
|
|
112
|
+
PopoverPortal.displayName = PORTAL_NAME;
|
|
113
|
+
var CONTENT_NAME = "PopoverContent";
|
|
114
|
+
var PopoverContent$1 = React.forwardRef(
|
|
115
|
+
(props, forwardedRef) => {
|
|
116
|
+
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
|
117
|
+
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
118
|
+
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
119
|
+
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
PopoverContent$1.displayName = CONTENT_NAME;
|
|
123
|
+
var Slot = createSlot("PopoverContent.RemoveScroll");
|
|
124
|
+
var PopoverContentModal = React.forwardRef(
|
|
125
|
+
(props, forwardedRef) => {
|
|
126
|
+
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
127
|
+
const contentRef = React.useRef(null);
|
|
128
|
+
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
129
|
+
const isRightClickOutsideRef = React.useRef(false);
|
|
130
|
+
React.useEffect(() => {
|
|
131
|
+
const content = contentRef.current;
|
|
132
|
+
if (content) return hideOthers(content);
|
|
133
|
+
}, []);
|
|
134
|
+
return /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
|
|
135
|
+
PopoverContentImpl,
|
|
136
|
+
{
|
|
137
|
+
...props,
|
|
138
|
+
ref: composedRefs,
|
|
139
|
+
trapFocus: context.open,
|
|
140
|
+
disableOutsidePointerEvents: true,
|
|
141
|
+
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
|
|
144
|
+
}),
|
|
145
|
+
onPointerDownOutside: composeEventHandlers(
|
|
146
|
+
props.onPointerDownOutside,
|
|
147
|
+
(event) => {
|
|
148
|
+
const originalEvent = event.detail.originalEvent;
|
|
149
|
+
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
150
|
+
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
151
|
+
isRightClickOutsideRef.current = isRightClick;
|
|
152
|
+
},
|
|
153
|
+
{ checkForDefaultPrevented: false }
|
|
154
|
+
),
|
|
155
|
+
onFocusOutside: composeEventHandlers(
|
|
156
|
+
props.onFocusOutside,
|
|
157
|
+
(event) => event.preventDefault(),
|
|
158
|
+
{ checkForDefaultPrevented: false }
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
) });
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
var PopoverContentNonModal = React.forwardRef(
|
|
165
|
+
(props, forwardedRef) => {
|
|
166
|
+
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
167
|
+
const hasInteractedOutsideRef = React.useRef(false);
|
|
168
|
+
const hasPointerDownOutsideRef = React.useRef(false);
|
|
169
|
+
return /* @__PURE__ */ jsx(
|
|
170
|
+
PopoverContentImpl,
|
|
171
|
+
{
|
|
172
|
+
...props,
|
|
173
|
+
ref: forwardedRef,
|
|
174
|
+
trapFocus: false,
|
|
175
|
+
disableOutsidePointerEvents: false,
|
|
176
|
+
onCloseAutoFocus: (event) => {
|
|
177
|
+
props.onCloseAutoFocus?.(event);
|
|
178
|
+
if (!event.defaultPrevented) {
|
|
179
|
+
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
|
180
|
+
event.preventDefault();
|
|
181
|
+
}
|
|
182
|
+
hasInteractedOutsideRef.current = false;
|
|
183
|
+
hasPointerDownOutsideRef.current = false;
|
|
184
|
+
},
|
|
185
|
+
onInteractOutside: (event) => {
|
|
186
|
+
props.onInteractOutside?.(event);
|
|
187
|
+
if (!event.defaultPrevented) {
|
|
188
|
+
hasInteractedOutsideRef.current = true;
|
|
189
|
+
if (event.detail.originalEvent.type === "pointerdown") {
|
|
190
|
+
hasPointerDownOutsideRef.current = true;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const target = event.target;
|
|
194
|
+
const targetIsTrigger = context.triggerRef.current?.contains(target);
|
|
195
|
+
if (targetIsTrigger) event.preventDefault();
|
|
196
|
+
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
|
|
197
|
+
event.preventDefault();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
var PopoverContentImpl = React.forwardRef(
|
|
205
|
+
(props, forwardedRef) => {
|
|
206
|
+
const {
|
|
207
|
+
__scopePopover,
|
|
208
|
+
trapFocus,
|
|
209
|
+
onOpenAutoFocus,
|
|
210
|
+
onCloseAutoFocus,
|
|
211
|
+
disableOutsidePointerEvents,
|
|
212
|
+
onEscapeKeyDown,
|
|
213
|
+
onPointerDownOutside,
|
|
214
|
+
onFocusOutside,
|
|
215
|
+
onInteractOutside,
|
|
216
|
+
...contentProps
|
|
217
|
+
} = props;
|
|
218
|
+
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
|
219
|
+
const popperScope = usePopperScope(__scopePopover);
|
|
220
|
+
useFocusGuards();
|
|
221
|
+
return /* @__PURE__ */ jsx(
|
|
222
|
+
FocusScope,
|
|
223
|
+
{
|
|
224
|
+
asChild: true,
|
|
225
|
+
loop: true,
|
|
226
|
+
trapped: trapFocus,
|
|
227
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
228
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
229
|
+
children: /* @__PURE__ */ jsx(
|
|
230
|
+
DismissableLayer,
|
|
231
|
+
{
|
|
232
|
+
asChild: true,
|
|
233
|
+
disableOutsidePointerEvents,
|
|
234
|
+
onInteractOutside,
|
|
235
|
+
onEscapeKeyDown,
|
|
236
|
+
onPointerDownOutside,
|
|
237
|
+
onFocusOutside,
|
|
238
|
+
onDismiss: () => context.onOpenChange(false),
|
|
239
|
+
children: /* @__PURE__ */ jsx(
|
|
240
|
+
Content,
|
|
241
|
+
{
|
|
242
|
+
"data-state": getState(context.open),
|
|
243
|
+
role: "dialog",
|
|
244
|
+
id: context.contentId,
|
|
245
|
+
...popperScope,
|
|
246
|
+
...contentProps,
|
|
247
|
+
ref: forwardedRef,
|
|
248
|
+
style: {
|
|
249
|
+
...contentProps.style,
|
|
250
|
+
// re-namespace exposed content custom properties
|
|
251
|
+
...{
|
|
252
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
253
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
254
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
255
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
256
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
var CLOSE_NAME = "PopoverClose";
|
|
268
|
+
var PopoverClose = React.forwardRef(
|
|
269
|
+
(props, forwardedRef) => {
|
|
270
|
+
const { __scopePopover, ...closeProps } = props;
|
|
271
|
+
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
272
|
+
return /* @__PURE__ */ jsx(
|
|
273
|
+
Primitive.button,
|
|
274
|
+
{
|
|
275
|
+
type: "button",
|
|
276
|
+
...closeProps,
|
|
277
|
+
ref: forwardedRef,
|
|
278
|
+
onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
PopoverClose.displayName = CLOSE_NAME;
|
|
284
|
+
var ARROW_NAME = "PopoverArrow";
|
|
285
|
+
var PopoverArrow = React.forwardRef(
|
|
286
|
+
(props, forwardedRef) => {
|
|
287
|
+
const { __scopePopover, ...arrowProps } = props;
|
|
288
|
+
const popperScope = usePopperScope(__scopePopover);
|
|
289
|
+
return /* @__PURE__ */ jsx(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
PopoverArrow.displayName = ARROW_NAME;
|
|
293
|
+
function getState(open) {
|
|
294
|
+
return open ? "open" : "closed";
|
|
295
|
+
}
|
|
296
|
+
var Root2 = Popover$1;
|
|
297
|
+
var Trigger = PopoverTrigger$1;
|
|
298
|
+
var Portal = PopoverPortal;
|
|
299
|
+
var Content2 = PopoverContent$1;
|
|
300
|
+
|
|
301
|
+
function Popover({ ...props }) {
|
|
302
|
+
return /* @__PURE__ */ jsx(Root2, { "data-slot": "popover", ...props });
|
|
303
|
+
}
|
|
304
|
+
function PopoverTrigger({ ...props }) {
|
|
305
|
+
return /* @__PURE__ */ jsx(Trigger, { "data-slot": "popover-trigger", ...props });
|
|
306
|
+
}
|
|
307
|
+
function PopoverContent({
|
|
308
|
+
className,
|
|
309
|
+
align = "center",
|
|
310
|
+
sideOffset = 4,
|
|
311
|
+
...props
|
|
312
|
+
}) {
|
|
313
|
+
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
314
|
+
Content2,
|
|
315
|
+
{
|
|
316
|
+
"data-slot": "popover-content",
|
|
317
|
+
align,
|
|
318
|
+
sideOffset,
|
|
319
|
+
className: cn(
|
|
320
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",
|
|
321
|
+
className
|
|
322
|
+
),
|
|
323
|
+
...props
|
|
324
|
+
}
|
|
325
|
+
) });
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export { ChevronDown as C, Popover as P, PopoverTrigger as a, PopoverContent as b };
|
|
329
|
+
//# sourceMappingURL=popover.js.map
|