@vuu-ui/vuu-ui-controls 0.8.27-debug → 0.8.28-debug
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/cjs/index.js +523 -794
- package/cjs/index.js.map +4 -4
- package/esm/index.js +439 -709
- package/esm/index.js.map +4 -4
- package/index.css +4 -55
- package/index.css.map +3 -3
- package/package.json +7 -7
- package/types/cycle-state-button/CycleStateButton.d.ts +4 -2
- package/types/date-input/DateInput.d.ts +3 -2
- package/types/editable-label/EditableLabel.d.ts +8 -2
- package/types/index.d.ts +0 -1
- package/types/tabstrip/TabsTypes.d.ts +2 -2
- package/types/date-picker/DatePicker.d.ts +0 -5
- package/types/date-picker/DateRangePicker.d.ts +0 -5
- package/types/date-picker/index.d.ts +0 -2
- package/types/date-picker/input/DatePickerInput.d.ts +0 -7
- package/types/date-picker/input/DateRangePickerInput.d.ts +0 -7
- package/types/date-picker/input/types.d.ts +0 -6
- package/types/date-picker/internal/CalendarIconButton.d.ts +0 -3
- package/types/date-picker/types.d.ts +0 -15
- package/types/date-picker/useBaseDatePicker.d.ts +0 -17
- package/types/date-picker/useBaseDatePickerDropdown.d.ts +0 -15
|
@@ -2,7 +2,7 @@ import type { AriaAttributes, HTMLAttributes, KeyboardEvent, MouseEvent, ReactEl
|
|
|
2
2
|
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
3
|
import type { EditableLabelProps } from "../editable-label";
|
|
4
4
|
import type { MenuActionHandler } from "@vuu-ui/vuu-data-types";
|
|
5
|
-
export type
|
|
5
|
+
export type ExitTabEditModeHandler = (originalValue: string, editedValue: string, allowDeactivation: boolean, tabIndex: number) => void;
|
|
6
6
|
export interface FocusAPI {
|
|
7
7
|
focus: () => void;
|
|
8
8
|
}
|
|
@@ -70,7 +70,7 @@ export interface TabstripProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
70
70
|
*/
|
|
71
71
|
orientation?: orientationType;
|
|
72
72
|
onEnterEditMode?: () => void;
|
|
73
|
-
onExitEditMode?:
|
|
73
|
+
onExitEditMode?: ExitTabEditModeHandler;
|
|
74
74
|
/**
|
|
75
75
|
* Boolean that indicates whether to enable overflow dropdown or not
|
|
76
76
|
*/
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseDatePickerProps } from "./types";
|
|
3
|
-
import { RangeSelectionValueType } from "../calendar";
|
|
4
|
-
import "./DatePicker.css";
|
|
5
|
-
export declare const DateRangePicker: (props: BaseDatePickerProps<RangeSelectionValueType>) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DateValue } from "@internationalized/date";
|
|
3
|
-
import { BasePickerInputProps } from "./types";
|
|
4
|
-
import "./DatePickerInput.css";
|
|
5
|
-
type Props = BasePickerInputProps<DateValue>;
|
|
6
|
-
export declare const DatePickerInput: React.FC<Props>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BasePickerInputProps } from "./types";
|
|
3
|
-
import { RangeSelectionValueType } from "../../calendar";
|
|
4
|
-
import "./DateRangePickerInput.css";
|
|
5
|
-
type Props = BasePickerInputProps<RangeSelectionValueType>;
|
|
6
|
-
export declare const DateRangePickerInput: React.FC<Props>;
|
|
7
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./CalendarIconButton.css";
|
|
3
|
-
export declare const CalendarIconButton: import("react").ForwardRefExoticComponent<Omit<import("@salt-ds/core").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DateValue } from "@internationalized/date";
|
|
2
|
-
import { CalendarProps } from "../calendar/Calendar";
|
|
3
|
-
import { RangeSelectionValueType } from "../calendar";
|
|
4
|
-
export type PickerSelectionType = DateValue | RangeSelectionValueType;
|
|
5
|
-
export interface BaseDatePickerProps<T = PickerSelectionType> extends Pick<CalendarProps, "hideOutOfRangeDates" | "hideYearDropdown"> {
|
|
6
|
-
onSelectedDateChange: (selected: T) => void;
|
|
7
|
-
selectedDate: T | undefined;
|
|
8
|
-
closeOnSelection?: boolean;
|
|
9
|
-
onBlur?: () => void;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface BaseDatePickerDropdownProps<T = PickerSelectionType> extends BaseDatePickerProps<T> {
|
|
13
|
-
visibleMonth: DateValue | undefined;
|
|
14
|
-
onVisibleMonthChange: (d: DateValue) => void;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseDatePickerProps } from "./types";
|
|
3
|
-
import { DateValue } from "@internationalized/date";
|
|
4
|
-
import { PickerSelectionType } from "./types";
|
|
5
|
-
import { RangeSelectionValueType } from "../calendar";
|
|
6
|
-
type InheritedProps<T extends PickerSelectionType> = Pick<BaseDatePickerProps<T>, "onBlur" | "selectedDate">;
|
|
7
|
-
type Props = ({
|
|
8
|
-
variant: "range";
|
|
9
|
-
} & InheritedProps<RangeSelectionValueType>) | ({
|
|
10
|
-
variant: "default";
|
|
11
|
-
} & InheritedProps<DateValue>);
|
|
12
|
-
export declare function useBaseDatePicker(props: Props): {
|
|
13
|
-
handleOnBlur: import("react").FocusEventHandler<HTMLDivElement>;
|
|
14
|
-
visibleMonth: DateValue | undefined;
|
|
15
|
-
handleVisibleMonthChange: import("react").Dispatch<import("react").SetStateAction<DateValue | undefined>>;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateValue } from "@internationalized/date";
|
|
3
|
-
import { PickerSelectionType } from "./types";
|
|
4
|
-
import { BaseDatePickerDropdownProps } from "./types";
|
|
5
|
-
type Props<T extends PickerSelectionType> = Pick<BaseDatePickerDropdownProps<T>, "onSelectedDateChange" | "onVisibleMonthChange"> & {
|
|
6
|
-
shouldCloseOnSelectionChange: (v: T) => boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare function useBaseDatePickerDropdown<T extends PickerSelectionType>({ onVisibleMonthChange, onSelectedDateChange, shouldCloseOnSelectionChange, }: Props<T>): {
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
handleOpenChange: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
11
|
-
triggererRef: import("react").RefObject<HTMLButtonElement>;
|
|
12
|
-
handleVisibleMonthChange: (_: React.SyntheticEvent, d: DateValue) => void;
|
|
13
|
-
handleDateSelection: (_: React.SyntheticEvent, d: T) => void;
|
|
14
|
-
};
|
|
15
|
-
export {};
|