@wavv/ui 2.2.5 → 2.2.6
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;
|
|
@@ -95,7 +95,8 @@ export type ComboBoxProps = {
|
|
|
95
95
|
className?: Combo['className'];
|
|
96
96
|
style?: Combo['style'];
|
|
97
97
|
onOpenChange?: Combo['onOpenChange'];
|
|
98
|
-
|
|
98
|
+
onInputChange?: Combo['onInputChange'];
|
|
99
|
+
} & Omit<Combo, 'children' | 'defaultItems' | 'items' | 'onSelectionChange' | 'selectedKey' | 'defaultSelectedKey' | 'inputValue' | 'defaultInputValue' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired'>;
|
|
99
100
|
type Select = AriaSelectProps<SelectItem>;
|
|
100
101
|
export type SelectProps = {
|
|
101
102
|
autoComplete?: Select['autoComplete'];
|
|
@@ -112,6 +113,7 @@ export type SelectProps = {
|
|
|
112
113
|
} & Omit<Select, 'placeholder' | 'selectionMode' | 'value' | 'children' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'defaultSelectedKey' | 'selectionMode' | 'onChange' | 'validate' | 'onSelectionChange'>;
|
|
113
114
|
type MenuProps = AriaMenuProps<ListOption>;
|
|
114
115
|
export type DropdownMenuProps = {
|
|
116
|
+
defaultSelectedKeys?: MenuProps['defaultSelectedKeys'];
|
|
115
117
|
renderEmptyState?: MenuProps['renderEmptyState'];
|
|
116
118
|
escapeKeyBehavior?: MenuProps['escapeKeyBehavior'];
|
|
117
119
|
autoFocus?: MenuProps['autoFocus'];
|
|
@@ -122,5 +124,5 @@ export type DropdownMenuProps = {
|
|
|
122
124
|
style?: MenuProps['style'];
|
|
123
125
|
onAction?: MenuProps['onAction'];
|
|
124
126
|
onClose?: MenuProps['onClose'];
|
|
125
|
-
} & Omit<MenuProps, 'items' | 'selectionMode' | 'selectedKeys' | '
|
|
127
|
+
} & Omit<MenuProps, 'items' | 'selectionMode' | 'selectedKeys' | 'children' | 'dependencies' | 'onSelectionChange'>;
|
|
126
128
|
export {};
|