@wavv/ui 1.7.4 → 1.8.0-beta.2
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 +21 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/assets/icons/Screenshot.d.ts +2 -2
- package/build/cjs/types/assets/icons/ShieldCheck.d.ts +2 -2
- package/build/cjs/types/assets/icons/ShieldSlash.d.ts +2 -2
- package/build/cjs/types/components/Dropdown/Dropdown.d.ts +2 -12
- package/build/cjs/types/components/Dropdown/DropdownUtils.d.ts +1 -1
- package/build/cjs/types/components/DropdownMenu.d.ts +63 -0
- package/build/cjs/types/components/Form.d.ts +2 -7
- package/build/cjs/types/index.d.ts +1 -0
- package/build/esm/index.js +21 -18
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/assets/icons/Screenshot.d.ts +2 -2
- package/build/esm/types/assets/icons/ShieldCheck.d.ts +2 -2
- package/build/esm/types/assets/icons/ShieldSlash.d.ts +2 -2
- package/build/esm/types/components/Dropdown/Dropdown.d.ts +2 -12
- package/build/esm/types/components/Dropdown/DropdownUtils.d.ts +1 -1
- package/build/esm/types/components/DropdownMenu.d.ts +63 -0
- package/build/esm/types/components/Form.d.ts +2 -7
- package/build/esm/types/index.d.ts +1 -0
- package/build/index.d.ts +73 -27
- package/package.json +32 -29
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const Screenshot: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Screenshot: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
export default Screenshot;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const ShieldCheck: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const ShieldCheck: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
export default ShieldCheck;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const ShieldSlash: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const ShieldSlash: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
export default ShieldSlash;
|
|
@@ -49,18 +49,8 @@ type DropdownProps<OptionType> = {
|
|
|
49
49
|
id?: string;
|
|
50
50
|
/** Sets the name of the Dropdown input */
|
|
51
51
|
name?: string;
|
|
52
|
-
/** An HTML element/React component to trigger the opening and closing of the dropdown instead of an input */
|
|
53
|
-
trigger?: ReactNode;
|
|
54
|
-
/** Center the Dropdown options vertically with the trigger */
|
|
55
|
-
centerY?: boolean;
|
|
56
|
-
/** Center the Dropdown options horizontally with the trigger */
|
|
57
|
-
centerX?: boolean;
|
|
58
|
-
/** Pixel amount the Dropdown options are offset vertically from the trigger */
|
|
59
|
-
offsetY?: number;
|
|
60
|
-
/** Pixel amount the Dropdown options are offset horizontally from the trigger */
|
|
61
|
-
offsetX?: number;
|
|
62
52
|
/** The direction the options should open in relation to the trigger */
|
|
63
|
-
direction?: '
|
|
53
|
+
direction?: 'top' | 'bottom';
|
|
64
54
|
/** Sets the Dropdown fontSize */
|
|
65
55
|
fontSize?: number | string;
|
|
66
56
|
/** Places a description message below the Dropdown */
|
|
@@ -79,7 +69,7 @@ type DropdownProps<OptionType> = {
|
|
|
79
69
|
optionsParent?: string;
|
|
80
70
|
} & WidthHeight & Margin & RestInputProps;
|
|
81
71
|
declare const Dropdown: {
|
|
82
|
-
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name,
|
|
72
|
+
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: DropdownProps<OptionType>): JSX.Element;
|
|
83
73
|
Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): JSX.Element;
|
|
84
74
|
};
|
|
85
75
|
export default Dropdown;
|
|
@@ -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;
|
|
@@ -77,7 +77,7 @@ declare const Form: {
|
|
|
77
77
|
onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
|
|
78
78
|
} & import("./types").Margin, "ref">) & import("react").RefAttributes<import("./types").InputRef>>;
|
|
79
79
|
Dropdown: {
|
|
80
|
-
<OptionType extends import("./Dropdown").DropdownOption>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name,
|
|
80
|
+
<OptionType extends import("./Dropdown").DropdownOption>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
|
|
81
81
|
children?: ReactNode;
|
|
82
82
|
onChange?: ((item: OptionType | null) => void) | undefined;
|
|
83
83
|
onTextChange?: ((text: string) => void) | undefined;
|
|
@@ -101,12 +101,7 @@ declare const Form: {
|
|
|
101
101
|
label?: string | undefined;
|
|
102
102
|
id?: string | undefined;
|
|
103
103
|
name?: string | undefined;
|
|
104
|
-
|
|
105
|
-
centerY?: boolean | undefined;
|
|
106
|
-
centerX?: boolean | undefined;
|
|
107
|
-
offsetY?: number | undefined;
|
|
108
|
-
offsetX?: number | undefined;
|
|
109
|
-
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
104
|
+
direction?: "top" | "bottom" | undefined;
|
|
110
105
|
fontSize?: string | number | undefined;
|
|
111
106
|
description?: string | undefined;
|
|
112
107
|
disabled?: boolean | undefined;
|
|
@@ -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
|
@@ -602,9 +602,9 @@ type AccordionProps = {
|
|
|
602
602
|
} & Margin;
|
|
603
603
|
declare const Accordion: {
|
|
604
604
|
({ children, defaultItem, preventCollapse, triggers, spaced, background, innerBackground, width, maxHeight, height, ...rest }: AccordionProps): JSX.Element;
|
|
605
|
-
Item({ children, id, text, content, trigger, spaced, background, innerBackground }: ItemProps$
|
|
605
|
+
Item({ children, id, text, content, trigger, spaced, background, innerBackground }: ItemProps$2): JSX.Element;
|
|
606
606
|
};
|
|
607
|
-
type ItemProps$
|
|
607
|
+
type ItemProps$2 = {
|
|
608
608
|
/** The id of the Item */
|
|
609
609
|
id: string;
|
|
610
610
|
/** The text to display on the Item */
|
|
@@ -664,11 +664,11 @@ type ChartProps = {
|
|
|
664
664
|
responsive?: boolean;
|
|
665
665
|
} & Margin & WidthHeight;
|
|
666
666
|
|
|
667
|
-
type Props$
|
|
667
|
+
type Props$3 = {
|
|
668
668
|
/** Stacks multiple data points within a single bar */
|
|
669
669
|
stacked?: boolean;
|
|
670
670
|
} & ChartProps;
|
|
671
|
-
declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props$
|
|
671
|
+
declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props$3) => JSX.Element;
|
|
672
672
|
|
|
673
673
|
type OptionItem = {
|
|
674
674
|
id: number | string;
|
|
@@ -677,7 +677,7 @@ type OptionItem = {
|
|
|
677
677
|
body?: string;
|
|
678
678
|
leftElement?: ReactElement;
|
|
679
679
|
rightElement?: ReactElement;
|
|
680
|
-
onClick?: (event?: MouseEvent$1) => void;
|
|
680
|
+
onClick?: (event?: MouseEvent$1 | Event) => void;
|
|
681
681
|
value?: unknown;
|
|
682
682
|
[key: string]: unknown;
|
|
683
683
|
};
|
|
@@ -1127,7 +1127,7 @@ type ButtonComponentProps = {
|
|
|
1127
1127
|
joined?: never;
|
|
1128
1128
|
} & BasicButtonProps & DropdownProps$2 & Margin;
|
|
1129
1129
|
|
|
1130
|
-
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1130
|
+
type DivProps$1 = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1131
1131
|
type TooltipProps = {
|
|
1132
1132
|
children?: ReactNode;
|
|
1133
1133
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -1162,7 +1162,7 @@ type TooltipProps = {
|
|
|
1162
1162
|
afterShow?: () => void;
|
|
1163
1163
|
/** The function called after the Tooltip closes */
|
|
1164
1164
|
afterHide?: () => void;
|
|
1165
|
-
} & DivProps;
|
|
1165
|
+
} & DivProps$1;
|
|
1166
1166
|
declare const Tooltip: {
|
|
1167
1167
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
1168
1168
|
Header: _emotion_styled.StyledComponent<{
|
|
@@ -1572,18 +1572,8 @@ type DropdownProps$1<OptionType> = {
|
|
|
1572
1572
|
id?: string;
|
|
1573
1573
|
/** Sets the name of the Dropdown input */
|
|
1574
1574
|
name?: string;
|
|
1575
|
-
/** An HTML element/React component to trigger the opening and closing of the dropdown instead of an input */
|
|
1576
|
-
trigger?: ReactNode;
|
|
1577
|
-
/** Center the Dropdown options vertically with the trigger */
|
|
1578
|
-
centerY?: boolean;
|
|
1579
|
-
/** Center the Dropdown options horizontally with the trigger */
|
|
1580
|
-
centerX?: boolean;
|
|
1581
|
-
/** Pixel amount the Dropdown options are offset vertically from the trigger */
|
|
1582
|
-
offsetY?: number;
|
|
1583
|
-
/** Pixel amount the Dropdown options are offset horizontally from the trigger */
|
|
1584
|
-
offsetX?: number;
|
|
1585
1575
|
/** The direction the options should open in relation to the trigger */
|
|
1586
|
-
direction?: '
|
|
1576
|
+
direction?: 'top' | 'bottom';
|
|
1587
1577
|
/** Sets the Dropdown fontSize */
|
|
1588
1578
|
fontSize?: number | string;
|
|
1589
1579
|
/** Places a description message below the Dropdown */
|
|
@@ -1602,10 +1592,71 @@ type DropdownProps$1<OptionType> = {
|
|
|
1602
1592
|
optionsParent?: string;
|
|
1603
1593
|
} & WidthHeight & Margin & RestInputProps;
|
|
1604
1594
|
declare const Dropdown: {
|
|
1605
|
-
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name,
|
|
1595
|
+
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: DropdownProps$1<OptionType>): JSX.Element;
|
|
1606
1596
|
Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): JSX.Element;
|
|
1607
1597
|
};
|
|
1608
1598
|
|
|
1599
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1600
|
+
type Props$2 = {
|
|
1601
|
+
children: ReactNode;
|
|
1602
|
+
/** The id of the menu container */
|
|
1603
|
+
id?: string | number;
|
|
1604
|
+
/** The position of the menu body and arrow in relation to the trigger */
|
|
1605
|
+
position?: PopPosition;
|
|
1606
|
+
/** The element that will trigger the opening of the menu */
|
|
1607
|
+
trigger: ReactNode;
|
|
1608
|
+
/** Controls the open state of the menu */
|
|
1609
|
+
open?: boolean;
|
|
1610
|
+
/** Offset of the menu from the trigger */
|
|
1611
|
+
offset?: number;
|
|
1612
|
+
/** Controls the visibility of the the menu arrow */
|
|
1613
|
+
arrow?: boolean;
|
|
1614
|
+
/** The width of the menu */
|
|
1615
|
+
width?: number | string;
|
|
1616
|
+
/** Overrides the default maxHeight of 200px */
|
|
1617
|
+
maxHeight?: number;
|
|
1618
|
+
/** Specify a container element to portal the content into */
|
|
1619
|
+
container?: HTMLElement;
|
|
1620
|
+
/** zIndex of the menu's portal container */
|
|
1621
|
+
zIndex?: number;
|
|
1622
|
+
/** The function called after the menu opens */
|
|
1623
|
+
afterShow?: () => void;
|
|
1624
|
+
/** The function called after the menu closes */
|
|
1625
|
+
afterHide?: () => void;
|
|
1626
|
+
} & DivProps;
|
|
1627
|
+
declare const DropdownMenu: {
|
|
1628
|
+
({ children, id, position, trigger, open, offset, arrow, width, maxHeight, container, zIndex, afterShow, afterHide, ...props }: Props$2): JSX.Element;
|
|
1629
|
+
Item({ children, id, disabled, onClick, ...props }: ItemProps$1): JSX.Element;
|
|
1630
|
+
Sub({ children, id, label, zIndex, disabled, container, ...props }: SubProps): JSX.Element;
|
|
1631
|
+
Separator(): JSX.Element;
|
|
1632
|
+
};
|
|
1633
|
+
type BaseItemProps = {
|
|
1634
|
+
children: ReactNode;
|
|
1635
|
+
disabled?: boolean;
|
|
1636
|
+
};
|
|
1637
|
+
type ItemProps$1 = {
|
|
1638
|
+
/** The id of the item */
|
|
1639
|
+
id?: string;
|
|
1640
|
+
/** The function to be called when the item is clicked */
|
|
1641
|
+
onClick?: (event: Event) => void;
|
|
1642
|
+
/** The flex positioning of the item contents */
|
|
1643
|
+
contentPosition?: FlexPosition;
|
|
1644
|
+
/** The color of the item text */
|
|
1645
|
+
color?: string;
|
|
1646
|
+
/** Sets the item text color to theme.accent */
|
|
1647
|
+
accented?: boolean;
|
|
1648
|
+
} & BaseItemProps;
|
|
1649
|
+
type SubProps = {
|
|
1650
|
+
/** The id of the sub menu's content container */
|
|
1651
|
+
id?: string;
|
|
1652
|
+
/** The text or element to display as the sub menu item's trigger */
|
|
1653
|
+
label: string | ReactNode;
|
|
1654
|
+
/** zIndex of the sub menu's portal container */
|
|
1655
|
+
zIndex?: number;
|
|
1656
|
+
/** Specify a container element to portal the sub menu content into */
|
|
1657
|
+
container?: HTMLElement;
|
|
1658
|
+
} & BaseItemProps;
|
|
1659
|
+
|
|
1609
1660
|
type GridProps = {
|
|
1610
1661
|
/** If a number, rows creates n number rows of an equal size. If a string, rows sets the gridTemplateRows property */
|
|
1611
1662
|
rows?: string | number;
|
|
@@ -1735,7 +1786,7 @@ declare const Form: {
|
|
|
1735
1786
|
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
|
|
1736
1787
|
} & Margin, "ref">) & React.RefAttributes<InputRef>>;
|
|
1737
1788
|
Dropdown: {
|
|
1738
|
-
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name,
|
|
1789
|
+
<OptionType extends OptionItem>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
|
|
1739
1790
|
children?: ReactNode;
|
|
1740
1791
|
onChange?: ((item: OptionType | null) => void) | undefined;
|
|
1741
1792
|
onTextChange?: ((text: string) => void) | undefined;
|
|
@@ -1759,12 +1810,7 @@ declare const Form: {
|
|
|
1759
1810
|
label?: string | undefined;
|
|
1760
1811
|
id?: string | undefined;
|
|
1761
1812
|
name?: string | undefined;
|
|
1762
|
-
|
|
1763
|
-
centerY?: boolean | undefined;
|
|
1764
|
-
centerX?: boolean | undefined;
|
|
1765
|
-
offsetY?: number | undefined;
|
|
1766
|
-
offsetX?: number | undefined;
|
|
1767
|
-
direction?: "top" | "bottom" | "right" | "left" | undefined;
|
|
1813
|
+
direction?: "top" | "bottom" | undefined;
|
|
1768
1814
|
fontSize?: string | number | undefined;
|
|
1769
1815
|
description?: string | undefined;
|
|
1770
1816
|
disabled?: boolean | undefined;
|
|
@@ -2454,4 +2500,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position)
|
|
|
2454
2500
|
left: string | number | undefined;
|
|
2455
2501
|
};
|
|
2456
2502
|
|
|
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 };
|
|
2503
|
+
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.2",
|
|
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-portal": "^1.0.2",
|
|
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",
|
|
@@ -30,53 +32,54 @@
|
|
|
30
32
|
"prism-react-renderer": "^1.3.5",
|
|
31
33
|
"react-keyed-flatten-children": "^1.3.0",
|
|
32
34
|
"react-phone-input-auto-format": "^0.1.0",
|
|
35
|
+
"react-remove-scroll": "^2.5.5",
|
|
33
36
|
"recharts": "^2.5.0",
|
|
34
37
|
"sanitize.css": "^13.0.0",
|
|
35
38
|
"uuid": "^9.0.0",
|
|
36
39
|
"webfontloader": "^1.6.28"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "^7.21.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
41
|
-
"@babel/preset-typescript": "^7.21.
|
|
42
|
+
"@babel/core": "^7.21.4",
|
|
43
|
+
"@babel/preset-env": "^7.21.4",
|
|
44
|
+
"@babel/preset-typescript": "^7.21.4",
|
|
42
45
|
"@emotion/babel-plugin": "^11.10.6",
|
|
43
46
|
"@emotion/babel-preset-css-prop": "^11.10.0",
|
|
44
47
|
"@emotion/react": "^11.10.6",
|
|
45
48
|
"@mdx-js/react": "^2.2.1",
|
|
46
49
|
"@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": "^
|
|
50
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
|
51
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
52
|
+
"@rollup/plugin-terser": "^0.4.1",
|
|
53
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
51
54
|
"@svgr/core": "^6.5.1",
|
|
52
55
|
"@svgr/plugin-jsx": "^6.5.1",
|
|
53
56
|
"@svgr/plugin-prettier": "^6.5.1",
|
|
54
57
|
"@types/dashify": "^1.0.1",
|
|
55
58
|
"@types/draft-js": "^0.11.10",
|
|
56
|
-
"@types/jest": "^29.5.
|
|
57
|
-
"@types/lodash": "^4.14.
|
|
59
|
+
"@types/jest": "^29.5.1",
|
|
60
|
+
"@types/lodash": "^4.14.194",
|
|
58
61
|
"@types/ncp": "^2.0.5",
|
|
59
|
-
"@types/node": "^18.
|
|
60
|
-
"@types/prompts": "^2.4.
|
|
62
|
+
"@types/node": "^18.16.0",
|
|
63
|
+
"@types/prompts": "^2.4.4",
|
|
61
64
|
"@types/randomcolor": "^0.5.7",
|
|
62
|
-
"@types/react": "^18.0
|
|
63
|
-
"@types/react-dom": "^18.0
|
|
65
|
+
"@types/react": "^18.2.0",
|
|
66
|
+
"@types/react-dom": "^18.2.0",
|
|
64
67
|
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
65
68
|
"@types/signale": "^1.4.4",
|
|
66
69
|
"@types/uuid": "^9.0.1",
|
|
67
70
|
"@types/webfontloader": "^1.6.35",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
69
|
-
"@typescript-eslint/parser": "^5.
|
|
70
|
-
"@vitejs/plugin-react": "^
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
72
|
+
"@typescript-eslint/parser": "^5.59.1",
|
|
73
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
71
74
|
"babel-plugin-lodash": "^3.3.4",
|
|
72
75
|
"chalk": "^5.2.0",
|
|
73
76
|
"dashify": "^2.0.0",
|
|
74
|
-
"eslint": "^8.
|
|
77
|
+
"eslint": "^8.39.0",
|
|
75
78
|
"eslint-config-airbnb": "^19.0.4",
|
|
76
79
|
"eslint-config-prettier": "^8.8.0",
|
|
77
80
|
"eslint-config-storm": "^1.0.3",
|
|
78
81
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
79
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
82
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
80
83
|
"eslint-plugin-import": "^2.25.4",
|
|
81
84
|
"eslint-plugin-jest": "^27.1.7",
|
|
82
85
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
@@ -85,32 +88,32 @@
|
|
|
85
88
|
"esm": "^3.2.25",
|
|
86
89
|
"husky": "^8.0.2",
|
|
87
90
|
"jest": "^29.5.0",
|
|
88
|
-
"lint-staged": "^13.2.
|
|
91
|
+
"lint-staged": "^13.2.1",
|
|
89
92
|
"ncp": "^2.0.0",
|
|
90
93
|
"pascal-case": "^3.1.2",
|
|
91
94
|
"path": "^0.12.7",
|
|
92
|
-
"phone": "^3.1.
|
|
93
|
-
"postcss": "^8.4.
|
|
94
|
-
"prettier": "^2.8.
|
|
95
|
+
"phone": "^3.1.37",
|
|
96
|
+
"postcss": "^8.4.23",
|
|
97
|
+
"prettier": "^2.8.8",
|
|
95
98
|
"prompts": "^2.4.2",
|
|
96
99
|
"randomcolor": "^0.6.2",
|
|
97
100
|
"react": "^18.2.0",
|
|
98
101
|
"react-dom": "^18.2.0",
|
|
99
|
-
"react-ga4": "^1.
|
|
102
|
+
"react-ga4": "^2.1.0",
|
|
100
103
|
"react-helmet-async": "^1.3.0",
|
|
101
|
-
"react-router-dom": "^6.
|
|
104
|
+
"react-router-dom": "^6.10.0",
|
|
102
105
|
"react-toastify": "^9.1.2",
|
|
103
106
|
"remark-gfm": "^3.0.1",
|
|
104
107
|
"replace": "^1.2.2",
|
|
105
|
-
"rollup": "^3.
|
|
106
|
-
"rollup-plugin-dts": "^5.
|
|
108
|
+
"rollup": "^3.21.0",
|
|
109
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
107
110
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
111
|
"rollup-plugin-postcss": "^4.0.2",
|
|
109
112
|
"signale": "^1.4.0",
|
|
110
113
|
"ts-node": "^10.9.1",
|
|
111
114
|
"tslib": "^2.4.1",
|
|
112
|
-
"typescript": "^
|
|
113
|
-
"vite": "^4.
|
|
115
|
+
"typescript": "^5.0.4",
|
|
116
|
+
"vite": "^4.3.2",
|
|
114
117
|
"vite-plugin-eslint": "^1.8.1",
|
|
115
118
|
"vite-plugin-svgr": "^2.4.0"
|
|
116
119
|
},
|