@wavv/ui 2.2.5 → 2.2.7
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.
|
@@ -2,7 +2,7 @@ import { type CSSProperties, type ReactNode, type RefObject } from 'react';
|
|
|
2
2
|
import { type HeadingProps } from 'react-aria-components';
|
|
3
3
|
import type { Attributes } from './typeDefs/elementTypes';
|
|
4
4
|
import type { FlexPosition, Height, Margin, MaxWidthHeight, MinWidthHeight, Padding, PositionType, WidthHeight } from './types';
|
|
5
|
-
type
|
|
5
|
+
type DivAttributes = Attributes<HTMLDivElement>;
|
|
6
6
|
type ModalProps = {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/** Controls whether or not the Modal is open */
|
|
@@ -53,7 +53,7 @@ type ModalProps = {
|
|
|
53
53
|
zIndex?: number;
|
|
54
54
|
/** The `aria-label` of the modal */
|
|
55
55
|
'aria-label'?: string;
|
|
56
|
-
} & WidthHeight & MaxWidthHeight & MinWidthHeight & Padding &
|
|
56
|
+
} & WidthHeight & MaxWidthHeight & MinWidthHeight & Padding & DivAttributes;
|
|
57
57
|
declare const Modal: {
|
|
58
58
|
({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, small, noOverlay, inert, drawer, drawerDirection, scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
Header: {
|
|
@@ -81,18 +81,14 @@ type TextProps = {
|
|
|
81
81
|
children: ReactNode;
|
|
82
82
|
primary?: boolean;
|
|
83
83
|
fontSize?: number | string;
|
|
84
|
-
|
|
85
|
-
style?: CSSProperties;
|
|
86
|
-
};
|
|
84
|
+
} & DivAttributes;
|
|
87
85
|
type BodyProps = {
|
|
88
86
|
children: ReactNode;
|
|
89
|
-
|
|
90
|
-
style?: CSSProperties;
|
|
91
|
-
} & Height & Margin;
|
|
87
|
+
} & Height & Margin & DivAttributes;
|
|
92
88
|
type FooterProps = {
|
|
93
89
|
children: ReactNode;
|
|
94
90
|
justify?: FlexPosition;
|
|
95
91
|
inline?: boolean;
|
|
96
92
|
gap?: number | string;
|
|
97
|
-
} & Margin;
|
|
93
|
+
} & Margin & DivAttributes;
|
|
98
94
|
export default Modal;
|
|
@@ -80,6 +80,7 @@ export type TimeFieldProps = {
|
|
|
80
80
|
/** SELECTS */
|
|
81
81
|
type Combo = AriaComboBoxProps<object>;
|
|
82
82
|
export type ComboBoxProps = {
|
|
83
|
+
inputValue?: Combo['inputValue'];
|
|
83
84
|
defaultFilter?: Combo['defaultFilter'];
|
|
84
85
|
formValue?: Combo['formValue'];
|
|
85
86
|
allowsEmptyCollection?: Combo['allowsEmptyCollection'];
|
|
@@ -95,7 +96,8 @@ export type ComboBoxProps = {
|
|
|
95
96
|
className?: Combo['className'];
|
|
96
97
|
style?: Combo['style'];
|
|
97
98
|
onOpenChange?: Combo['onOpenChange'];
|
|
98
|
-
|
|
99
|
+
onInputChange?: Combo['onInputChange'];
|
|
100
|
+
} & Omit<Combo, 'children' | 'defaultItems' | 'items' | 'onSelectionChange' | 'selectedKey' | 'defaultSelectedKey' | 'defaultInputValue' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired'>;
|
|
99
101
|
type Select = AriaSelectProps<SelectItem>;
|
|
100
102
|
export type SelectProps = {
|
|
101
103
|
autoComplete?: Select['autoComplete'];
|
|
@@ -112,6 +114,7 @@ export type SelectProps = {
|
|
|
112
114
|
} & Omit<Select, 'placeholder' | 'selectionMode' | 'value' | 'children' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'defaultSelectedKey' | 'selectionMode' | 'onChange' | 'validate' | 'onSelectionChange'>;
|
|
113
115
|
type MenuProps = AriaMenuProps<ListOption>;
|
|
114
116
|
export type DropdownMenuProps = {
|
|
117
|
+
defaultSelectedKeys?: MenuProps['defaultSelectedKeys'];
|
|
115
118
|
renderEmptyState?: MenuProps['renderEmptyState'];
|
|
116
119
|
escapeKeyBehavior?: MenuProps['escapeKeyBehavior'];
|
|
117
120
|
autoFocus?: MenuProps['autoFocus'];
|
|
@@ -122,5 +125,5 @@ export type DropdownMenuProps = {
|
|
|
122
125
|
style?: MenuProps['style'];
|
|
123
126
|
onAction?: MenuProps['onAction'];
|
|
124
127
|
onClose?: MenuProps['onClose'];
|
|
125
|
-
} & Omit<MenuProps, 'items' | 'selectionMode' | 'selectedKeys' | '
|
|
128
|
+
} & Omit<MenuProps, 'items' | 'selectionMode' | 'selectedKeys' | 'children' | 'dependencies' | 'onSelectionChange'>;
|
|
126
129
|
export {};
|