@candy.thieves/ui-kit-lumos 0.0.64 → 0.0.66
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/index.css +1 -1
- package/dist/index.js +1785 -1615
- package/dist/index.js.map +1 -1
- package/dist/types/components/Input/Input.d.ts +2 -0
- package/dist/types/components/SearchableSelect/SearchableSelect.d.ts +49 -0
- package/dist/types/components/SearchableSelect/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/constants/constants.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useDebounce.d.ts +1 -0
- package/dist/types/utils/getOptions.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,10 +4,12 @@ export type InputProps = {
|
|
|
4
4
|
error?: string;
|
|
5
5
|
startAdornment?: ReactNode;
|
|
6
6
|
endAdornment?: ReactNode;
|
|
7
|
+
containerClassName?: string;
|
|
7
8
|
} & ComponentPropsWithoutRef<'input'>;
|
|
8
9
|
export declare const Input: import("react").ForwardRefExoticComponent<{
|
|
9
10
|
label?: string;
|
|
10
11
|
error?: string;
|
|
11
12
|
startAdornment?: ReactNode;
|
|
12
13
|
endAdornment?: ReactNode;
|
|
14
|
+
containerClassName?: string;
|
|
13
15
|
} & Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
3
|
+
import { type SelectItem } from '@/components';
|
|
4
|
+
export type SearchableSelectProps = Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'children'> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
contentProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
7
|
+
contentClassName?: string;
|
|
8
|
+
debounceDelay?: number;
|
|
9
|
+
groupLabelClassName?: string;
|
|
10
|
+
iconProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Icon>;
|
|
11
|
+
itemClassName?: string;
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
labelProps?: ComponentPropsWithoutRef<'label'>;
|
|
14
|
+
onSearchChange?: (value: string) => void;
|
|
15
|
+
options: SelectItem[];
|
|
16
|
+
placeholder?: ReactNode;
|
|
17
|
+
portalProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Portal>;
|
|
18
|
+
searchPlaceholder?: string;
|
|
19
|
+
separatorClassName?: string;
|
|
20
|
+
triggerIcon?: ReactNode;
|
|
21
|
+
triggerProps?: Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>, 'children'>;
|
|
22
|
+
valueProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;
|
|
23
|
+
viewportProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Viewport>;
|
|
24
|
+
};
|
|
25
|
+
export declare const SearchableSelect: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSharedProps & {
|
|
26
|
+
value?: string;
|
|
27
|
+
defaultValue?: string;
|
|
28
|
+
onValueChange?(value: string): void;
|
|
29
|
+
}, "children"> & {
|
|
30
|
+
className?: string;
|
|
31
|
+
contentProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
32
|
+
contentClassName?: string;
|
|
33
|
+
debounceDelay?: number;
|
|
34
|
+
groupLabelClassName?: string;
|
|
35
|
+
iconProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Icon>;
|
|
36
|
+
itemClassName?: string;
|
|
37
|
+
label?: ReactNode;
|
|
38
|
+
labelProps?: ComponentPropsWithoutRef<"label">;
|
|
39
|
+
onSearchChange?: (value: string) => void;
|
|
40
|
+
options: SelectItem[];
|
|
41
|
+
placeholder?: ReactNode;
|
|
42
|
+
portalProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Portal>;
|
|
43
|
+
searchPlaceholder?: string;
|
|
44
|
+
separatorClassName?: string;
|
|
45
|
+
triggerIcon?: ReactNode;
|
|
46
|
+
triggerProps?: Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>, "children">;
|
|
47
|
+
valueProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;
|
|
48
|
+
viewportProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Viewport>;
|
|
49
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchableSelect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
@@ -6,5 +6,6 @@ export { isThemeColor } from './isThemeColor';
|
|
|
6
6
|
export { getFirstLetterCapitalized } from './getFirstLetterCapitalized';
|
|
7
7
|
export { isAudioAttachment } from './isAudioAttachment';
|
|
8
8
|
export { formatTime } from './formatTime';
|
|
9
|
+
export { getOptions } from './getOptions';
|
|
9
10
|
export { DAYS_IN_WEEK, formatValue, getCalendarDates, getClosestEnabledDate, getDateBetween, getDateRange, getDatesEqual, getStartOfDay, getStartOfMonth, isYearSelectable, MONTH_OPTIONS, YEAR_OPTIONS, } from './datePicker';
|
|
10
11
|
export type { DatePickerMode, DatePickerValue, DateRange } from './datePicker';
|