rupoui 1.3.2 → 1.3.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/README.md +13 -13
- package/dist/components/button/Button.d.ts +6 -3
- package/dist/components/button/button.styles.d.ts +176 -162
- package/dist/components/button/button.types.d.ts +14 -14
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/calendar/Calendar.d.ts +3 -2
- package/dist/components/calendar/calendar.grid.d.ts +5 -2
- package/dist/components/calendar/calendar.navigation.d.ts +1 -1
- package/dist/components/calendar/calendar.selection.d.ts +6 -2
- package/dist/components/calendar/calendar.state.d.ts +1 -1
- package/dist/components/calendar/calendar.styles.d.ts +106 -83
- package/dist/components/calendar/calendar.types.d.ts +39 -39
- package/dist/components/calendar/index.d.ts +3 -3
- package/dist/components/checkbox/Checkbox.d.ts +4 -2
- package/dist/components/checkbox/CheckboxGroup.d.ts +4 -2
- package/dist/components/checkbox/checkbox-group-context.d.ts +12 -12
- package/dist/components/checkbox/checkbox.styles.d.ts +313 -285
- package/dist/components/checkbox/checkbox.types.d.ts +161 -154
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/useCheckbox.d.ts +389 -311
- package/dist/components/checkbox/useCheckboxGroup.d.ts +353 -280
- package/dist/components/chip/Chip.d.ts +4 -2
- package/dist/components/chip/ChipGroup.d.ts +4 -2
- package/dist/components/chip/chip-group-context.d.ts +9 -6
- package/dist/components/chip/chip.styles.d.ts +206 -192
- package/dist/components/chip/chip.types.d.ts +155 -149
- package/dist/components/chip/index.d.ts +5 -5
- package/dist/components/chip/useChip.d.ts +22 -20
- package/dist/components/chip/useChipGroup.d.ts +350 -277
- package/dist/components/datepicker/DatePart.d.ts +16 -14
- package/dist/components/datepicker/DatePicker.d.ts +17 -16
- package/dist/components/datepicker/DatePickerCalendar.d.ts +8 -7
- package/dist/components/datepicker/DatePickerDay.d.ts +11 -9
- package/dist/components/datepicker/DatePickerInput.d.ts +16 -15
- package/dist/components/datepicker/DatePickerPopover.d.ts +7 -6
- package/dist/components/datepicker/SegmentedDatePickerInput.d.ts +9 -8
- package/dist/components/datepicker/datepicker.controller.d.ts +6 -2
- package/dist/components/datepicker/datepicker.input.logic.d.ts +16 -6
- package/dist/components/datepicker/datepicker.input.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.input.types.d.ts +20 -20
- package/dist/components/datepicker/datepicker.keyboard.d.ts +6 -2
- package/dist/components/datepicker/datepicker.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.styles.d.ts +118 -95
- package/dist/components/datepicker/datepicker.types.d.ts +52 -52
- package/dist/components/datepicker/index.d.ts +5 -5
- package/dist/components/dropdown/Dropdown.d.ts +3 -2
- package/dist/components/dropdown/DropdownContent.d.ts +3 -2
- package/dist/components/dropdown/DropdownItem.d.ts +3 -2
- package/dist/components/dropdown/DropdownSection.d.ts +3 -2
- package/dist/components/dropdown/DropdownSeparator.d.ts +3 -2
- package/dist/components/dropdown/DropdownTrigger.d.ts +3 -2
- package/dist/components/dropdown/context.d.ts +22 -21
- package/dist/components/dropdown/dropdown.styles.d.ts +180 -166
- package/dist/components/dropdown/dropdown.types.d.ts +97 -85
- package/dist/components/dropdown/index.d.ts +9 -9
- package/dist/components/dropdown/useDropdown.d.ts +15 -15
- package/dist/components/input/Input.d.ts +9 -4
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.styles.d.ts +239 -225
- package/dist/components/input/input.types.d.ts +60 -58
- package/dist/components/input-number/InputNumber.d.ts +24 -5
- package/dist/components/input-number/index.d.ts +2 -2
- package/dist/components/input-number/input-number.styles.d.ts +331 -317
- package/dist/components/input-number/input-number.types.d.ts +132 -116
- package/dist/components/input-number/utils.d.ts +11 -3
- package/dist/components/modal/Modal.d.ts +4 -3
- package/dist/components/modal/ModalContent.d.ts +7 -3
- package/dist/components/modal/ModalLayout.d.ts +16 -4
- package/dist/components/modal/ModalTrigger.d.ts +5 -3
- package/dist/components/modal/context.d.ts +8 -8
- package/dist/components/modal/index.d.ts +6 -6
- package/dist/components/modal/modal.styles.d.ts +233 -219
- package/dist/components/modal/modal.types.d.ts +35 -34
- package/dist/components/modal/useModal.d.ts +7 -7
- package/dist/components/pagination/Pagination.d.ts +6 -3
- package/dist/components/pagination/PaginationContent.d.ts +6 -3
- package/dist/components/pagination/PaginationContext.d.ts +54 -54
- package/dist/components/pagination/PaginationEllipsis.d.ts +6 -3
- package/dist/components/pagination/PaginationItem.d.ts +6 -3
- package/dist/components/pagination/PaginationItems.d.ts +2 -2
- package/dist/components/pagination/PaginationNext.d.ts +6 -3
- package/dist/components/pagination/PaginationPrevious.d.ts +6 -3
- package/dist/components/pagination/index.d.ts +18 -9
- package/dist/components/pagination/pagination.styles.d.ts +147 -133
- package/dist/components/pagination/pagination.types.d.ts +125 -121
- package/dist/components/pagination/usePagination.d.ts +25 -20
- package/dist/components/popover/Popover.d.ts +3 -2
- package/dist/components/popover/PopoverContent.d.ts +3 -2
- package/dist/components/popover/PopoverContext.d.ts +103 -83
- package/dist/components/popover/PopoverTrigger.d.ts +3 -2
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/popover.styles.d.ts +122 -108
- package/dist/components/popover/popover.types.d.ts +96 -95
- package/dist/components/popover/usePopover.d.ts +52 -42
- package/dist/components/radio/Radio.d.ts +4 -2
- package/dist/components/radio/RadioGroup.d.ts +4 -2
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/radio-group-context.d.ts +12 -12
- package/dist/components/radio/radio.styles.d.ts +306 -278
- package/dist/components/radio/radio.types.d.ts +145 -138
- package/dist/components/radio/useRadio.d.ts +391 -311
- package/dist/components/radio/useRadioGroup.d.ts +354 -281
- package/dist/components/ripple/Ripple.d.ts +9 -9
- package/dist/components/select/Select.d.ts +6 -3
- package/dist/components/select/SelectItem.d.ts +15 -4
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/select.styles.d.ts +224 -210
- package/dist/components/select/select.types.d.ts +51 -50
- package/dist/components/select/useSelect.d.ts +16 -16
- package/dist/components/spinner/Spinner.d.ts +9 -3
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/spinner.styles.d.ts +91 -77
- package/dist/components/spinner/spinner.types.d.ts +4 -4
- package/dist/components/switch/Switch.d.ts +4 -2
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.styles.d.ts +147 -133
- package/dist/components/switch/switch.types.d.ts +84 -80
- package/dist/components/switch/useSwitch.d.ts +389 -311
- package/dist/components/tabs/Tab.d.ts +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +4 -4
- package/dist/components/tabs/tabs.styles.d.ts +341 -327
- package/dist/components/tabs/tabs.types.d.ts +67 -66
- package/dist/components/tabs/useTabs.d.ts +4 -4
- package/dist/components/textarea/Textarea.d.ts +9 -4
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.styles.d.ts +276 -262
- package/dist/components/textarea/textarea.types.d.ts +57 -55
- package/dist/components/toast/Toast.d.ts +8 -4
- package/dist/components/toast/ToastProvider.d.ts +8 -4
- package/dist/components/toast/ToastViewport.d.ts +14 -4
- package/dist/components/toast/Toaster.d.ts +4 -2
- package/dist/components/toast/index.d.ts +7 -7
- package/dist/components/toast/toast-store.d.ts +10 -10
- package/dist/components/toast/toast-subcomponents.d.ts +10 -4
- package/dist/components/toast/toast.types.d.ts +18 -18
- package/dist/components/toast/use-toast-internal.d.ts +1 -1
- package/dist/components/toast/utils.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/tooltip.styles.d.ts +187 -173
- package/dist/components/tooltip/tooltip.types.d.ts +85 -72
- package/dist/components/tooltip/useTooltip.d.ts +25 -25
- package/dist/components/tooltip/utils.d.ts +24 -13
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useDisclosure.d.ts +10 -10
- package/dist/hooks/useFocusTrap.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +24 -25
- package/dist/index.js +1697 -1632
- package/dist/motion/focus.d.ts +6 -6
- package/dist/motion/hover.d.ts +8 -8
- package/dist/motion/index.d.ts +5 -5
- package/dist/motion/press.d.ts +7 -7
- package/dist/motion/reveal.d.ts +16 -16
- package/dist/motion/tokens.d.ts +9 -9
- package/dist/provider/RupoUIContext.d.ts +2 -2
- package/dist/provider/RupoUIProvider.d.ts +9 -5
- package/dist/provider/types.d.ts +46 -25
- package/dist/provider/useRupoUI.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/tokens/colors.d.ts +24 -24
- package/dist/styles/tokens/index.d.ts +5 -5
- package/dist/styles/tokens/motion.d.ts +9 -9
- package/dist/styles/tokens/radius.d.ts +6 -6
- package/dist/styles/tokens/spacing.d.ts +11 -11
- package/dist/styles/tokens/typography.d.ts +64 -32
- package/dist/tailwind/index.d.ts +7 -7
- package/dist/tailwind/plugin-utils.d.ts +1 -1
- package/dist/tailwind/theme.d.ts +1 -1
- package/package.json +11 -2
- package/dist/components/toast/ToastDemo.d.ts +0 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { default as React } from
|
|
1
|
+
import { default as React } from "react";
|
|
2
2
|
|
|
3
3
|
interface DatePartProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
onKeyDown: (e: React.KeyboardEvent, type: DatePartType) => void;
|
|
7
|
+
onFocus: () => void;
|
|
8
|
+
onBlur: () => void;
|
|
9
|
+
type: DatePartType;
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
ariaLabel?: string;
|
|
16
16
|
}
|
|
17
17
|
export type DatePartType = "day" | "month" | "year" | "hour" | "minute" | "second";
|
|
18
|
-
export declare const DatePart: React.ForwardRefExoticComponent<
|
|
18
|
+
export declare const DatePart: React.ForwardRefExoticComponent<
|
|
19
|
+
DatePartProps & React.RefAttributes<HTMLInputElement>
|
|
20
|
+
>;
|
|
19
21
|
export {};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { DatePickerConfig } from "./datepicker.types";
|
|
3
4
|
|
|
4
5
|
export interface DatePickerProps extends Omit<DatePickerConfig, "value"> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
value?: Date | null;
|
|
7
|
+
className?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
isReadOnly?: boolean;
|
|
11
|
+
onChange?: (date: Date | null) => void;
|
|
12
|
+
/** Whether manual text input is allowed */
|
|
13
|
+
allowInput?: boolean;
|
|
14
|
+
/** Expected date format (e.g., 'yyyy-MM-dd') */
|
|
15
|
+
format?: string;
|
|
16
|
+
/** Locale for formatting/parsing */
|
|
17
|
+
locale?: string;
|
|
18
|
+
/** Callback when input is invalid */
|
|
19
|
+
onInvalidInput?: (value: string, reason: string) => void;
|
|
19
20
|
}
|
|
20
21
|
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
3
|
-
import { datePicker } from
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { datePicker } from "./datepicker.styles";
|
|
4
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
4
5
|
|
|
5
6
|
interface DatePickerCalendarProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
state: DatePickerState;
|
|
8
|
+
config: DatePickerConfig;
|
|
9
|
+
onUpdate: (newState: DatePickerState) => void;
|
|
10
|
+
styles: ReturnType<typeof datePicker>;
|
|
10
11
|
}
|
|
11
12
|
export declare const DatePickerCalendar: React.FC<DatePickerCalendarProps>;
|
|
12
13
|
export {};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { CalendarCell } from "../calendar/calendar.types";
|
|
4
|
+
|
|
5
|
+
import { datePicker } from "./datepicker.styles";
|
|
6
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
5
7
|
|
|
6
8
|
interface DatePickerDayProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
cell: CalendarCell;
|
|
10
|
+
state: DatePickerState;
|
|
11
|
+
config: DatePickerConfig;
|
|
12
|
+
onSelect: (newState: DatePickerState) => void;
|
|
13
|
+
styles: ReturnType<typeof datePicker>;
|
|
12
14
|
}
|
|
13
15
|
export declare const DatePickerDay: React.FC<DatePickerDayProps>;
|
|
14
16
|
export {};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
3
|
-
import { datePicker } from
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { datePicker } from "./datepicker.styles";
|
|
4
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
4
5
|
|
|
5
6
|
interface DatePickerInputProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
state: DatePickerState;
|
|
8
|
+
config: DatePickerConfig;
|
|
9
|
+
onUpdate: (newState: DatePickerState) => void;
|
|
10
|
+
styles: ReturnType<typeof datePicker>;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
allowInput?: boolean;
|
|
16
|
+
formatString?: string;
|
|
17
|
+
locale?: string;
|
|
18
|
+
onInvalidInput?: (value: string, reason: string) => void;
|
|
18
19
|
}
|
|
19
20
|
export declare const DatePickerInput: React.FC<DatePickerInputProps>;
|
|
20
21
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { datePicker } from "./datepicker.styles";
|
|
3
4
|
|
|
4
5
|
interface DatePickerPopoverProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
styles: ReturnType<typeof datePicker>;
|
|
9
10
|
}
|
|
10
11
|
export declare const DatePickerPopover: React.FC<DatePickerPopoverProps>;
|
|
11
12
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
|
|
3
|
-
import { datePicker } from
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
|
|
3
|
+
import { datePicker } from "./datepicker.styles";
|
|
4
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
4
5
|
|
|
5
6
|
interface SegmentedDatePickerInputProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
state: DatePickerState;
|
|
8
|
+
config: DatePickerConfig;
|
|
9
|
+
onUpdate: (newState: DatePickerState) => void;
|
|
10
|
+
styles: ReturnType<typeof datePicker>;
|
|
11
|
+
className?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const SegmentedDatePickerInput: React.FC<SegmentedDatePickerInputProps>;
|
|
13
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerConfig, DatePickerState } from
|
|
1
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
2
2
|
|
|
3
3
|
/** ----------------------------------------------------------------------------
|
|
4
4
|
* VISIBILITY CONTROLS
|
|
@@ -15,5 +15,9 @@ export declare function goToMonth(state: DatePickerState, date: Date): DatePicke
|
|
|
15
15
|
/** ----------------------------------------------------------------------------
|
|
16
16
|
* SELECTION & FOCUS
|
|
17
17
|
* -------------------------------------------------------------------------- */
|
|
18
|
-
export declare function selectDate(
|
|
18
|
+
export declare function selectDate(
|
|
19
|
+
state: DatePickerState,
|
|
20
|
+
date: Date,
|
|
21
|
+
config?: DatePickerConfig,
|
|
22
|
+
): DatePickerState;
|
|
19
23
|
export declare function setFocusedDate(state: DatePickerState, date: Date): DatePickerState;
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DatePickerInputConfig, DatePickerInputState } from "./datepicker.input.types";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Parses an input string into a Date object based on the format.
|
|
5
5
|
* Returns null if parsing fails or input is invalid.
|
|
6
6
|
*/
|
|
7
|
-
export declare function parseInputDate(
|
|
7
|
+
export declare function parseInputDate(
|
|
8
|
+
input: string,
|
|
9
|
+
format?: string,
|
|
10
|
+
locale?: string,
|
|
11
|
+
): Date | null;
|
|
8
12
|
/**
|
|
9
13
|
* Handles input change event.
|
|
10
14
|
* Simply updates value and sets typing state.
|
|
11
15
|
*/
|
|
12
|
-
export declare function onInputChange(
|
|
16
|
+
export declare function onInputChange(
|
|
17
|
+
prevState: DatePickerInputState,
|
|
18
|
+
newValue: string,
|
|
19
|
+
): DatePickerInputState;
|
|
13
20
|
/**
|
|
14
21
|
* Handles input blur event.
|
|
15
22
|
* Attempts to parse, validate, and returns new state + potential date selection.
|
|
16
23
|
*/
|
|
17
|
-
export declare function onInputBlur(
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
export declare function onInputBlur(
|
|
25
|
+
currentState: DatePickerInputState,
|
|
26
|
+
config: DatePickerInputConfig,
|
|
27
|
+
): {
|
|
28
|
+
inputState: DatePickerInputState;
|
|
29
|
+
selectedDate?: Date | null;
|
|
20
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerInputState } from
|
|
1
|
+
import { DatePickerInputState } from "./datepicker.input.types";
|
|
2
2
|
|
|
3
3
|
export declare const initialInputState: DatePickerInputState;
|
|
4
4
|
export declare const createInputState: (initialValue?: string) => DatePickerInputState;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export type DatePickerInputState = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/** The current text value of the input */
|
|
3
|
+
inputValue: string;
|
|
4
|
+
/** Whether the user is currently typing (has not blurred/selected yet) */
|
|
5
|
+
isTyping: boolean;
|
|
6
|
+
/** Error message if parsing failed or constraints violated */
|
|
7
|
+
error?: string;
|
|
8
8
|
};
|
|
9
9
|
export type DatePickerInputConfig = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
/** Whether manual input is allowed */
|
|
11
|
+
allowInput?: boolean;
|
|
12
|
+
/** Expected date format (e.g., 'yyyy-MM-dd') */
|
|
13
|
+
format?: string;
|
|
14
|
+
/** Locale for formatting/parsing */
|
|
15
|
+
locale?: string;
|
|
16
|
+
/** Callback when input is invalid */
|
|
17
|
+
onInvalidInput?: (value: string, reason: string) => void;
|
|
18
|
+
/** Minimum allowed date */
|
|
19
|
+
minDate?: Date;
|
|
20
|
+
/** Maximum allowed date */
|
|
21
|
+
maxDate?: Date;
|
|
22
|
+
/** Function to determine if a date is disabled */
|
|
23
|
+
disabledDates?: (date: Date) => boolean;
|
|
24
24
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { DatePickerConfig, DatePickerState } from
|
|
1
|
+
import { DatePickerConfig, DatePickerState } from "./datepicker.types";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Handles keyboard events for the DatePicker.
|
|
5
5
|
*/
|
|
6
|
-
export declare function handleKeyDown(
|
|
6
|
+
export declare function handleKeyDown(
|
|
7
|
+
state: DatePickerState,
|
|
8
|
+
key: string,
|
|
9
|
+
config: DatePickerConfig,
|
|
10
|
+
): DatePickerState;
|
|
@@ -1,52 +1,60 @@
|
|
|
1
|
-
export declare const datePicker: import(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
export declare const datePicker: import("tailwind-variants").TVReturnType<
|
|
2
|
+
| {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]:
|
|
5
|
+
| import("tailwind-merge").ClassNameValue
|
|
6
|
+
| {
|
|
7
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
popover?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
separator?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
calendar?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
gridHeader?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
dateGrid?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
daySelected?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
dayToday?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
dayDisabled?: import("tailwind-merge").ClassNameValue;
|
|
20
|
+
dayOutside?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
headerButton?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
day?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
segmentGroup?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
segment?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
triggerButton?: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
| {
|
|
30
|
+
[x: string]: {
|
|
31
|
+
[x: string]:
|
|
32
|
+
| import("tailwind-merge").ClassNameValue
|
|
33
|
+
| {
|
|
34
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
36
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
popover?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
separator?: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
calendar?: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
gridHeader?: import("tailwind-merge").ClassNameValue;
|
|
43
|
+
dateGrid?: import("tailwind-merge").ClassNameValue;
|
|
44
|
+
daySelected?: import("tailwind-merge").ClassNameValue;
|
|
45
|
+
dayToday?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
dayDisabled?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
dayOutside?: import("tailwind-merge").ClassNameValue;
|
|
48
|
+
headerButton?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
day?: import("tailwind-merge").ClassNameValue;
|
|
50
|
+
segmentGroup?: import("tailwind-merge").ClassNameValue;
|
|
51
|
+
segment?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
triggerButton?: import("tailwind-merge").ClassNameValue;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
| {},
|
|
57
|
+
{
|
|
50
58
|
base: string;
|
|
51
59
|
input: string[];
|
|
52
60
|
popover: string[];
|
|
@@ -66,31 +74,37 @@ export declare const datePicker: import('tailwind-variants').TVReturnType<{
|
|
|
66
74
|
segment: string[];
|
|
67
75
|
separator: string;
|
|
68
76
|
triggerButton: string[];
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
77
|
+
},
|
|
78
|
+
undefined,
|
|
79
|
+
| {
|
|
80
|
+
[key: string]: {
|
|
81
|
+
[key: string]:
|
|
82
|
+
| import("tailwind-merge").ClassNameValue
|
|
83
|
+
| {
|
|
84
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
85
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
86
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
87
|
+
popover?: import("tailwind-merge").ClassNameValue;
|
|
88
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
89
|
+
separator?: import("tailwind-merge").ClassNameValue;
|
|
90
|
+
calendar?: import("tailwind-merge").ClassNameValue;
|
|
91
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
92
|
+
gridHeader?: import("tailwind-merge").ClassNameValue;
|
|
93
|
+
dateGrid?: import("tailwind-merge").ClassNameValue;
|
|
94
|
+
daySelected?: import("tailwind-merge").ClassNameValue;
|
|
95
|
+
dayToday?: import("tailwind-merge").ClassNameValue;
|
|
96
|
+
dayDisabled?: import("tailwind-merge").ClassNameValue;
|
|
97
|
+
dayOutside?: import("tailwind-merge").ClassNameValue;
|
|
98
|
+
headerButton?: import("tailwind-merge").ClassNameValue;
|
|
99
|
+
day?: import("tailwind-merge").ClassNameValue;
|
|
100
|
+
segmentGroup?: import("tailwind-merge").ClassNameValue;
|
|
101
|
+
segment?: import("tailwind-merge").ClassNameValue;
|
|
102
|
+
triggerButton?: import("tailwind-merge").ClassNameValue;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
| {},
|
|
107
|
+
{
|
|
94
108
|
base: string;
|
|
95
109
|
input: string[];
|
|
96
110
|
popover: string[];
|
|
@@ -110,24 +124,33 @@ export declare const datePicker: import('tailwind-variants').TVReturnType<{
|
|
|
110
124
|
segment: string[];
|
|
111
125
|
separator: string;
|
|
112
126
|
triggerButton: string[];
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
},
|
|
128
|
+
import("tailwind-variants").TVReturnType<
|
|
129
|
+
unknown,
|
|
130
|
+
{
|
|
131
|
+
base: string;
|
|
132
|
+
input: string[];
|
|
133
|
+
popover: string[];
|
|
134
|
+
calendar: string;
|
|
135
|
+
header: string;
|
|
136
|
+
headerButton: string[];
|
|
137
|
+
headerTitle: string;
|
|
138
|
+
grid: string;
|
|
139
|
+
gridHeader: string;
|
|
140
|
+
dateGrid: string;
|
|
141
|
+
day: string[];
|
|
142
|
+
daySelected: string;
|
|
143
|
+
dayToday: string;
|
|
144
|
+
dayDisabled: string;
|
|
145
|
+
dayOutside: string;
|
|
146
|
+
segmentGroup: string[];
|
|
147
|
+
segment: string[];
|
|
148
|
+
separator: string;
|
|
149
|
+
triggerButton: string[];
|
|
150
|
+
},
|
|
151
|
+
undefined,
|
|
152
|
+
unknown,
|
|
153
|
+
unknown,
|
|
154
|
+
undefined
|
|
155
|
+
>
|
|
156
|
+
>;
|