@wavv/ui 1.7.3 → 1.8.0-beta.1
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 +13 -10
- package/build/cjs/index.js.map +1 -1
- 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/DropdownMenu.d.ts +63 -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/cjs/types/index.d.ts +1 -0
- package/build/esm/index.js +13 -10
- package/build/esm/index.js.map +1 -1
- 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/DropdownMenu.d.ts +63 -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/esm/types/index.d.ts +1 -0
- package/build/index.d.ts +87 -22
- package/package.json +31 -29
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
+
import { As, FlexPosition, PopPosition } from './types';
|
|
3
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
4
|
+
type Props = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** The id of the menu container */
|
|
7
|
+
id?: string | number;
|
|
8
|
+
/** The position of the menu body and arrow in relation to the trigger */
|
|
9
|
+
position?: PopPosition;
|
|
10
|
+
/** The element that will trigger the opening of the menu */
|
|
11
|
+
trigger: ReactNode;
|
|
12
|
+
/** Controls the open state of the menu */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Offset of the menu from the trigger */
|
|
15
|
+
offset?: number;
|
|
16
|
+
/** Controls the visibility of the the menu arrow */
|
|
17
|
+
arrow?: boolean;
|
|
18
|
+
/** The width of the menu */
|
|
19
|
+
width?: number | string;
|
|
20
|
+
/** Overrides the default maxHeight of 200px */
|
|
21
|
+
maxHeight?: number;
|
|
22
|
+
/** Specify a container element to portal the content into */
|
|
23
|
+
container?: HTMLElement;
|
|
24
|
+
/** zIndex of the menu's portal container */
|
|
25
|
+
zIndex?: number;
|
|
26
|
+
/** The function called after the menu opens */
|
|
27
|
+
afterShow?: () => void;
|
|
28
|
+
/** The function called after the menu closes */
|
|
29
|
+
afterHide?: () => void;
|
|
30
|
+
} & DivProps;
|
|
31
|
+
declare const DropdownMenu: {
|
|
32
|
+
({ children, id, position, trigger, open, offset, arrow, width, maxHeight, container, zIndex, afterShow, afterHide, ...props }: Props): JSX.Element;
|
|
33
|
+
Item({ children, id, disabled, onClick, ...props }: ItemProps): JSX.Element;
|
|
34
|
+
Sub({ children, id, label, zIndex, disabled, container, ...props }: SubProps): JSX.Element;
|
|
35
|
+
Separator(): JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
type BaseItemProps = {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type ItemProps = {
|
|
42
|
+
/** The id of the item */
|
|
43
|
+
id?: string;
|
|
44
|
+
/** The function to be called when the item is clicked */
|
|
45
|
+
onClick: (event: Event) => void;
|
|
46
|
+
/** The flex positioning of the item contents */
|
|
47
|
+
contentPosition?: FlexPosition;
|
|
48
|
+
/** The color of the item text */
|
|
49
|
+
color?: string;
|
|
50
|
+
/** Sets the item text color to theme.accent */
|
|
51
|
+
accented?: boolean;
|
|
52
|
+
} & BaseItemProps;
|
|
53
|
+
type SubProps = {
|
|
54
|
+
/** The id of the sub menu's content container */
|
|
55
|
+
id?: string;
|
|
56
|
+
/** The text or element to display as the sub menu item's trigger */
|
|
57
|
+
label: string | ReactNode;
|
|
58
|
+
/** zIndex of the sub menu's portal container */
|
|
59
|
+
zIndex?: number;
|
|
60
|
+
/** Specify a container element to portal the sub menu content into */
|
|
61
|
+
container?: HTMLElement;
|
|
62
|
+
} & BaseItemProps;
|
|
63
|
+
export default DropdownMenu;
|
|
@@ -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';
|
|
@@ -8,6 +8,7 @@ export { default as Code } from './components/Code';
|
|
|
8
8
|
export { default as DocTable } from './components/DocTable';
|
|
9
9
|
export { default as DraftEditor } from './components/DraftEditor';
|
|
10
10
|
export { default as Dropdown } from './components/Dropdown';
|
|
11
|
+
export { default as DropdownMenu } from './components/DropdownMenu';
|
|
11
12
|
export { default as Form } from './components/Form';
|
|
12
13
|
export { default as Grid } from './components/Grid';
|
|
13
14
|
export { default as Icon } from './components/Icon';
|
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;
|
|
@@ -596,9 +602,9 @@ type AccordionProps = {
|
|
|
596
602
|
} & Margin;
|
|
597
603
|
declare const Accordion: {
|
|
598
604
|
({ children, defaultItem, preventCollapse, triggers, spaced, background, innerBackground, width, maxHeight, height, ...rest }: AccordionProps): JSX.Element;
|
|
599
|
-
Item({ children, id, text, content, trigger, spaced, background, innerBackground }: ItemProps$
|
|
605
|
+
Item({ children, id, text, content, trigger, spaced, background, innerBackground }: ItemProps$2): JSX.Element;
|
|
600
606
|
};
|
|
601
|
-
type ItemProps$
|
|
607
|
+
type ItemProps$2 = {
|
|
602
608
|
/** The id of the Item */
|
|
603
609
|
id: string;
|
|
604
610
|
/** The text to display on the Item */
|
|
@@ -658,11 +664,11 @@ type ChartProps = {
|
|
|
658
664
|
responsive?: boolean;
|
|
659
665
|
} & Margin & WidthHeight;
|
|
660
666
|
|
|
661
|
-
type Props$
|
|
667
|
+
type Props$3 = {
|
|
662
668
|
/** Stacks multiple data points within a single bar */
|
|
663
669
|
stacked?: boolean;
|
|
664
670
|
} & ChartProps;
|
|
665
|
-
declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props$
|
|
671
|
+
declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props$3) => JSX.Element;
|
|
666
672
|
|
|
667
673
|
type OptionItem = {
|
|
668
674
|
id: number | string;
|
|
@@ -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,13 +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;
|
|
1126
|
-
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1130
|
+
type DivProps$1 = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1127
1131
|
type TooltipProps = {
|
|
1128
1132
|
children?: ReactNode;
|
|
1129
1133
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -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 */
|
|
@@ -1158,7 +1162,7 @@ type TooltipProps = {
|
|
|
1158
1162
|
afterShow?: () => void;
|
|
1159
1163
|
/** The function called after the Tooltip closes */
|
|
1160
1164
|
afterHide?: () => void;
|
|
1161
|
-
} & DivProps;
|
|
1165
|
+
} & DivProps$1;
|
|
1162
1166
|
declare const Tooltip: {
|
|
1163
1167
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
1164
1168
|
Header: _emotion_styled.StyledComponent<{
|
|
@@ -1602,6 +1606,67 @@ declare const Dropdown: {
|
|
|
1602
1606
|
Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): JSX.Element;
|
|
1603
1607
|
};
|
|
1604
1608
|
|
|
1609
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1610
|
+
type Props$2 = {
|
|
1611
|
+
children: ReactNode;
|
|
1612
|
+
/** The id of the menu container */
|
|
1613
|
+
id?: string | number;
|
|
1614
|
+
/** The position of the menu body and arrow in relation to the trigger */
|
|
1615
|
+
position?: PopPosition;
|
|
1616
|
+
/** The element that will trigger the opening of the menu */
|
|
1617
|
+
trigger: ReactNode;
|
|
1618
|
+
/** Controls the open state of the menu */
|
|
1619
|
+
open?: boolean;
|
|
1620
|
+
/** Offset of the menu from the trigger */
|
|
1621
|
+
offset?: number;
|
|
1622
|
+
/** Controls the visibility of the the menu arrow */
|
|
1623
|
+
arrow?: boolean;
|
|
1624
|
+
/** The width of the menu */
|
|
1625
|
+
width?: number | string;
|
|
1626
|
+
/** Overrides the default maxHeight of 200px */
|
|
1627
|
+
maxHeight?: number;
|
|
1628
|
+
/** Specify a container element to portal the content into */
|
|
1629
|
+
container?: HTMLElement;
|
|
1630
|
+
/** zIndex of the menu's portal container */
|
|
1631
|
+
zIndex?: number;
|
|
1632
|
+
/** The function called after the menu opens */
|
|
1633
|
+
afterShow?: () => void;
|
|
1634
|
+
/** The function called after the menu closes */
|
|
1635
|
+
afterHide?: () => void;
|
|
1636
|
+
} & DivProps;
|
|
1637
|
+
declare const DropdownMenu: {
|
|
1638
|
+
({ children, id, position, trigger, open, offset, arrow, width, maxHeight, container, zIndex, afterShow, afterHide, ...props }: Props$2): JSX.Element;
|
|
1639
|
+
Item({ children, id, disabled, onClick, ...props }: ItemProps$1): JSX.Element;
|
|
1640
|
+
Sub({ children, id, label, zIndex, disabled, container, ...props }: SubProps): JSX.Element;
|
|
1641
|
+
Separator(): JSX.Element;
|
|
1642
|
+
};
|
|
1643
|
+
type BaseItemProps = {
|
|
1644
|
+
children: ReactNode;
|
|
1645
|
+
disabled?: boolean;
|
|
1646
|
+
};
|
|
1647
|
+
type ItemProps$1 = {
|
|
1648
|
+
/** The id of the item */
|
|
1649
|
+
id?: string;
|
|
1650
|
+
/** The function to be called when the item is clicked */
|
|
1651
|
+
onClick: (event: Event) => void;
|
|
1652
|
+
/** The flex positioning of the item contents */
|
|
1653
|
+
contentPosition?: FlexPosition;
|
|
1654
|
+
/** The color of the item text */
|
|
1655
|
+
color?: string;
|
|
1656
|
+
/** Sets the item text color to theme.accent */
|
|
1657
|
+
accented?: boolean;
|
|
1658
|
+
} & BaseItemProps;
|
|
1659
|
+
type SubProps = {
|
|
1660
|
+
/** The id of the sub menu's content container */
|
|
1661
|
+
id?: string;
|
|
1662
|
+
/** The text or element to display as the sub menu item's trigger */
|
|
1663
|
+
label: string | ReactNode;
|
|
1664
|
+
/** zIndex of the sub menu's portal container */
|
|
1665
|
+
zIndex?: number;
|
|
1666
|
+
/** Specify a container element to portal the sub menu content into */
|
|
1667
|
+
container?: HTMLElement;
|
|
1668
|
+
} & BaseItemProps;
|
|
1669
|
+
|
|
1605
1670
|
type GridProps = {
|
|
1606
1671
|
/** If a number, rows creates n number rows of an equal size. If a string, rows sets the gridTemplateRows property */
|
|
1607
1672
|
rows?: string | number;
|
|
@@ -1760,7 +1825,7 @@ declare const Form: {
|
|
|
1760
1825
|
centerX?: boolean | undefined;
|
|
1761
1826
|
offsetY?: number | undefined;
|
|
1762
1827
|
offsetX?: number | undefined;
|
|
1763
|
-
direction?: "
|
|
1828
|
+
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
1764
1829
|
fontSize?: string | number | undefined;
|
|
1765
1830
|
description?: string | undefined;
|
|
1766
1831
|
disabled?: boolean | undefined;
|
|
@@ -1775,14 +1840,14 @@ declare const Form: {
|
|
|
1775
1840
|
Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1776
1841
|
id?: string | undefined;
|
|
1777
1842
|
label?: string | undefined;
|
|
1778
|
-
labelPosition?: "
|
|
1843
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1779
1844
|
disabled?: boolean | undefined;
|
|
1780
1845
|
checked?: boolean | undefined;
|
|
1781
1846
|
} & Margin & As & HTMLProps<HTMLInputElement>) => JSX.Element;
|
|
1782
1847
|
Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1783
1848
|
id?: string | undefined;
|
|
1784
1849
|
label?: string | undefined;
|
|
1785
|
-
labelPosition?: "
|
|
1850
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1786
1851
|
disabled?: boolean | undefined;
|
|
1787
1852
|
checked?: boolean | undefined;
|
|
1788
1853
|
onChange: (val: boolean) => void;
|
|
@@ -1790,7 +1855,7 @@ declare const Form: {
|
|
|
1790
1855
|
Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
|
|
1791
1856
|
id?: string | undefined;
|
|
1792
1857
|
label?: string | undefined;
|
|
1793
|
-
labelPosition?: "
|
|
1858
|
+
labelPosition?: "right" | "left" | undefined;
|
|
1794
1859
|
disabled?: boolean | undefined;
|
|
1795
1860
|
checked?: boolean | undefined;
|
|
1796
1861
|
partial?: boolean | undefined;
|
|
@@ -2095,7 +2160,7 @@ declare const Notification: _emotion_styled.StyledComponent<{
|
|
|
2095
2160
|
size?: string | number | undefined;
|
|
2096
2161
|
/** Styles the dot to accommodate containing a number */
|
|
2097
2162
|
number?: boolean | undefined;
|
|
2098
|
-
} & ThemeProp & Margin & Position
|
|
2163
|
+
} & ThemeProp & Margin & Position, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2099
2164
|
|
|
2100
2165
|
type OptionsProps = {
|
|
2101
2166
|
children: ReactNode;
|
|
@@ -2246,7 +2311,7 @@ type SpinnerProps = {
|
|
|
2246
2311
|
background?: string | boolean;
|
|
2247
2312
|
/** If center positioned, specifies the zIndex of the spinner */
|
|
2248
2313
|
zIndex?: number;
|
|
2249
|
-
} & Margin & Position
|
|
2314
|
+
} & Margin & Position;
|
|
2250
2315
|
declare const Spinner: ({ size, color, center, background, zIndex, margin, marginTop, marginBottom, marginRight, marginLeft, position, top, bottom, right, left, ...props }: SpinnerProps) => JSX.Element;
|
|
2251
2316
|
|
|
2252
2317
|
type Color = ColorNames | CSSProperties['color'];
|
|
@@ -2442,7 +2507,7 @@ declare const marginProps: ({ margin, marginTop, marginBottom, marginRight, marg
|
|
|
2442
2507
|
marginRight: string | number | undefined;
|
|
2443
2508
|
marginLeft: string | number | undefined;
|
|
2444
2509
|
};
|
|
2445
|
-
declare const positionProps: ({ position, top, bottom, right, left }: Position
|
|
2510
|
+
declare const positionProps: ({ position, top, bottom, right, left }: Position) => {
|
|
2446
2511
|
position: "static" | "relative" | "absolute" | "sticky" | "fixed" | undefined;
|
|
2447
2512
|
top: string | number | undefined;
|
|
2448
2513
|
bottom: string | number | undefined;
|
|
@@ -2450,4 +2515,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position$1
|
|
|
2450
2515
|
left: string | number | undefined;
|
|
2451
2516
|
};
|
|
2452
2517
|
|
|
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
|
|
2518
|
+
export { Accordion, As, Audio, AudioRef, BarChart, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, DraftEditorRef, Dropdown, DropdownMenu, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"build/**/*"
|
|
6
6
|
],
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/styled": "^11.10.6",
|
|
23
23
|
"@radix-ui/react-accordion": "^1.1.1",
|
|
24
|
+
"@radix-ui/react-dropdown-menu": "^2.0.4",
|
|
25
|
+
"@radix-ui/react-select": "^1.2.1",
|
|
24
26
|
"@radix-ui/react-tooltip": "^1.0.5",
|
|
25
27
|
"@react-hook/resize-observer": "^1.2.6",
|
|
26
28
|
"date-fns": "^2.29.3",
|
|
@@ -36,47 +38,47 @@
|
|
|
36
38
|
"webfontloader": "^1.6.28"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "^7.21.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
41
|
-
"@babel/preset-typescript": "^7.21.
|
|
41
|
+
"@babel/core": "^7.21.4",
|
|
42
|
+
"@babel/preset-env": "^7.21.4",
|
|
43
|
+
"@babel/preset-typescript": "^7.21.4",
|
|
42
44
|
"@emotion/babel-plugin": "^11.10.6",
|
|
43
45
|
"@emotion/babel-preset-css-prop": "^11.10.0",
|
|
44
46
|
"@emotion/react": "^11.10.6",
|
|
45
47
|
"@mdx-js/react": "^2.2.1",
|
|
46
48
|
"@mdx-js/rollup": "^2.2.1",
|
|
47
|
-
"@rollup/plugin-commonjs": "^24.
|
|
48
|
-
"@rollup/plugin-node-resolve": "^15.0.
|
|
49
|
-
"@rollup/plugin-terser": "^0.
|
|
50
|
-
"@rollup/plugin-typescript": "^
|
|
49
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
51
|
+
"@rollup/plugin-terser": "^0.4.1",
|
|
52
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
51
53
|
"@svgr/core": "^6.5.1",
|
|
52
54
|
"@svgr/plugin-jsx": "^6.5.1",
|
|
53
55
|
"@svgr/plugin-prettier": "^6.5.1",
|
|
54
56
|
"@types/dashify": "^1.0.1",
|
|
55
57
|
"@types/draft-js": "^0.11.10",
|
|
56
|
-
"@types/jest": "^29.5.
|
|
57
|
-
"@types/lodash": "^4.14.
|
|
58
|
+
"@types/jest": "^29.5.1",
|
|
59
|
+
"@types/lodash": "^4.14.194",
|
|
58
60
|
"@types/ncp": "^2.0.5",
|
|
59
|
-
"@types/node": "^18.
|
|
60
|
-
"@types/prompts": "^2.4.
|
|
61
|
+
"@types/node": "^18.16.0",
|
|
62
|
+
"@types/prompts": "^2.4.4",
|
|
61
63
|
"@types/randomcolor": "^0.5.7",
|
|
62
|
-
"@types/react": "^18.0
|
|
63
|
-
"@types/react-dom": "^18.0
|
|
64
|
+
"@types/react": "^18.2.0",
|
|
65
|
+
"@types/react-dom": "^18.2.0",
|
|
64
66
|
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
65
67
|
"@types/signale": "^1.4.4",
|
|
66
68
|
"@types/uuid": "^9.0.1",
|
|
67
69
|
"@types/webfontloader": "^1.6.35",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
69
|
-
"@typescript-eslint/parser": "^5.
|
|
70
|
-
"@vitejs/plugin-react": "^
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
71
|
+
"@typescript-eslint/parser": "^5.59.1",
|
|
72
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
71
73
|
"babel-plugin-lodash": "^3.3.4",
|
|
72
74
|
"chalk": "^5.2.0",
|
|
73
75
|
"dashify": "^2.0.0",
|
|
74
|
-
"eslint": "^8.
|
|
76
|
+
"eslint": "^8.39.0",
|
|
75
77
|
"eslint-config-airbnb": "^19.0.4",
|
|
76
78
|
"eslint-config-prettier": "^8.8.0",
|
|
77
79
|
"eslint-config-storm": "^1.0.3",
|
|
78
80
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
79
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
81
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
80
82
|
"eslint-plugin-import": "^2.25.4",
|
|
81
83
|
"eslint-plugin-jest": "^27.1.7",
|
|
82
84
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
@@ -85,32 +87,32 @@
|
|
|
85
87
|
"esm": "^3.2.25",
|
|
86
88
|
"husky": "^8.0.2",
|
|
87
89
|
"jest": "^29.5.0",
|
|
88
|
-
"lint-staged": "^13.2.
|
|
90
|
+
"lint-staged": "^13.2.1",
|
|
89
91
|
"ncp": "^2.0.0",
|
|
90
92
|
"pascal-case": "^3.1.2",
|
|
91
93
|
"path": "^0.12.7",
|
|
92
|
-
"phone": "^3.1.
|
|
93
|
-
"postcss": "^8.4.
|
|
94
|
-
"prettier": "^2.8.
|
|
94
|
+
"phone": "^3.1.37",
|
|
95
|
+
"postcss": "^8.4.23",
|
|
96
|
+
"prettier": "^2.8.8",
|
|
95
97
|
"prompts": "^2.4.2",
|
|
96
98
|
"randomcolor": "^0.6.2",
|
|
97
99
|
"react": "^18.2.0",
|
|
98
100
|
"react-dom": "^18.2.0",
|
|
99
|
-
"react-ga4": "^1.
|
|
101
|
+
"react-ga4": "^2.1.0",
|
|
100
102
|
"react-helmet-async": "^1.3.0",
|
|
101
|
-
"react-router-dom": "^6.
|
|
103
|
+
"react-router-dom": "^6.10.0",
|
|
102
104
|
"react-toastify": "^9.1.2",
|
|
103
105
|
"remark-gfm": "^3.0.1",
|
|
104
106
|
"replace": "^1.2.2",
|
|
105
|
-
"rollup": "^3.
|
|
106
|
-
"rollup-plugin-dts": "^5.
|
|
107
|
+
"rollup": "^3.21.0",
|
|
108
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
107
109
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
110
|
"rollup-plugin-postcss": "^4.0.2",
|
|
109
111
|
"signale": "^1.4.0",
|
|
110
112
|
"ts-node": "^10.9.1",
|
|
111
113
|
"tslib": "^2.4.1",
|
|
112
|
-
"typescript": "^
|
|
113
|
-
"vite": "^4.
|
|
114
|
+
"typescript": "^5.0.4",
|
|
115
|
+
"vite": "^4.3.2",
|
|
114
116
|
"vite-plugin-eslint": "^1.8.1",
|
|
115
117
|
"vite-plugin-svgr": "^2.4.0"
|
|
116
118
|
},
|