@wavv/ui 1.7.6 → 1.7.8
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/build/cjs/index.js +1 -1
- package/build/cjs/types/components/Input.d.ts +3 -3
- package/build/cjs/types/components/MultiSelect.d.ts +4 -4
- package/build/cjs/types/components/types.d.ts +1 -0
- package/build/cjs/types/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/types/components/Input.d.ts +3 -3
- package/build/esm/types/components/MultiSelect.d.ts +4 -4
- package/build/esm/types/components/types.d.ts +1 -0
- package/build/esm/types/index.d.ts +1 -1
- package/build/index.d.ts +8 -7
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ export type InputProps = {
|
|
|
63
63
|
pointer?: boolean;
|
|
64
64
|
/** Removes the padding from the input */
|
|
65
65
|
textOnly?: boolean;
|
|
66
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
66
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
67
67
|
search?: boolean;
|
|
68
68
|
/** Callback run after onFocus event */
|
|
69
69
|
onFocus?: (event?: InputFocusEvent) => void;
|
|
@@ -121,7 +121,7 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
|
|
|
121
121
|
pointer?: boolean | undefined;
|
|
122
122
|
/** Removes the padding from the input */
|
|
123
123
|
textOnly?: boolean | undefined;
|
|
124
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
124
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
125
125
|
search?: boolean | undefined;
|
|
126
126
|
/** Callback run after onFocus event */
|
|
127
127
|
onFocus?: ((event?: InputFocusEvent) => void) | undefined;
|
|
@@ -178,7 +178,7 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
|
|
|
178
178
|
pointer?: boolean | undefined;
|
|
179
179
|
/** Removes the padding from the input */
|
|
180
180
|
textOnly?: boolean | undefined;
|
|
181
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
181
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
182
182
|
search?: boolean | undefined;
|
|
183
183
|
/** Callback run after onFocus event */
|
|
184
184
|
onFocus?: ((event?: InputFocusEvent) => void) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { DropdownOption, InputProps } from './Dropdown';
|
|
3
|
-
import { Width, Margin } from './types';
|
|
3
|
+
import { Width, Margin, MultiSelectRef } from './types';
|
|
4
4
|
type DropdownProps = Omit<InputProps, 'children'>;
|
|
5
5
|
type MultiSelectProps = {
|
|
6
6
|
/** The list of dropdown options to display */
|
|
@@ -27,7 +27,7 @@ type MultiSelectProps = {
|
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
/** Hides the maxItems count and the itemsTitle */
|
|
29
29
|
hideItemsInfo?: boolean;
|
|
30
|
-
/** The selector (id or className) of the element the options should open in
|
|
30
|
+
/** The selector (id or className) of the element the options should open in relation to */
|
|
31
31
|
optionsParent?: string;
|
|
32
32
|
/** Causes the MultiSelect to collapse if listLabel is also present */
|
|
33
33
|
compact?: boolean;
|
|
@@ -42,5 +42,5 @@ type MultiSelectProps = {
|
|
|
42
42
|
/** The function to be called when the input is updated */
|
|
43
43
|
onTextChange?: (text: string) => void;
|
|
44
44
|
} & Width & Margin & DropdownProps;
|
|
45
|
-
declare const MultiSelect:
|
|
45
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & React.RefAttributes<MultiSelectRef>>;
|
|
46
46
|
export default MultiSelect;
|
|
@@ -43,7 +43,7 @@ export type { ITheme, ThemeProp } from './theme/ThemeTypes';
|
|
|
43
43
|
export type { IconNames } from './components/Icon/icons';
|
|
44
44
|
export type { DropdownOption } from './components/Dropdown';
|
|
45
45
|
export type { Item as TransferItem, Action as TransferAction, Next as TransferNext } from './components/TransferList';
|
|
46
|
-
export type { AudioRef, DraftEditorRef, InputRef, Margin, Padding, Position, MaxWidth, MaxHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
|
|
46
|
+
export type { AudioRef, DraftEditorRef, InputRef, MultiSelectRef, Margin, Padding, Position, MaxWidth, MaxHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
|
|
47
47
|
export { default as useEventListener } from './hooks/useEventListener';
|
|
48
48
|
export { default as useOnClickOutside } from './hooks/useOnClickOutside';
|
|
49
49
|
export { default as useSelect } from './hooks/useSelect';
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ElementType, FocusEvent, ReactNode, ChangeEvent, HTMLProps, ReactElement, MouseEvent as MouseEvent$1, KeyboardEvent as KeyboardEvent$1, CSSProperties, MutableRefObject, RefObject, FormEvent } from 'react';
|
|
3
|
+
import React__default, { ElementType, FocusEvent, ReactNode, ChangeEvent, HTMLProps, ReactElement, MouseEvent as MouseEvent$1, KeyboardEvent as KeyboardEvent$1, CSSProperties, MutableRefObject, RefObject, FormEvent } from 'react';
|
|
4
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
import { StyledComponent } from '@emotion/styled';
|
|
6
6
|
import * as _emotion_react from '@emotion/react';
|
|
@@ -559,6 +559,7 @@ type InputRef = {
|
|
|
559
559
|
blur: () => void;
|
|
560
560
|
hasFocus: boolean;
|
|
561
561
|
};
|
|
562
|
+
type MultiSelectRef = Omit<InputRef, 'hasFocus'>;
|
|
562
563
|
type AudioRef = {
|
|
563
564
|
play?: () => void;
|
|
564
565
|
pause?: () => void;
|
|
@@ -1398,7 +1399,7 @@ type InputProps = {
|
|
|
1398
1399
|
pointer?: boolean;
|
|
1399
1400
|
/** Removes the padding from the input */
|
|
1400
1401
|
textOnly?: boolean;
|
|
1401
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
1402
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
1402
1403
|
search?: boolean;
|
|
1403
1404
|
/** Callback run after onFocus event */
|
|
1404
1405
|
onFocus?: (event?: InputFocusEvent) => void;
|
|
@@ -1456,7 +1457,7 @@ declare const Input: React.ForwardRefExoticComponent<(Omit<{
|
|
|
1456
1457
|
pointer?: boolean | undefined;
|
|
1457
1458
|
/** Removes the padding from the input */
|
|
1458
1459
|
textOnly?: boolean | undefined;
|
|
1459
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
1460
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
1460
1461
|
search?: boolean | undefined;
|
|
1461
1462
|
/** Callback run after onFocus event */
|
|
1462
1463
|
onFocus?: ((event?: InputFocusEvent) => void) | undefined;
|
|
@@ -1513,7 +1514,7 @@ declare const Input: React.ForwardRefExoticComponent<(Omit<{
|
|
|
1513
1514
|
pointer?: boolean | undefined;
|
|
1514
1515
|
/** Removes the padding from the input */
|
|
1515
1516
|
textOnly?: boolean | undefined;
|
|
1516
|
-
/** Adds a search icon to the left of the input and a clear icon and
|
|
1517
|
+
/** Adds a search icon to the left of the input and a clear icon and functionality to the right */
|
|
1517
1518
|
search?: boolean | undefined;
|
|
1518
1519
|
/** Callback run after onFocus event */
|
|
1519
1520
|
onFocus?: ((event?: InputFocusEvent) => void) | undefined;
|
|
@@ -2072,7 +2073,7 @@ type MultiSelectProps = {
|
|
|
2072
2073
|
disabled?: boolean;
|
|
2073
2074
|
/** Hides the maxItems count and the itemsTitle */
|
|
2074
2075
|
hideItemsInfo?: boolean;
|
|
2075
|
-
/** The selector (id or className) of the element the options should open in
|
|
2076
|
+
/** The selector (id or className) of the element the options should open in relation to */
|
|
2076
2077
|
optionsParent?: string;
|
|
2077
2078
|
/** Causes the MultiSelect to collapse if listLabel is also present */
|
|
2078
2079
|
compact?: boolean;
|
|
@@ -2087,7 +2088,7 @@ type MultiSelectProps = {
|
|
|
2087
2088
|
/** The function to be called when the input is updated */
|
|
2088
2089
|
onTextChange?: (text: string) => void;
|
|
2089
2090
|
} & Width & Margin & DropdownProps;
|
|
2090
|
-
declare const MultiSelect:
|
|
2091
|
+
declare const MultiSelect: React__default.ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & React__default.RefAttributes<MultiSelectRef>>;
|
|
2091
2092
|
|
|
2092
2093
|
declare const Notification: _emotion_styled.StyledComponent<{
|
|
2093
2094
|
theme?: _emotion_react.Theme | undefined;
|
|
@@ -2454,4 +2455,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position)
|
|
|
2454
2455
|
left: string | number | undefined;
|
|
2455
2456
|
};
|
|
2456
2457
|
|
|
2457
|
-
export { Accordion, As, Audio, AudioRef, BarChart, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, DraftEditorRef, Dropdown, OptionItem as DropdownOption, FlexPosition, Form, Grid, Height, ITheme, Icon, IconNames, ImageViewer, InlineCode, Input, InputRef, _default as InputUtils, Label, LineChart, Margin, MarginPadding, MaxHeight, MaxWidth, MaxWidthHeight, Menu, Message, MessageHr, Modal, MultiSelect, Notification, Options, Padding, Pagination, PieChart, Position, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, Table, ThemeProp, ToastStyles, Toggle, Tooltip, Action as TransferAction, Item as TransferItem, TransferList, Next as TransferNext, Width, WidthHeight, copyToClipboard, formatDate, marginProps, numberWithCommas, paddingProps, positionProps, theme, useConfirm, useElementObserver, useEventListener, useOnClickOutside, useSelect, useSelectAll, useWindowSize, widthHeightProps };
|
|
2458
|
+
export { Accordion, As, Audio, AudioRef, BarChart, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, DraftEditorRef, Dropdown, OptionItem as DropdownOption, FlexPosition, Form, Grid, Height, ITheme, Icon, IconNames, ImageViewer, InlineCode, Input, InputRef, _default as InputUtils, Label, LineChart, Margin, MarginPadding, MaxHeight, MaxWidth, MaxWidthHeight, Menu, Message, MessageHr, Modal, MultiSelect, MultiSelectRef, Notification, Options, Padding, Pagination, PieChart, Position, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, Table, ThemeProp, ToastStyles, Toggle, Tooltip, Action as TransferAction, Item as TransferItem, TransferList, Next as TransferNext, Width, WidthHeight, copyToClipboard, formatDate, marginProps, numberWithCommas, paddingProps, positionProps, theme, useConfirm, useElementObserver, useEventListener, useOnClickOutside, useSelect, useSelectAll, useWindowSize, widthHeightProps };
|