@wavv/ui 1.7.2 → 1.7.4
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 +2 -2
- package/build/cjs/types/assets/icons/Check.d.ts +3 -0
- package/build/cjs/types/assets/icons/Screenshot.d.ts +3 -0
- package/build/cjs/types/assets/icons/ShieldCheck.d.ts +3 -0
- package/build/cjs/types/assets/icons/ShieldSlash.d.ts +3 -0
- package/build/cjs/types/components/Form.d.ts +4 -4
- package/build/cjs/types/components/Icon/icons.d.ts +4 -0
- package/build/cjs/types/components/Tooltip.d.ts +5 -10
- package/build/cjs/types/components/helpers/getPopPosition.d.ts +6 -0
- package/build/cjs/types/components/helpers/isPropAllowed.d.ts +2 -0
- package/build/cjs/types/components/types.d.ts +7 -0
- package/build/esm/index.js +2 -2
- package/build/esm/types/assets/icons/Check.d.ts +3 -0
- package/build/esm/types/assets/icons/Screenshot.d.ts +3 -0
- package/build/esm/types/assets/icons/ShieldCheck.d.ts +3 -0
- package/build/esm/types/assets/icons/ShieldSlash.d.ts +3 -0
- package/build/esm/types/components/Form.d.ts +4 -4
- package/build/esm/types/components/Icon/icons.d.ts +4 -0
- package/build/esm/types/components/Tooltip.d.ts +5 -10
- package/build/esm/types/components/helpers/getPopPosition.d.ts +6 -0
- package/build/esm/types/components/helpers/isPropAllowed.d.ts +2 -0
- package/build/esm/types/components/types.d.ts +7 -0
- package/build/index.d.ts +22 -17
- package/package.json +1 -1
|
@@ -106,7 +106,7 @@ declare const Form: {
|
|
|
106
106
|
centerX?: boolean | undefined;
|
|
107
107
|
offsetY?: number | undefined;
|
|
108
108
|
offsetX?: number | undefined;
|
|
109
|
-
direction?: "
|
|
109
|
+
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
110
110
|
fontSize?: string | number | undefined;
|
|
111
111
|
description?: string | undefined;
|
|
112
112
|
disabled?: boolean | undefined;
|
|
@@ -121,14 +121,14 @@ declare const Form: {
|
|
|
121
121
|
Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
122
122
|
id?: string | undefined;
|
|
123
123
|
label?: string | undefined;
|
|
124
|
-
labelPosition?: "
|
|
124
|
+
labelPosition?: "right" | "left" | undefined;
|
|
125
125
|
disabled?: boolean | undefined;
|
|
126
126
|
checked?: boolean | undefined;
|
|
127
127
|
} & import("./types").Margin & import("./types").As & HTMLProps<HTMLInputElement>) => JSX.Element;
|
|
128
128
|
Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
129
129
|
id?: string | undefined;
|
|
130
130
|
label?: string | undefined;
|
|
131
|
-
labelPosition?: "
|
|
131
|
+
labelPosition?: "right" | "left" | undefined;
|
|
132
132
|
disabled?: boolean | undefined;
|
|
133
133
|
checked?: boolean | undefined;
|
|
134
134
|
onChange: (val: boolean) => void;
|
|
@@ -136,7 +136,7 @@ declare const Form: {
|
|
|
136
136
|
Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
137
137
|
id?: string | undefined;
|
|
138
138
|
label?: string | undefined;
|
|
139
|
-
labelPosition?: "
|
|
139
|
+
labelPosition?: "right" | "left" | undefined;
|
|
140
140
|
disabled?: boolean | undefined;
|
|
141
141
|
checked?: boolean | undefined;
|
|
142
142
|
partial?: boolean | undefined;
|
|
@@ -116,6 +116,7 @@ declare const icons: {
|
|
|
116
116
|
card: typeof Card;
|
|
117
117
|
'caret-down': typeof CaretDown;
|
|
118
118
|
'caret-up': typeof CaretUp;
|
|
119
|
+
check: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
|
|
119
120
|
'check-circle': typeof CheckCircle;
|
|
120
121
|
'check-circle-outline': typeof CheckCircleOutline;
|
|
121
122
|
checkbox: typeof Checkbox;
|
|
@@ -182,9 +183,12 @@ declare const icons: {
|
|
|
182
183
|
rocket: typeof Rocket;
|
|
183
184
|
schedule: typeof Schedule;
|
|
184
185
|
'schedule-outline': typeof ScheduleOutline;
|
|
186
|
+
screenshot: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
|
|
185
187
|
search: typeof Search;
|
|
186
188
|
settings: typeof Settings;
|
|
187
189
|
share: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
|
|
190
|
+
'shield-check': (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
|
|
191
|
+
'shield-slash': (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
|
|
188
192
|
sort: typeof Sort;
|
|
189
193
|
spotify: typeof Spotify;
|
|
190
194
|
star: typeof Star;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ThemeProp } from './types';
|
|
3
|
-
type
|
|
4
|
-
type Top = 'top center' | 'top left' | 'top right';
|
|
5
|
-
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
6
|
-
type Left = 'left center' | 'left top' | 'left bottom';
|
|
7
|
-
type Right = 'right center' | 'right top' | 'right bottom';
|
|
8
|
-
type Position = Side | Top | Bottom | Left | Right;
|
|
1
|
+
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
+
import type { As, PopPosition, ThemeProp } from './types';
|
|
3
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
9
4
|
export type TooltipProps = {
|
|
10
5
|
children?: ReactNode;
|
|
11
6
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -13,7 +8,7 @@ export type TooltipProps = {
|
|
|
13
8
|
/** The text content of the Tooltip */
|
|
14
9
|
content?: string;
|
|
15
10
|
/** The position of the Tooltip body and arrow in relation to the trigger */
|
|
16
|
-
position?:
|
|
11
|
+
position?: PopPosition;
|
|
17
12
|
/** Offset of the Tooltip from the trigger */
|
|
18
13
|
offset?: number;
|
|
19
14
|
/** zIndex of the Tooltip's portal container */
|
|
@@ -40,7 +35,7 @@ export type TooltipProps = {
|
|
|
40
35
|
afterShow?: () => void;
|
|
41
36
|
/** The function called after the Tooltip closes */
|
|
42
37
|
afterHide?: () => void;
|
|
43
|
-
};
|
|
38
|
+
} & DivProps;
|
|
44
39
|
declare const Tooltip: {
|
|
45
40
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
46
41
|
Header: import("@emotion/styled").StyledComponent<{
|
|
@@ -60,3 +60,10 @@ export type DraftEditorRef = {
|
|
|
60
60
|
insertField: (field: MergeField) => void;
|
|
61
61
|
focusAtEnd: () => void;
|
|
62
62
|
};
|
|
63
|
+
type Top = 'top center' | 'top left' | 'top right';
|
|
64
|
+
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
65
|
+
type Left = 'left center' | 'left top' | 'left bottom';
|
|
66
|
+
type Right = 'right center' | 'right top' | 'right bottom';
|
|
67
|
+
export type PopSide = 'top' | 'bottom' | 'right' | 'left';
|
|
68
|
+
export type PopPosition = PopSide | Top | Bottom | Left | Right;
|
|
69
|
+
export type ArrowAlign = 'center' | 'start' | 'end';
|
package/build/index.d.ts
CHANGED
|
@@ -522,7 +522,7 @@ type Padding = {
|
|
|
522
522
|
paddingRight?: number | string;
|
|
523
523
|
paddingLeft?: number | string;
|
|
524
524
|
};
|
|
525
|
-
type Position
|
|
525
|
+
type Position = {
|
|
526
526
|
position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed';
|
|
527
527
|
top?: number | string;
|
|
528
528
|
bottom?: number | string;
|
|
@@ -568,6 +568,12 @@ type DraftEditorRef = {
|
|
|
568
568
|
insertField: (field: MergeField$1) => void;
|
|
569
569
|
focusAtEnd: () => void;
|
|
570
570
|
};
|
|
571
|
+
type Top = 'top center' | 'top left' | 'top right';
|
|
572
|
+
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
573
|
+
type Left = 'left center' | 'left top' | 'left bottom';
|
|
574
|
+
type Right = 'right center' | 'right top' | 'right bottom';
|
|
575
|
+
type PopSide = 'top' | 'bottom' | 'right' | 'left';
|
|
576
|
+
type PopPosition = PopSide | Top | Bottom | Left | Right;
|
|
571
577
|
|
|
572
578
|
type TriggerProp = {
|
|
573
579
|
reversed?: boolean;
|
|
@@ -915,6 +921,7 @@ declare const icons: {
|
|
|
915
921
|
card: typeof Card;
|
|
916
922
|
'caret-down': typeof CaretDown;
|
|
917
923
|
'caret-up': typeof CaretUp;
|
|
924
|
+
check: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
918
925
|
'check-circle': typeof CheckCircle;
|
|
919
926
|
'check-circle-outline': typeof CheckCircleOutline;
|
|
920
927
|
checkbox: typeof Checkbox$1;
|
|
@@ -981,9 +988,12 @@ declare const icons: {
|
|
|
981
988
|
rocket: typeof Rocket;
|
|
982
989
|
schedule: typeof Schedule;
|
|
983
990
|
'schedule-outline': typeof ScheduleOutline;
|
|
991
|
+
screenshot: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
984
992
|
search: typeof Search;
|
|
985
993
|
settings: typeof Settings;
|
|
986
994
|
share: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
995
|
+
'shield-check': (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
996
|
+
'shield-slash': (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
987
997
|
sort: typeof Sort;
|
|
988
998
|
spotify: typeof Spotify;
|
|
989
999
|
star: typeof Star;
|
|
@@ -1117,12 +1127,7 @@ type ButtonComponentProps = {
|
|
|
1117
1127
|
joined?: never;
|
|
1118
1128
|
} & BasicButtonProps & DropdownProps$2 & Margin;
|
|
1119
1129
|
|
|
1120
|
-
type
|
|
1121
|
-
type Top = 'top center' | 'top left' | 'top right';
|
|
1122
|
-
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
1123
|
-
type Left = 'left center' | 'left top' | 'left bottom';
|
|
1124
|
-
type Right = 'right center' | 'right top' | 'right bottom';
|
|
1125
|
-
type Position = Side | Top | Bottom | Left | Right;
|
|
1130
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1126
1131
|
type TooltipProps = {
|
|
1127
1132
|
children?: ReactNode;
|
|
1128
1133
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -1130,7 +1135,7 @@ type TooltipProps = {
|
|
|
1130
1135
|
/** The text content of the Tooltip */
|
|
1131
1136
|
content?: string;
|
|
1132
1137
|
/** The position of the Tooltip body and arrow in relation to the trigger */
|
|
1133
|
-
position?:
|
|
1138
|
+
position?: PopPosition;
|
|
1134
1139
|
/** Offset of the Tooltip from the trigger */
|
|
1135
1140
|
offset?: number;
|
|
1136
1141
|
/** zIndex of the Tooltip's portal container */
|
|
@@ -1157,7 +1162,7 @@ type TooltipProps = {
|
|
|
1157
1162
|
afterShow?: () => void;
|
|
1158
1163
|
/** The function called after the Tooltip closes */
|
|
1159
1164
|
afterHide?: () => void;
|
|
1160
|
-
};
|
|
1165
|
+
} & DivProps;
|
|
1161
1166
|
declare const Tooltip: {
|
|
1162
1167
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
1163
1168
|
Header: _emotion_styled.StyledComponent<{
|
|
@@ -1759,7 +1764,7 @@ declare const Form: {
|
|
|
1759
1764
|
centerX?: boolean | undefined;
|
|
1760
1765
|
offsetY?: number | undefined;
|
|
1761
1766
|
offsetX?: number | undefined;
|
|
1762
|
-
direction?: "
|
|
1767
|
+
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
1763
1768
|
fontSize?: string | number | undefined;
|
|
1764
1769
|
description?: string | undefined;
|
|
1765
1770
|
disabled?: boolean | undefined;
|
|
@@ -1774,14 +1779,14 @@ declare const Form: {
|
|
|
1774
1779
|
Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1775
1780
|
id?: string | undefined;
|
|
1776
1781
|
label?: string | undefined;
|
|
1777
|
-
labelPosition?: "
|
|
1782
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1778
1783
|
disabled?: boolean | undefined;
|
|
1779
1784
|
checked?: boolean | undefined;
|
|
1780
1785
|
} & Margin & As & HTMLProps<HTMLInputElement>) => JSX.Element;
|
|
1781
1786
|
Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1782
1787
|
id?: string | undefined;
|
|
1783
1788
|
label?: string | undefined;
|
|
1784
|
-
labelPosition?: "
|
|
1789
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1785
1790
|
disabled?: boolean | undefined;
|
|
1786
1791
|
checked?: boolean | undefined;
|
|
1787
1792
|
onChange: (val: boolean) => void;
|
|
@@ -1789,7 +1794,7 @@ declare const Form: {
|
|
|
1789
1794
|
Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1790
1795
|
id?: string | undefined;
|
|
1791
1796
|
label?: string | undefined;
|
|
1792
|
-
labelPosition?: "
|
|
1797
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1793
1798
|
disabled?: boolean | undefined;
|
|
1794
1799
|
checked?: boolean | undefined;
|
|
1795
1800
|
partial?: boolean | undefined;
|
|
@@ -2094,7 +2099,7 @@ declare const Notification: _emotion_styled.StyledComponent<{
|
|
|
2094
2099
|
size?: string | number | undefined;
|
|
2095
2100
|
/** Styles the dot to accommodate containing a number */
|
|
2096
2101
|
number?: boolean | undefined;
|
|
2097
|
-
} & ThemeProp & Margin & Position
|
|
2102
|
+
} & ThemeProp & Margin & Position, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2098
2103
|
|
|
2099
2104
|
type OptionsProps = {
|
|
2100
2105
|
children: ReactNode;
|
|
@@ -2245,7 +2250,7 @@ type SpinnerProps = {
|
|
|
2245
2250
|
background?: string | boolean;
|
|
2246
2251
|
/** If center positioned, specifies the zIndex of the spinner */
|
|
2247
2252
|
zIndex?: number;
|
|
2248
|
-
} & Margin & Position
|
|
2253
|
+
} & Margin & Position;
|
|
2249
2254
|
declare const Spinner: ({ size, color, center, background, zIndex, margin, marginTop, marginBottom, marginRight, marginLeft, position, top, bottom, right, left, ...props }: SpinnerProps) => JSX.Element;
|
|
2250
2255
|
|
|
2251
2256
|
type Color = ColorNames | CSSProperties['color'];
|
|
@@ -2441,7 +2446,7 @@ declare const marginProps: ({ margin, marginTop, marginBottom, marginRight, marg
|
|
|
2441
2446
|
marginRight: string | number | undefined;
|
|
2442
2447
|
marginLeft: string | number | undefined;
|
|
2443
2448
|
};
|
|
2444
|
-
declare const positionProps: ({ position, top, bottom, right, left }: Position
|
|
2449
|
+
declare const positionProps: ({ position, top, bottom, right, left }: Position) => {
|
|
2445
2450
|
position: "static" | "relative" | "absolute" | "sticky" | "fixed" | undefined;
|
|
2446
2451
|
top: string | number | undefined;
|
|
2447
2452
|
bottom: string | number | undefined;
|
|
@@ -2449,4 +2454,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position$1
|
|
|
2449
2454
|
left: string | number | undefined;
|
|
2450
2455
|
};
|
|
2451
2456
|
|
|
2452
|
-
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
|
|
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 };
|