@wavv/ui 1.9.13 → 1.9.14

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.
@@ -5,7 +5,7 @@ import { BasicButtonProps, ButtonComponentProps } from './ButtonTypes';
5
5
  declare const Button: {
6
6
  (props: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
7
7
  Group: ({ children, disabled, outline, size, small, large, secondary, negative, positive, caution, collapse, ...props }: {
8
- children: (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("../Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>) | (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("../Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>)[];
8
+ children: (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("src/lib/components/Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>) | (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("src/lib/components/Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>)[];
9
9
  disabled?: boolean | undefined;
10
10
  size?: "small" | "large" | "medium" | undefined;
11
11
  small?: boolean | undefined;
@@ -5,7 +5,7 @@ type CalendarProps = {
5
5
  onChange: (date: Date) => void;
6
6
  /** Prevents selection of dates in the past (relative to the set date or current date). */
7
7
  preventPast?: boolean | Date;
8
- /** Prevents selection of dates in the futurepast (relative to the set date or current date). */
8
+ /** Prevents selection of dates in the future (relative to the set date or current date). */
9
9
  preventFuture?: boolean | Date;
10
10
  /** Removes the Calendar's boxShadow */
11
11
  noShadow?: boolean;
@@ -26,8 +26,8 @@ declare const Form: {
26
26
  placeholderColor?: string | undefined;
27
27
  description?: string | undefined;
28
28
  isLoading?: boolean | undefined;
29
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
30
- iconRight?: import("./helpers/getIcon").IconType | undefined;
29
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
30
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
31
31
  invalid?: boolean | undefined;
32
32
  borderless?: boolean | undefined;
33
33
  borderRadius?: string | number | undefined;
@@ -59,8 +59,8 @@ declare const Form: {
59
59
  placeholderColor?: string | undefined;
60
60
  description?: string | undefined;
61
61
  isLoading?: boolean | undefined;
62
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
63
- iconRight?: import("./helpers/getIcon").IconType | undefined;
62
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
63
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
64
64
  invalid?: boolean | undefined;
65
65
  borderless?: boolean | undefined;
66
66
  borderRadius?: string | number | undefined;
@@ -87,7 +87,7 @@ declare const Form: {
87
87
  onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
88
88
  } & Margin & import("./types").Padding, "ref">) & import("react").RefAttributes<import("./types").InputRef>>;
89
89
  Dropdown: {
90
- <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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
90
+ <OptionType extends import("src/lib/components/Dropdown/DropdownUtils").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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
91
91
  children?: ReactNode;
92
92
  onChange?: ((item: OptionType | null) => void) | undefined;
93
93
  onTextChange?: ((text: string) => void) | undefined;
@@ -125,8 +125,8 @@ declare const Form: {
125
125
  restrictInput?: boolean | ((text: string) => boolean) | undefined;
126
126
  inputRef?: import("react").RefObject<import("./types").InputRef> | undefined;
127
127
  optionsParent?: string | undefined;
128
- } & import("./types").Width & import("./types").Height & Margin & import("./Dropdown").InputProps): import("react/jsx-runtime").JSX.Element;
129
- Item<OptionType_1 extends import("./Dropdown").DropdownOption>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: import("./Dropdown/DropdownUtils").DropdownItemProps<OptionType_1>): import("react/jsx-runtime").JSX.Element;
128
+ } & import("./types").Width & import("./types").Height & Margin & import("src/lib/components/Dropdown/Dropdown").RestInputProps): import("react/jsx-runtime").JSX.Element;
129
+ Item<OptionType_1 extends import("src/lib/components/Dropdown/DropdownUtils").OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: import("src/lib/components/Dropdown/DropdownUtils").DropdownItemProps<OptionType_1>): import("react/jsx-runtime").JSX.Element;
130
130
  };
131
131
  Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
132
132
  id?: string | undefined;
@@ -142,7 +142,7 @@ declare const Form: {
142
142
  disabled?: boolean | undefined;
143
143
  checked?: boolean | undefined;
144
144
  onChange: (val: boolean) => void;
145
- } & Margin & import("./types").As & import("./FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
145
+ } & Margin & import("./types").As & import("src/lib/components/FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
146
146
  Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
147
147
  id?: string | undefined;
148
148
  label?: string | undefined;
@@ -151,11 +151,11 @@ declare const Form: {
151
151
  checked?: boolean | undefined;
152
152
  partial?: boolean | undefined;
153
153
  onChange: (val: boolean) => void;
154
- } & Margin & import("./types").As & import("./FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
154
+ } & Margin & import("./types").As & import("src/lib/components/FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
155
155
  Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: {
156
156
  children?: ReactNode;
157
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
158
- iconRight?: import("./helpers/getIcon").IconType | undefined;
157
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
158
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
159
159
  pill?: boolean | undefined;
160
160
  disabled?: boolean | undefined;
161
161
  } & Margin) => import("react/jsx-runtime").JSX.Element;
package/build/index.d.ts CHANGED
@@ -2,10 +2,15 @@
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as react from 'react';
4
4
  import react__default, { ElementType, FocusEvent, ReactNode, ChangeEvent, HTMLProps, ReactElement, MouseEvent as MouseEvent$1, KeyboardEvent as KeyboardEvent$1, CSSProperties, MutableRefObject, RefObject, FormEvent } from 'react';
5
+ import * as src_lib_components_Tooltip from 'src/lib/components/Tooltip';
5
6
  import * as _emotion_styled from '@emotion/styled';
6
7
  import { StyledComponent } from '@emotion/styled';
7
8
  import * as _emotion_react from '@emotion/react';
8
9
  import { EditorChangeType } from 'draft-js';
10
+ import * as src_lib_components_FormControl from 'src/lib/components/FormControl';
11
+ import * as src_lib_components_Dropdown_Dropdown from 'src/lib/components/Dropdown/Dropdown';
12
+ import * as src_lib_components_Dropdown_DropdownUtils from 'src/lib/components/Dropdown/DropdownUtils';
13
+ import * as src_lib_components_helpers_getIcon from 'src/lib/components/helpers/getIcon';
9
14
 
10
15
  declare const colors: {
11
16
  logo1: string;
@@ -1197,59 +1202,11 @@ type ButtonComponentProps = {
1197
1202
  joined?: never;
1198
1203
  } & BasicButtonProps & DropdownProps$2 & Margin;
1199
1204
 
1200
- type DivProps$1 = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
1201
- type TooltipProps = {
1202
- children?: ReactNode;
1203
- /** The element that will trigger the opening of the Tooltip */
1204
- trigger: ReactNode;
1205
- /** The text content of the Tooltip */
1206
- content?: string;
1207
- /** The position of the Tooltip body and arrow in relation to the trigger */
1208
- position?: PopPosition;
1209
- /** Offset of the Tooltip from the trigger */
1210
- offset?: number;
1211
- /** zIndex of the Tooltip's portal container */
1212
- zIndex?: number;
1213
- /** The width of the Tooltip element */
1214
- width?: number | string;
1215
- /** The maxWidth of the Tooltip element */
1216
- maxWidth?: number | string;
1217
- /** The textAlignment of the Tooltip text */
1218
- textAlign?: 'left' | 'right' | 'center';
1219
- /** Controls the open state of the Tooltip */
1220
- open?: boolean;
1221
- /** Prevents the Tooltip from opening */
1222
- disabled?: boolean;
1223
- /** The id of the Tooltip element */
1224
- id?: string;
1225
- /** The backgroundColor of the Tooltip element */
1226
- bgColor?: string;
1227
- /** The text color of the Tooltip element */
1228
- color?: string;
1229
- /** Specify a container element to portal the content into */
1230
- container?: HTMLElement;
1231
- /** The function called after the Tooltip opens */
1232
- afterShow?: () => void;
1233
- /** The function called after the Tooltip closes */
1234
- afterHide?: () => void;
1235
- } & DivProps$1;
1236
- declare const Tooltip: {
1237
- ({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1238
- Header: _emotion_styled.StyledComponent<{
1239
- theme?: _emotion_react.Theme | undefined;
1240
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1241
- } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1242
- Body: _emotion_styled.StyledComponent<{
1243
- theme?: _emotion_react.Theme | undefined;
1244
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1245
- } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1246
- };
1247
-
1248
1205
  /** Button Component */
1249
1206
  declare const Button: {
1250
1207
  (props: ButtonComponentProps): react_jsx_runtime.JSX.Element;
1251
1208
  Group: ({ children, disabled, outline, size, small, large, secondary, negative, positive, caution, collapse, ...props }: {
1252
- children: (react.ReactElement<BasicButtonProps | ButtonComponentProps, string | react.JSXElementConstructor<any>> | react.ReactElement<TooltipProps, string | react.JSXElementConstructor<any>>) | (react.ReactElement<BasicButtonProps | ButtonComponentProps, string | react.JSXElementConstructor<any>> | react.ReactElement<TooltipProps, string | react.JSXElementConstructor<any>>)[];
1209
+ children: (react.ReactElement<BasicButtonProps | ButtonComponentProps, string | react.JSXElementConstructor<any>> | react.ReactElement<src_lib_components_Tooltip.TooltipProps, string | react.JSXElementConstructor<any>>) | (react.ReactElement<BasicButtonProps | ButtonComponentProps, string | react.JSXElementConstructor<any>> | react.ReactElement<src_lib_components_Tooltip.TooltipProps, string | react.JSXElementConstructor<any>>)[];
1253
1210
  disabled?: boolean | undefined;
1254
1211
  size?: "small" | "large" | "medium" | undefined;
1255
1212
  small?: boolean | undefined;
@@ -1266,7 +1223,7 @@ type CalendarProps = {
1266
1223
  onChange: (date: Date) => void;
1267
1224
  /** Prevents selection of dates in the past (relative to the set date or current date). */
1268
1225
  preventPast?: boolean | Date;
1269
- /** Prevents selection of dates in the futurepast (relative to the set date or current date). */
1226
+ /** Prevents selection of dates in the future (relative to the set date or current date). */
1270
1227
  preventFuture?: boolean | Date;
1271
1228
  /** Removes the Calendar's boxShadow */
1272
1229
  noShadow?: boolean;
@@ -1411,6 +1368,54 @@ type IconProps = {
1411
1368
  } & ConditionalProps & MarginPadding & As & DivAttributes;
1412
1369
  declare const Icon: ({ name, svg, size, width, height, color, hoverColor, pointer, inheritColor, animation, style, onClick, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
1413
1370
 
1371
+ type DivProps$1 = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
1372
+ type TooltipProps = {
1373
+ children?: ReactNode;
1374
+ /** The element that will trigger the opening of the Tooltip */
1375
+ trigger: ReactNode;
1376
+ /** The text content of the Tooltip */
1377
+ content?: string;
1378
+ /** The position of the Tooltip body and arrow in relation to the trigger */
1379
+ position?: PopPosition;
1380
+ /** Offset of the Tooltip from the trigger */
1381
+ offset?: number;
1382
+ /** zIndex of the Tooltip's portal container */
1383
+ zIndex?: number;
1384
+ /** The width of the Tooltip element */
1385
+ width?: number | string;
1386
+ /** The maxWidth of the Tooltip element */
1387
+ maxWidth?: number | string;
1388
+ /** The textAlignment of the Tooltip text */
1389
+ textAlign?: 'left' | 'right' | 'center';
1390
+ /** Controls the open state of the Tooltip */
1391
+ open?: boolean;
1392
+ /** Prevents the Tooltip from opening */
1393
+ disabled?: boolean;
1394
+ /** The id of the Tooltip element */
1395
+ id?: string;
1396
+ /** The backgroundColor of the Tooltip element */
1397
+ bgColor?: string;
1398
+ /** The text color of the Tooltip element */
1399
+ color?: string;
1400
+ /** Specify a container element to portal the content into */
1401
+ container?: HTMLElement;
1402
+ /** The function called after the Tooltip opens */
1403
+ afterShow?: () => void;
1404
+ /** The function called after the Tooltip closes */
1405
+ afterHide?: () => void;
1406
+ } & DivProps$1;
1407
+ declare const Tooltip: {
1408
+ ({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1409
+ Header: _emotion_styled.StyledComponent<{
1410
+ theme?: _emotion_react.Theme | undefined;
1411
+ as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1412
+ } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1413
+ Body: _emotion_styled.StyledComponent<{
1414
+ theme?: _emotion_react.Theme | undefined;
1415
+ as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1416
+ } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1417
+ };
1418
+
1414
1419
  type IconType = IconNames | IconProps | ReactElement<IconProps> | ReactElement<TooltipProps>;
1415
1420
 
1416
1421
  type OnClear = () => void;
@@ -1841,8 +1846,8 @@ declare const Form: {
1841
1846
  placeholderColor?: string | undefined;
1842
1847
  description?: string | undefined;
1843
1848
  isLoading?: boolean | undefined;
1844
- iconLeft?: IconType | undefined;
1845
- iconRight?: IconType | undefined;
1849
+ iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1850
+ iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1846
1851
  invalid?: boolean | undefined;
1847
1852
  borderless?: boolean | undefined;
1848
1853
  borderRadius?: string | number | undefined;
@@ -1874,8 +1879,8 @@ declare const Form: {
1874
1879
  placeholderColor?: string | undefined;
1875
1880
  description?: string | undefined;
1876
1881
  isLoading?: boolean | undefined;
1877
- iconLeft?: IconType | undefined;
1878
- iconRight?: IconType | undefined;
1882
+ iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1883
+ iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1879
1884
  invalid?: boolean | undefined;
1880
1885
  borderless?: boolean | undefined;
1881
1886
  borderRadius?: string | number | undefined;
@@ -1902,7 +1907,7 @@ declare const Form: {
1902
1907
  onChange?: ((event: react.ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
1903
1908
  } & Margin & Padding, "ref">) & react.RefAttributes<InputRef>>;
1904
1909
  Dropdown: {
1905
- <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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
1910
+ <OptionType extends src_lib_components_Dropdown_DropdownUtils.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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
1906
1911
  children?: ReactNode;
1907
1912
  onChange?: ((item: OptionType | null) => void) | undefined;
1908
1913
  onTextChange?: ((text: string) => void) | undefined;
@@ -1940,8 +1945,8 @@ declare const Form: {
1940
1945
  restrictInput?: boolean | ((text: string) => boolean) | undefined;
1941
1946
  inputRef?: react.RefObject<InputRef> | undefined;
1942
1947
  optionsParent?: string | undefined;
1943
- } & Width & Height & Margin & RestInputProps): react_jsx_runtime.JSX.Element;
1944
- Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): react_jsx_runtime.JSX.Element;
1948
+ } & Width & Height & Margin & src_lib_components_Dropdown_Dropdown.RestInputProps): react_jsx_runtime.JSX.Element;
1949
+ Item<OptionType_1 extends src_lib_components_Dropdown_DropdownUtils.OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: src_lib_components_Dropdown_DropdownUtils.DropdownItemProps<OptionType_1>): react_jsx_runtime.JSX.Element;
1945
1950
  };
1946
1951
  Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
1947
1952
  id?: string | undefined;
@@ -1957,7 +1962,7 @@ declare const Form: {
1957
1962
  disabled?: boolean | undefined;
1958
1963
  checked?: boolean | undefined;
1959
1964
  onChange: (val: boolean) => void;
1960
- } & Margin & As & CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1965
+ } & Margin & As & src_lib_components_FormControl.CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1961
1966
  Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
1962
1967
  id?: string | undefined;
1963
1968
  label?: string | undefined;
@@ -1966,11 +1971,11 @@ declare const Form: {
1966
1971
  checked?: boolean | undefined;
1967
1972
  partial?: boolean | undefined;
1968
1973
  onChange: (val: boolean) => void;
1969
- } & Margin & As & CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1974
+ } & Margin & As & src_lib_components_FormControl.CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1970
1975
  Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: {
1971
1976
  children?: ReactNode;
1972
- iconLeft?: IconType | undefined;
1973
- iconRight?: IconType | undefined;
1977
+ iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1978
+ iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1974
1979
  pill?: boolean | undefined;
1975
1980
  disabled?: boolean | undefined;
1976
1981
  } & Margin) => react_jsx_runtime.JSX.Element;
@@ -2717,4 +2722,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position)
2717
2722
  left: string | number | undefined;
2718
2723
  };
2719
2724
 
2720
- 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, MinHeight, MinWidth, MinWidthHeight, Modal, MultiSelect, MultiSelectRef, Notification, Options, Padding, Pagination, PieChart, Position, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, TabItem, Table, Tabs, ThemeProp, ToastStyles, Toggle, Tooltip, Action as TransferAction, Item as TransferItem, TransferList, Next as TransferNext, Width, WidthHeight, colors, copyToClipboard, darkScale, formatDate, lightScale, marginProps, numberWithCommas, paddingProps, positionProps, theme, useConfirm, useElementObserver, useEventListener, useOnClickOutside, usePrevious, useSelect, useSelectAll, useWindowSize, widthHeightProps };
2725
+ export { Accordion, type As, Audio, type AudioRef, BarChart, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, type DraftEditorRef, Dropdown, DropdownMenu, type OptionItem as DropdownOption, type FlexPosition, Form, Grid, type Height, type ITheme, Icon, type IconNames, ImageViewer, InlineCode, Input, type InputRef, _default as InputUtils, Label, LineChart, type Margin, type MarginPadding, type MaxHeight, type MaxWidth, type MaxWidthHeight, Menu, Message, MessageHr, type MinHeight, type MinWidth, type MinWidthHeight, Modal, MultiSelect, type MultiSelectRef, Notification, Options, type Padding, Pagination, PieChart, type Position, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, type TabItem, Table, Tabs, type ThemeProp, ToastStyles, Toggle, Tooltip, type Action as TransferAction, type Item as TransferItem, TransferList, type Next as TransferNext, type Width, type WidthHeight, colors, copyToClipboard, darkScale, formatDate, lightScale, marginProps, numberWithCommas, paddingProps, positionProps, theme, useConfirm, useElementObserver, useEventListener, useOnClickOutside, usePrevious, useSelect, useSelectAll, useWindowSize, widthHeightProps };
@@ -5,7 +5,7 @@ import { BasicButtonProps, ButtonComponentProps } from './ButtonTypes';
5
5
  declare const Button: {
6
6
  (props: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
7
7
  Group: ({ children, disabled, outline, size, small, large, secondary, negative, positive, caution, collapse, ...props }: {
8
- children: (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("../Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>) | (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("../Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>)[];
8
+ children: (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("src/lib/components/Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>) | (import("react").ReactElement<BasicButtonProps | ButtonComponentProps, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("src/lib/components/Tooltip").TooltipProps, string | import("react").JSXElementConstructor<any>>)[];
9
9
  disabled?: boolean | undefined;
10
10
  size?: "small" | "large" | "medium" | undefined;
11
11
  small?: boolean | undefined;
@@ -5,7 +5,7 @@ type CalendarProps = {
5
5
  onChange: (date: Date) => void;
6
6
  /** Prevents selection of dates in the past (relative to the set date or current date). */
7
7
  preventPast?: boolean | Date;
8
- /** Prevents selection of dates in the futurepast (relative to the set date or current date). */
8
+ /** Prevents selection of dates in the future (relative to the set date or current date). */
9
9
  preventFuture?: boolean | Date;
10
10
  /** Removes the Calendar's boxShadow */
11
11
  noShadow?: boolean;
@@ -26,8 +26,8 @@ declare const Form: {
26
26
  placeholderColor?: string | undefined;
27
27
  description?: string | undefined;
28
28
  isLoading?: boolean | undefined;
29
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
30
- iconRight?: import("./helpers/getIcon").IconType | undefined;
29
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
30
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
31
31
  invalid?: boolean | undefined;
32
32
  borderless?: boolean | undefined;
33
33
  borderRadius?: string | number | undefined;
@@ -59,8 +59,8 @@ declare const Form: {
59
59
  placeholderColor?: string | undefined;
60
60
  description?: string | undefined;
61
61
  isLoading?: boolean | undefined;
62
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
63
- iconRight?: import("./helpers/getIcon").IconType | undefined;
62
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
63
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
64
64
  invalid?: boolean | undefined;
65
65
  borderless?: boolean | undefined;
66
66
  borderRadius?: string | number | undefined;
@@ -87,7 +87,7 @@ declare const Form: {
87
87
  onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
88
88
  } & Margin & import("./types").Padding, "ref">) & import("react").RefAttributes<import("./types").InputRef>>;
89
89
  Dropdown: {
90
- <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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
90
+ <OptionType extends import("src/lib/components/Dropdown/DropdownUtils").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, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
91
91
  children?: ReactNode;
92
92
  onChange?: ((item: OptionType | null) => void) | undefined;
93
93
  onTextChange?: ((text: string) => void) | undefined;
@@ -125,8 +125,8 @@ declare const Form: {
125
125
  restrictInput?: boolean | ((text: string) => boolean) | undefined;
126
126
  inputRef?: import("react").RefObject<import("./types").InputRef> | undefined;
127
127
  optionsParent?: string | undefined;
128
- } & import("./types").Width & import("./types").Height & Margin & import("./Dropdown").InputProps): import("react/jsx-runtime").JSX.Element;
129
- Item<OptionType_1 extends import("./Dropdown").DropdownOption>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: import("./Dropdown/DropdownUtils").DropdownItemProps<OptionType_1>): import("react/jsx-runtime").JSX.Element;
128
+ } & import("./types").Width & import("./types").Height & Margin & import("src/lib/components/Dropdown/Dropdown").RestInputProps): import("react/jsx-runtime").JSX.Element;
129
+ Item<OptionType_1 extends import("src/lib/components/Dropdown/DropdownUtils").OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: import("src/lib/components/Dropdown/DropdownUtils").DropdownItemProps<OptionType_1>): import("react/jsx-runtime").JSX.Element;
130
130
  };
131
131
  Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
132
132
  id?: string | undefined;
@@ -142,7 +142,7 @@ declare const Form: {
142
142
  disabled?: boolean | undefined;
143
143
  checked?: boolean | undefined;
144
144
  onChange: (val: boolean) => void;
145
- } & Margin & import("./types").As & import("./FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
145
+ } & Margin & import("./types").As & import("src/lib/components/FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
146
146
  Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
147
147
  id?: string | undefined;
148
148
  label?: string | undefined;
@@ -151,11 +151,11 @@ declare const Form: {
151
151
  checked?: boolean | undefined;
152
152
  partial?: boolean | undefined;
153
153
  onChange: (val: boolean) => void;
154
- } & Margin & import("./types").As & import("./FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
154
+ } & Margin & import("./types").As & import("src/lib/components/FormControl").CheckboxAttributes) => import("react/jsx-runtime").JSX.Element;
155
155
  Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: {
156
156
  children?: ReactNode;
157
- iconLeft?: import("./helpers/getIcon").IconType | undefined;
158
- iconRight?: import("./helpers/getIcon").IconType | undefined;
157
+ iconLeft?: import("src/lib/components/helpers/getIcon").IconType | undefined;
158
+ iconRight?: import("src/lib/components/helpers/getIcon").IconType | undefined;
159
159
  pill?: boolean | undefined;
160
160
  disabled?: boolean | undefined;
161
161
  } & Margin) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.9.13",
3
+ "version": "1.9.14",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],
@@ -19,33 +19,33 @@
19
19
  "author": "Raleigh Wayland",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@emotion/styled": "^11.11.0",
22
+ "@emotion/styled": "^11.11.5",
23
23
  "@radix-ui/react-accordion": "^1.1.2",
24
24
  "@radix-ui/react-dropdown-menu": "^2.0.6",
25
25
  "@radix-ui/react-tooltip": "^1.0.7",
26
26
  "@react-hook/resize-observer": "^1.2.6",
27
- "date-fns": "^2.30.0",
27
+ "date-fns": "^3.6.0",
28
28
  "draft-js": "^0.11.7",
29
29
  "lodash": "^4.17.21",
30
30
  "millify": "^6.1.0",
31
31
  "polished": "^4.1.4",
32
32
  "prism-react-renderer": "^2.3.1",
33
- "react-keyed-flatten-children": "^2.2.1",
33
+ "react-keyed-flatten-children": "^3.0.0",
34
34
  "react-phone-input-auto-format": "^0.1.0",
35
- "recharts": "^2.10.4",
35
+ "recharts": "^2.12.3",
36
36
  "sanitize.css": "^13.0.0",
37
37
  "uuid": "^9.0.1",
38
38
  "webfontloader": "^1.6.28"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "^7.23.7",
42
- "@babel/preset-env": "^7.23.8",
43
- "@babel/preset-typescript": "^7.23.3",
41
+ "@babel/core": "^7.24.3",
42
+ "@babel/preset-env": "^7.24.3",
43
+ "@babel/preset-typescript": "^7.24.1",
44
44
  "@emotion/babel-plugin": "^11.11.0",
45
45
  "@emotion/babel-preset-css-prop": "^11.11.0",
46
- "@emotion/react": "^11.11.3",
47
- "@mdx-js/react": "^2.2.1",
48
- "@mdx-js/rollup": "^2.2.1",
46
+ "@emotion/react": "^11.11.4",
47
+ "@mdx-js/react": "^3.0.1",
48
+ "@mdx-js/rollup": "^3.0.1",
49
49
  "@rollup/plugin-commonjs": "^25.0.7",
50
50
  "@rollup/plugin-node-resolve": "^15.2.3",
51
51
  "@rollup/plugin-terser": "^0.4.4",
@@ -54,67 +54,66 @@
54
54
  "@svgr/plugin-jsx": "^8.1.0",
55
55
  "@svgr/plugin-prettier": "^8.1.0",
56
56
  "@types/dashify": "^1.0.3",
57
- "@types/draft-js": "^0.11.17",
57
+ "@types/draft-js": "^0.11.18",
58
58
  "@types/jest": "^29.5.11",
59
- "@types/lodash": "^4.14.202",
59
+ "@types/lodash": "^4.17.0",
60
60
  "@types/ncp": "^2.0.8",
61
- "@types/node": "^20.11.0",
61
+ "@types/node": "^20.12.2",
62
62
  "@types/prompts": "^2.4.9",
63
63
  "@types/randomcolor": "^0.5.9",
64
- "@types/react": "^18.2.47",
65
- "@types/react-dom": "^18.2.18",
66
- "@types/rollup-plugin-peer-deps-external": "^2.2.4",
64
+ "@types/react": "^18.2.73",
65
+ "@types/react-dom": "^18.2.23",
66
+ "@types/rollup-plugin-peer-deps-external": "^2.2.5",
67
67
  "@types/signale": "^1.4.7",
68
68
  "@types/uuid": "^9.0.7",
69
69
  "@types/webfontloader": "^1.6.38",
70
- "@typescript-eslint/eslint-plugin": "^5.60.1",
71
- "@typescript-eslint/parser": "^5.60.1",
70
+ "@typescript-eslint/eslint-plugin": "^7.4.0",
71
+ "@typescript-eslint/parser": "^7.4.0",
72
72
  "@vitejs/plugin-react": "^4.2.1",
73
73
  "babel-plugin-lodash": "^3.3.4",
74
74
  "chalk": "^5.3.0",
75
- "dashify": "^2.0.0",
76
- "eslint": "^8.56.0",
75
+ "change-case": "^5.4.3",
76
+ "eslint": "^8.57.0",
77
77
  "eslint-config-airbnb": "^19.0.4",
78
- "eslint-config-prettier": "^8.8.0",
78
+ "eslint-config-prettier": "^9.1.0",
79
79
  "eslint-config-storm": "^1.0.3",
80
80
  "eslint-import-resolver-alias": "^1.1.2",
81
81
  "eslint-import-resolver-typescript": "^3.6.1",
82
82
  "eslint-plugin-import": "^2.29.1",
83
- "eslint-plugin-jest": "^27.6.2",
83
+ "eslint-plugin-jest": "^27.9.0",
84
84
  "eslint-plugin-jsx-a11y": "^6.8.0",
85
- "eslint-plugin-react": "^7.33.2",
85
+ "eslint-plugin-react": "^7.34.1",
86
86
  "eslint-plugin-react-hooks": "^4.6.0",
87
87
  "esm": "^3.2.25",
88
- "husky": "^8.0.2",
88
+ "husky": "^9.0.11",
89
89
  "jest": "^29.7.0",
90
- "lint-staged": "^13.2.1",
90
+ "lint-staged": "^15.2.2",
91
91
  "ncp": "^2.0.0",
92
- "pascal-case": "^3.1.2",
93
92
  "path": "^0.12.7",
94
93
  "phone": "^3.1.42",
95
- "postcss": "^8.4.33",
96
- "prettier": "^2.8.8",
94
+ "postcss": "^8.4.38",
95
+ "prettier": "^3.2.5",
97
96
  "prompts": "^2.4.2",
98
97
  "randomcolor": "^0.6.2",
99
98
  "react": "^18.2.0",
100
99
  "react-dom": "^18.2.0",
101
100
  "react-ga4": "^2.1.0",
102
- "react-helmet-async": "^1.3.0",
103
- "react-router-dom": "^6.21.2",
104
- "react-toastify": "^9.1.3",
105
- "remark-gfm": "^3.0.1",
101
+ "react-helmet-async": "^2.0.4",
102
+ "react-router-dom": "^6.22.3",
103
+ "react-toastify": "^10.0.5",
104
+ "remark-gfm": "^4.0.0",
106
105
  "replace": "^1.2.2",
107
- "rollup": "^3.25.3",
108
- "rollup-plugin-dts": "^5.3.0",
106
+ "rollup": "^4.13.2",
107
+ "rollup-plugin-dts": "^6.1.0",
109
108
  "rollup-plugin-peer-deps-external": "^2.2.4",
110
109
  "rollup-plugin-postcss": "^4.0.2",
111
110
  "signale": "^1.4.0",
112
111
  "ts-node": "^10.9.2",
113
112
  "tslib": "^2.6.2",
114
- "typescript": "^5.3.3",
115
- "vite": "^4.4.9",
113
+ "typescript": "5.4.3",
114
+ "vite": "^5.2.7",
116
115
  "vite-plugin-eslint": "^1.8.1",
117
- "vite-plugin-svgr": "^3.2.0"
116
+ "vite-plugin-svgr": "^4.2.0"
118
117
  },
119
118
  "peerDependencies": {
120
119
  "@emotion/react": ">=11",