@wavv/ui 1.7.3 → 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 +2 -8
- 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 +2 -8
- 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 +20 -16
- 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,5 @@
|
|
|
1
1
|
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
-
import type { As, ThemeProp } from './types';
|
|
3
|
-
type Side = 'top' | 'bottom' | 'right' | 'left';
|
|
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;
|
|
2
|
+
import type { As, PopPosition, ThemeProp } from './types';
|
|
9
3
|
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
10
4
|
export type TooltipProps = {
|
|
11
5
|
children?: ReactNode;
|
|
@@ -14,7 +8,7 @@ export type TooltipProps = {
|
|
|
14
8
|
/** The text content of the Tooltip */
|
|
15
9
|
content?: string;
|
|
16
10
|
/** The position of the Tooltip body and arrow in relation to the trigger */
|
|
17
|
-
position?:
|
|
11
|
+
position?: PopPosition;
|
|
18
12
|
/** Offset of the Tooltip from the trigger */
|
|
19
13
|
offset?: number;
|
|
20
14
|
/** zIndex of the Tooltip's portal container */
|
|
@@ -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,6 @@ type ButtonComponentProps = {
|
|
|
1117
1127
|
joined?: never;
|
|
1118
1128
|
} & BasicButtonProps & DropdownProps$2 & Margin;
|
|
1119
1129
|
|
|
1120
|
-
type Side = 'top' | 'bottom' | 'right' | 'left';
|
|
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;
|
|
1126
1130
|
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1127
1131
|
type TooltipProps = {
|
|
1128
1132
|
children?: ReactNode;
|
|
@@ -1131,7 +1135,7 @@ type TooltipProps = {
|
|
|
1131
1135
|
/** The text content of the Tooltip */
|
|
1132
1136
|
content?: string;
|
|
1133
1137
|
/** The position of the Tooltip body and arrow in relation to the trigger */
|
|
1134
|
-
position?:
|
|
1138
|
+
position?: PopPosition;
|
|
1135
1139
|
/** Offset of the Tooltip from the trigger */
|
|
1136
1140
|
offset?: number;
|
|
1137
1141
|
/** zIndex of the Tooltip's portal container */
|
|
@@ -1760,7 +1764,7 @@ declare const Form: {
|
|
|
1760
1764
|
centerX?: boolean | undefined;
|
|
1761
1765
|
offsetY?: number | undefined;
|
|
1762
1766
|
offsetX?: number | undefined;
|
|
1763
|
-
direction?: "
|
|
1767
|
+
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
1764
1768
|
fontSize?: string | number | undefined;
|
|
1765
1769
|
description?: string | undefined;
|
|
1766
1770
|
disabled?: boolean | undefined;
|
|
@@ -1775,14 +1779,14 @@ declare const Form: {
|
|
|
1775
1779
|
Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1776
1780
|
id?: string | undefined;
|
|
1777
1781
|
label?: string | undefined;
|
|
1778
|
-
labelPosition?: "
|
|
1782
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1779
1783
|
disabled?: boolean | undefined;
|
|
1780
1784
|
checked?: boolean | undefined;
|
|
1781
1785
|
} & Margin & As & HTMLProps<HTMLInputElement>) => JSX.Element;
|
|
1782
1786
|
Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1783
1787
|
id?: string | undefined;
|
|
1784
1788
|
label?: string | undefined;
|
|
1785
|
-
labelPosition?: "
|
|
1789
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1786
1790
|
disabled?: boolean | undefined;
|
|
1787
1791
|
checked?: boolean | undefined;
|
|
1788
1792
|
onChange: (val: boolean) => void;
|
|
@@ -1790,7 +1794,7 @@ declare const Form: {
|
|
|
1790
1794
|
Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1791
1795
|
id?: string | undefined;
|
|
1792
1796
|
label?: string | undefined;
|
|
1793
|
-
labelPosition?: "
|
|
1797
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1794
1798
|
disabled?: boolean | undefined;
|
|
1795
1799
|
checked?: boolean | undefined;
|
|
1796
1800
|
partial?: boolean | undefined;
|
|
@@ -2095,7 +2099,7 @@ declare const Notification: _emotion_styled.StyledComponent<{
|
|
|
2095
2099
|
size?: string | number | undefined;
|
|
2096
2100
|
/** Styles the dot to accommodate containing a number */
|
|
2097
2101
|
number?: boolean | undefined;
|
|
2098
|
-
} & ThemeProp & Margin & Position
|
|
2102
|
+
} & ThemeProp & Margin & Position, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2099
2103
|
|
|
2100
2104
|
type OptionsProps = {
|
|
2101
2105
|
children: ReactNode;
|
|
@@ -2246,7 +2250,7 @@ type SpinnerProps = {
|
|
|
2246
2250
|
background?: string | boolean;
|
|
2247
2251
|
/** If center positioned, specifies the zIndex of the spinner */
|
|
2248
2252
|
zIndex?: number;
|
|
2249
|
-
} & Margin & Position
|
|
2253
|
+
} & Margin & Position;
|
|
2250
2254
|
declare const Spinner: ({ size, color, center, background, zIndex, margin, marginTop, marginBottom, marginRight, marginLeft, position, top, bottom, right, left, ...props }: SpinnerProps) => JSX.Element;
|
|
2251
2255
|
|
|
2252
2256
|
type Color = ColorNames | CSSProperties['color'];
|
|
@@ -2442,7 +2446,7 @@ declare const marginProps: ({ margin, marginTop, marginBottom, marginRight, marg
|
|
|
2442
2446
|
marginRight: string | number | undefined;
|
|
2443
2447
|
marginLeft: string | number | undefined;
|
|
2444
2448
|
};
|
|
2445
|
-
declare const positionProps: ({ position, top, bottom, right, left }: Position
|
|
2449
|
+
declare const positionProps: ({ position, top, bottom, right, left }: Position) => {
|
|
2446
2450
|
position: "static" | "relative" | "absolute" | "sticky" | "fixed" | undefined;
|
|
2447
2451
|
top: string | number | undefined;
|
|
2448
2452
|
bottom: string | number | undefined;
|
|
@@ -2450,4 +2454,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position$1
|
|
|
2450
2454
|
left: string | number | undefined;
|
|
2451
2455
|
};
|
|
2452
2456
|
|
|
2453
|
-
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 };
|