@wavv/ui 1.9.15 → 2.0.0-alpha.0

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.
Files changed (84) hide show
  1. package/build/cjs/index.js +4 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/components/Audio.d.ts +2 -2
  4. package/build/cjs/types/components/Button/Button.d.ts +3 -3
  5. package/build/cjs/types/components/Button/ButtonLoader.d.ts +1 -1
  6. package/build/cjs/types/components/Button/ButtonTypes.d.ts +2 -2
  7. package/build/cjs/types/components/ChartHelpers.d.ts +2 -2
  8. package/build/cjs/types/components/Checkbox.d.ts +2 -2
  9. package/build/cjs/types/components/Dropdown/Dropdown.d.ts +2 -2
  10. package/build/cjs/types/components/Dropdown/DropdownUtils.d.ts +3 -3
  11. package/build/cjs/types/components/DropdownMenu.d.ts +11 -22
  12. package/build/cjs/types/components/Form.d.ts +15 -22
  13. package/build/cjs/types/components/Icon/Icon.d.ts +2 -2
  14. package/build/cjs/types/components/Input.d.ts +4 -4
  15. package/build/cjs/types/components/MessageHr.d.ts +2 -2
  16. package/build/cjs/types/components/OptionHelpers/Container.d.ts +12 -0
  17. package/build/cjs/types/components/OptionHelpers/Item.d.ts +22 -0
  18. package/build/cjs/types/components/OptionHelpers/types.d.ts +21 -0
  19. package/build/cjs/types/components/Options.d.ts +4 -20
  20. package/build/cjs/types/components/Radio.d.ts +2 -2
  21. package/build/cjs/types/components/Table/Body.d.ts +2 -2
  22. package/build/cjs/types/components/Table/Content.d.ts +6 -19
  23. package/build/cjs/types/components/Table/Table.d.ts +5 -3
  24. package/build/cjs/types/components/Table/types.d.ts +2 -2
  25. package/build/cjs/types/components/Toggle.d.ts +2 -2
  26. package/build/cjs/types/components/Tooltip.d.ts +2 -2
  27. package/build/cjs/types/components/types.d.ts +8 -3
  28. package/build/cjs/types/index.d.ts +1 -1
  29. package/build/esm/index.js +4 -4
  30. package/build/esm/index.js.map +1 -1
  31. package/build/esm/types/components/Audio.d.ts +2 -2
  32. package/build/esm/types/components/Button/Button.d.ts +3 -3
  33. package/build/esm/types/components/Button/ButtonLoader.d.ts +1 -1
  34. package/build/esm/types/components/Button/ButtonTypes.d.ts +2 -2
  35. package/build/esm/types/components/ChartHelpers.d.ts +2 -2
  36. package/build/esm/types/components/Checkbox.d.ts +2 -2
  37. package/build/esm/types/components/Dropdown/Dropdown.d.ts +2 -2
  38. package/build/esm/types/components/Dropdown/DropdownUtils.d.ts +3 -3
  39. package/build/esm/types/components/DropdownMenu.d.ts +11 -22
  40. package/build/esm/types/components/Form.d.ts +15 -22
  41. package/build/esm/types/components/Icon/Icon.d.ts +2 -2
  42. package/build/esm/types/components/Input.d.ts +4 -4
  43. package/build/esm/types/components/MessageHr.d.ts +2 -2
  44. package/build/esm/types/components/OptionHelpers/Container.d.ts +12 -0
  45. package/build/esm/types/components/OptionHelpers/Item.d.ts +22 -0
  46. package/build/esm/types/components/OptionHelpers/types.d.ts +21 -0
  47. package/build/esm/types/components/Options.d.ts +4 -20
  48. package/build/esm/types/components/Radio.d.ts +2 -2
  49. package/build/esm/types/components/Table/Body.d.ts +2 -2
  50. package/build/esm/types/components/Table/Content.d.ts +6 -19
  51. package/build/esm/types/components/Table/Table.d.ts +5 -3
  52. package/build/esm/types/components/Table/types.d.ts +2 -2
  53. package/build/esm/types/components/Toggle.d.ts +2 -2
  54. package/build/esm/types/components/Tooltip.d.ts +2 -2
  55. package/build/esm/types/components/types.d.ts +8 -3
  56. package/build/esm/types/index.d.ts +1 -1
  57. package/build/index.d.ts +135 -137
  58. package/build/types/components/Audio.d.ts +2 -2
  59. package/build/types/components/Button/Button.d.ts +3 -3
  60. package/build/types/components/Button/ButtonLoader.d.ts +1 -1
  61. package/build/types/components/Button/ButtonTypes.d.ts +2 -2
  62. package/build/types/components/ChartHelpers.d.ts +2 -2
  63. package/build/types/components/Checkbox.d.ts +2 -2
  64. package/build/types/components/Dropdown/Dropdown.d.ts +2 -2
  65. package/build/types/components/Dropdown/DropdownUtils.d.ts +3 -3
  66. package/build/types/components/DropdownMenu.d.ts +11 -22
  67. package/build/types/components/Form.d.ts +15 -22
  68. package/build/types/components/Icon/Icon.d.ts +2 -2
  69. package/build/types/components/Input.d.ts +4 -4
  70. package/build/types/components/MessageHr.d.ts +2 -2
  71. package/build/types/components/OptionHelpers/Container.d.ts +12 -0
  72. package/build/types/components/OptionHelpers/Item.d.ts +22 -0
  73. package/build/types/components/OptionHelpers/types.d.ts +21 -0
  74. package/build/types/components/Options.d.ts +4 -20
  75. package/build/types/components/Radio.d.ts +2 -2
  76. package/build/types/components/Table/Body.d.ts +2 -2
  77. package/build/types/components/Table/Content.d.ts +6 -19
  78. package/build/types/components/Table/Table.d.ts +5 -3
  79. package/build/types/components/Table/types.d.ts +2 -2
  80. package/build/types/components/Toggle.d.ts +2 -2
  81. package/build/types/components/Tooltip.d.ts +2 -2
  82. package/build/types/components/types.d.ts +8 -3
  83. package/build/types/index.d.ts +1 -1
  84. package/package.json +17 -14
package/build/index.d.ts CHANGED
@@ -2,15 +2,10 @@
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';
6
5
  import * as _emotion_styled from '@emotion/styled';
7
6
  import { StyledComponent } from '@emotion/styled';
8
7
  import * as _emotion_react from '@emotion/react';
9
8
  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';
14
9
 
15
10
  declare const colors: {
16
11
  logo1: string;
@@ -559,8 +554,9 @@ type MinWidthHeight = MinWidth & MinHeight;
559
554
  type MarginPadding = Margin & Padding;
560
555
  type FlexPosition = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
561
556
  type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
562
- type As = {
563
- as?: ElementType<unknown>;
557
+ type As = ElementType;
558
+ type AsProp = {
559
+ as?: As;
564
560
  };
565
561
  type InputFocusEvent = FocusEvent<HTMLInputElement>;
566
562
  type MergeField$1 = {
@@ -658,7 +654,7 @@ type AudioProps = {
658
654
  onPlay?: (event: ChangeEvent<HTMLAudioElement>) => void;
659
655
  onPause?: (event: ChangeEvent<HTMLAudioElement>) => void;
660
656
  onStop?: (event: ChangeEvent<HTMLAudioElement>) => void;
661
- } & Margin & Width & As & HTMLProps<HTMLDivElement>;
657
+ } & Margin & Width & AsProp & HTMLProps<HTMLDivElement>;
662
658
  declare const Audio: react.ForwardRefExoticComponent<Omit<AudioProps, "ref"> & react.RefAttributes<AudioRef>>;
663
659
 
664
660
  type ChartData$1 = {
@@ -716,7 +712,7 @@ type OptionItem = {
716
712
  [key: string]: unknown;
717
713
  };
718
714
  type DropdownItemProps<OptionType> = {
719
- setValue?: (v: OptionType, event: MouseEvent$1) => void;
715
+ setValue?: (v: OptionType, event: MouseEvent$1 | Event) => void;
720
716
  close?: () => void;
721
717
  children: ReactNode;
722
718
  /** Sets the value of the option that will be returned in the object */
@@ -730,11 +726,11 @@ type DropdownItemProps<OptionType> = {
730
726
  /** Sets the Option text color to theme.accent */
731
727
  accented?: boolean;
732
728
  /** Callback function to override the default onChange function of Dropdown. */
733
- onClick?: (event: MouseEvent$1) => void;
729
+ onClick?: (event: MouseEvent$1 | Event) => void;
734
730
  /** The id of the Item element */
735
731
  id: number | string;
736
732
  };
737
- type SetEvent = MouseEvent$1 | ChangeEvent | KeyboardEvent;
733
+ type SetEvent = MouseEvent$1 | ChangeEvent | KeyboardEvent | Event;
738
734
  type SetValueFunc = <OptionType extends OptionItem>(selection: OptionType | string | null, event?: SetEvent) => void;
739
735
 
740
736
  declare function ActivityHistory(props: react.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
@@ -1070,7 +1066,7 @@ type IconNames = keyof typeof icons;
1070
1066
 
1071
1067
  type ButtonAttributes = Omit<HTMLProps<HTMLButtonElement>, 'as' | 'type' | 'size'> & {
1072
1068
  type?: 'button' | 'reset' | 'submit';
1073
- } & As;
1069
+ } & AsProp;
1074
1070
  type ButtonBaseProps = {
1075
1071
  children?: ReactNode;
1076
1072
  joined?: 'left' | 'right' | 'middle';
@@ -1202,18 +1198,66 @@ type ButtonComponentProps = {
1202
1198
  joined?: never;
1203
1199
  } & BasicButtonProps & DropdownProps$2 & Margin;
1204
1200
 
1201
+ type DivProps$1 = Omit<HTMLProps<HTMLDivElement>, 'as'> & AsProp;
1202
+ type TooltipProps = {
1203
+ children?: ReactNode;
1204
+ /** The element that will trigger the opening of the Tooltip */
1205
+ trigger: ReactNode;
1206
+ /** The text content of the Tooltip */
1207
+ content?: string;
1208
+ /** The position of the Tooltip body and arrow in relation to the trigger */
1209
+ position?: PopPosition;
1210
+ /** Offset of the Tooltip from the trigger */
1211
+ offset?: number;
1212
+ /** zIndex of the Tooltip's portal container */
1213
+ zIndex?: number;
1214
+ /** The width of the Tooltip element */
1215
+ width?: number | string;
1216
+ /** The maxWidth of the Tooltip element */
1217
+ maxWidth?: number | string;
1218
+ /** The textAlignment of the Tooltip text */
1219
+ textAlign?: 'left' | 'right' | 'center';
1220
+ /** Controls the open state of the Tooltip */
1221
+ open?: boolean;
1222
+ /** Prevents the Tooltip from opening */
1223
+ disabled?: boolean;
1224
+ /** The id of the Tooltip element */
1225
+ id?: string;
1226
+ /** The backgroundColor of the Tooltip element */
1227
+ bgColor?: string;
1228
+ /** The text color of the Tooltip element */
1229
+ color?: string;
1230
+ /** Specify a container element to portal the content into */
1231
+ container?: HTMLElement;
1232
+ /** The function called after the Tooltip opens */
1233
+ afterShow?: () => void;
1234
+ /** The function called after the Tooltip closes */
1235
+ afterHide?: () => void;
1236
+ } & DivProps$1;
1237
+ declare const Tooltip: {
1238
+ ({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1239
+ Header: _emotion_styled.StyledComponent<{
1240
+ theme?: _emotion_react.Theme | undefined;
1241
+ as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1242
+ } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1243
+ Body: _emotion_styled.StyledComponent<{
1244
+ theme?: _emotion_react.Theme | undefined;
1245
+ as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1246
+ } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1247
+ };
1248
+
1205
1249
  /** Button Component */
1206
1250
  declare const Button: {
1207
1251
  (props: ButtonComponentProps): react_jsx_runtime.JSX.Element;
1208
- Group: ({ children, disabled, outline, size, small, large, secondary, negative, positive, caution, collapse, ...props }: {
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>>)[];
1252
+ Group: ({ children, disabled, outline, size, small, large, secondary, negative, positive, caution, collapse, ...props }: ({
1253
+ 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>>)[];
1210
1254
  disabled?: boolean | undefined;
1211
1255
  size?: "small" | "large" | "medium" | undefined;
1212
1256
  small?: boolean | undefined;
1213
1257
  large?: boolean | undefined;
1214
1258
  outline?: boolean | undefined;
1215
1259
  collapse?: boolean | undefined;
1216
- } & ButtonStyles & Margin & Width) => react_jsx_runtime.JSX.Element | null;
1260
+ } & ButtonStyles) & Margin & Width) => react_jsx_runtime.JSX.Element | null;
1217
1261
  };
1218
1262
 
1219
1263
  type CalendarProps = {
@@ -1247,7 +1291,7 @@ type CheckboxProps = {
1247
1291
  partial?: boolean;
1248
1292
  /** The function called with the checkbox value after the checkbox is changed */
1249
1293
  onChange: (val: boolean) => void;
1250
- } & Margin & As & CheckboxAttributes;
1294
+ } & Margin & AsProp & CheckboxAttributes;
1251
1295
  declare const Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
1252
1296
 
1253
1297
  type RestLanguage = 'rest-get' | 'rest-post' | 'rest-put' | 'rest-delete' | 'rest-options';
@@ -1365,57 +1409,9 @@ type IconProps = {
1365
1409
  style?: {
1366
1410
  [key: string]: string | number;
1367
1411
  };
1368
- } & ConditionalProps & MarginPadding & As & DivAttributes;
1412
+ } & ConditionalProps & MarginPadding & AsProp & DivAttributes;
1369
1413
  declare const Icon: ({ name, svg, size, width, height, color, hoverColor, pointer, inheritColor, animation, style, onClick, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
1370
1414
 
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
-
1419
1415
  type IconType = IconNames | IconProps | ReactElement<IconProps> | ReactElement<TooltipProps>;
1420
1416
 
1421
1417
  type OnClear = () => void;
@@ -1432,7 +1428,7 @@ type Phone = {
1432
1428
  onChange?: OnChangePhone;
1433
1429
  };
1434
1430
  type InputTypes = Default$1 | Phone;
1435
- type DefaultInputProps = Omit<HTMLProps<HTMLInputElement>, 'onChange' | 'as'> & As;
1431
+ type DefaultInputProps = Omit<HTMLProps<HTMLInputElement>, 'onChange' | 'as'> & AsProp;
1436
1432
  type InputProps = {
1437
1433
  /** The id of the input element */
1438
1434
  id?: string;
@@ -1552,7 +1548,7 @@ declare const Input: react.ForwardRefExoticComponent<(Omit<{
1552
1548
  onClick?: ((event?: MouseEvent$1) => void) | undefined;
1553
1549
  /** A callback function that is run upon clicking the clear icon */
1554
1550
  onClear?: OnClear | undefined;
1555
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Default$1 & Margin & Padding, "ref"> | Omit<{
1551
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & AsProp & Default$1 & Margin & Padding, "ref"> | Omit<{
1556
1552
  /** The id of the input element */
1557
1553
  id?: string | undefined;
1558
1554
  /** Places a label element above the input. The value will set the text of the label */
@@ -1611,7 +1607,7 @@ declare const Input: react.ForwardRefExoticComponent<(Omit<{
1611
1607
  onClick?: ((event?: MouseEvent$1) => void) | undefined;
1612
1608
  /** A callback function that is run upon clicking the clear icon */
1613
1609
  onClear?: OnClear | undefined;
1614
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Phone & Margin & Padding, "ref">) & react.RefAttributes<InputRef>>;
1610
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & AsProp & Phone & Margin & Padding, "ref">) & react.RefAttributes<InputRef>>;
1615
1611
 
1616
1612
  type RestInputProps = Omit<InputProps, 'value' | 'onChange' | 'onError'>;
1617
1613
  type DropdownProps$1<OptionType> = {
@@ -1694,7 +1690,36 @@ declare const Dropdown: {
1694
1690
  Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): react_jsx_runtime.JSX.Element;
1695
1691
  };
1696
1692
 
1697
- type DivProps = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'> & As;
1693
+ type ItemProps$1 = {
1694
+ selected?: boolean;
1695
+ noSelect?: boolean;
1696
+ disabled?: boolean;
1697
+ contentPosition?: FlexPosition;
1698
+ color?: string;
1699
+ accented?: boolean;
1700
+ } & ThemeProp;
1701
+
1702
+ type OptionsItemProps = {
1703
+ children?: ReactNode;
1704
+ /** The id of the Option item */
1705
+ id?: number | string;
1706
+ /** The function to be called when the Option item is clicked */
1707
+ onClick: (event: MouseEvent$1 | Event) => void;
1708
+ /** Controls whether the Option appears to be hovered */
1709
+ selected?: boolean;
1710
+ /** Prevents the Option from appearing to be hovered */
1711
+ noSelect?: boolean;
1712
+ /** Prevents the Option from being selected */
1713
+ disabled?: boolean;
1714
+ /** The flex positioning of the Option contents */
1715
+ contentPosition?: FlexPosition;
1716
+ /** The color of the Option text */
1717
+ color?: string;
1718
+ /** Sets the Option text color to theme.accent */
1719
+ accented?: boolean;
1720
+ };
1721
+
1722
+ type DivProps = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'> & AsProp;
1698
1723
  type WithChildren = {
1699
1724
  children: ReactNode;
1700
1725
  onChange?: never;
@@ -1702,7 +1727,7 @@ type WithChildren = {
1702
1727
  type WithOptions<OptionType> = {
1703
1728
  options: OptionType[];
1704
1729
  /** The function called after an option from the options array is selected */
1705
- onChange?: (option: OptionType, event: Event) => void;
1730
+ onChange?: (option: OptionType, event: MouseEvent$1 | Event) => void;
1706
1731
  };
1707
1732
  type EitherChildrenOrOptions<OptionType> = WithChildren | WithOptions<OptionType>;
1708
1733
  type DropdownMenuProps<OptionType> = {
@@ -1738,27 +1763,12 @@ type DropdownMenuProps<OptionType> = {
1738
1763
  } & EitherChildrenOrOptions<OptionType> & DivProps;
1739
1764
  declare const DropdownMenu: {
1740
1765
  <OptionType extends OptionItem>({ children, options, id, position, trigger, open, offset, arrow, width, maxHeight, container, zIndex, disableScrollLock, onChange, afterShow, afterHide, ...props }: DropdownMenuProps<OptionType>): react_jsx_runtime.JSX.Element;
1741
- Item: ({ children, id, disabled, onClick, ...props }: ItemProps$1) => react_jsx_runtime.JSX.Element;
1766
+ Item: ({ children, id, disabled, onClick, ...props }: OptionsItemProps) => react_jsx_runtime.JSX.Element;
1742
1767
  Sub({ children, id, label, zIndex, disabled, container, ...props }: SubProps): react_jsx_runtime.JSX.Element;
1743
1768
  Separator(): react_jsx_runtime.JSX.Element;
1744
1769
  };
1745
- type BaseItemProps = {
1746
- children: ReactNode;
1747
- disabled?: boolean;
1748
- };
1749
- type ItemProps$1 = {
1750
- /** The id of the item */
1751
- id?: string | number;
1752
- /** The function to be called when the item is clicked */
1753
- onClick?: (event: Event) => void;
1754
- /** The flex positioning of the item contents */
1755
- contentPosition?: FlexPosition;
1756
- /** The color of the item text */
1757
- color?: string;
1758
- /** Sets the item text color to theme.accent */
1759
- accented?: boolean;
1760
- } & BaseItemProps;
1761
1770
  type SubProps = {
1771
+ children?: ReactNode;
1762
1772
  /** The id of the sub menu's content container */
1763
1773
  id?: string;
1764
1774
  /** The text or element to display as the sub menu item's trigger */
@@ -1767,7 +1777,9 @@ type SubProps = {
1767
1777
  zIndex?: number;
1768
1778
  /** Specify a container element to portal the sub menu content into */
1769
1779
  container?: HTMLElement;
1770
- } & BaseItemProps;
1780
+ /** Prevents the Sub menu from being triggered */
1781
+ disabled?: boolean;
1782
+ } & ItemProps$1;
1771
1783
 
1772
1784
  type GridProps = {
1773
1785
  /** If a number, rows creates n number rows of an equal size. If a string, rows sets the gridTemplateRows property */
@@ -1829,14 +1841,7 @@ type FormProps = {
1829
1841
  declare const Form: {
1830
1842
  ({ children, rows, columns, rowGap, columnGap, onSubmit, ...rest }: FormProps): react_jsx_runtime.JSX.Element;
1831
1843
  Group({ children, rows, columns, rowGap, columnGap, disabled, ...rest }: FormGroupProps): react_jsx_runtime.JSX.Element;
1832
- Field({ children, inline, align, disabled, ...props }: {
1833
- /** Sets the flexDirection of the Field to 'row' instead of 'column' */
1834
- inline?: boolean | undefined;
1835
- /** Sets the vertical alignment of the Field's contents */
1836
- align?: "center" | "top" | "bottom" | undefined;
1837
- /** Disables pointer events and reduces the opacity of the Field's contents */
1838
- disabled?: boolean | undefined;
1839
- } & Margin & {
1844
+ Field({ children, inline, align, disabled, ...props }: FieldProps & {
1840
1845
  children?: ReactNode;
1841
1846
  }): react_jsx_runtime.JSX.Element;
1842
1847
  Input: react.ForwardRefExoticComponent<(Omit<{
@@ -1846,8 +1851,8 @@ declare const Form: {
1846
1851
  placeholderColor?: string | undefined;
1847
1852
  description?: string | undefined;
1848
1853
  isLoading?: boolean | undefined;
1849
- iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1850
- iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1854
+ iconLeft?: IconType | undefined;
1855
+ iconRight?: IconType | undefined;
1851
1856
  invalid?: boolean | undefined;
1852
1857
  borderless?: boolean | undefined;
1853
1858
  borderRadius?: string | number | undefined;
@@ -1869,7 +1874,7 @@ declare const Form: {
1869
1874
  onBlur?: ((event?: InputFocusEvent | undefined) => void) | undefined;
1870
1875
  onClick?: ((event?: react.MouseEvent<Element, MouseEvent> | undefined) => void) | undefined;
1871
1876
  onClear?: (() => void) | undefined;
1872
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & {
1877
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & AsProp & {
1873
1878
  phone?: undefined;
1874
1879
  onChange?: ((event: react.ChangeEvent<HTMLInputElement>) => void) | undefined;
1875
1880
  } & Margin & Padding, "ref"> | Omit<{
@@ -1879,8 +1884,8 @@ declare const Form: {
1879
1884
  placeholderColor?: string | undefined;
1880
1885
  description?: string | undefined;
1881
1886
  isLoading?: boolean | undefined;
1882
- iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1883
- iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1887
+ iconLeft?: IconType | undefined;
1888
+ iconRight?: IconType | undefined;
1884
1889
  invalid?: boolean | undefined;
1885
1890
  borderless?: boolean | undefined;
1886
1891
  borderRadius?: string | number | undefined;
@@ -1902,12 +1907,12 @@ declare const Form: {
1902
1907
  onBlur?: ((event?: InputFocusEvent | undefined) => void) | undefined;
1903
1908
  onClick?: ((event?: react.MouseEvent<Element, MouseEvent> | undefined) => void) | undefined;
1904
1909
  onClear?: (() => void) | undefined;
1905
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & {
1910
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & AsProp & {
1906
1911
  phone: true;
1907
1912
  onChange?: ((event: react.ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
1908
1913
  } & Margin & Padding, "ref">) & react.RefAttributes<InputRef>>;
1909
1914
  Dropdown: {
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 }: {
1915
+ <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 }: {
1911
1916
  children?: ReactNode;
1912
1917
  onChange?: ((item: OptionType | null) => void) | undefined;
1913
1918
  onTextChange?: ((text: string) => void) | undefined;
@@ -1945,8 +1950,8 @@ declare const Form: {
1945
1950
  restrictInput?: boolean | ((text: string) => boolean) | undefined;
1946
1951
  inputRef?: react.RefObject<InputRef> | undefined;
1947
1952
  optionsParent?: string | undefined;
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;
1953
+ } & Width & Height & Margin & RestInputProps): react_jsx_runtime.JSX.Element;
1954
+ Item<OptionType_1 extends OptionItem>({ value, displayText, setValue, close, children, contentPosition, color, accented, onClick, id, }: DropdownItemProps<OptionType_1>): react_jsx_runtime.JSX.Element;
1950
1955
  };
1951
1956
  Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
1952
1957
  id?: string | undefined;
@@ -1954,7 +1959,7 @@ declare const Form: {
1954
1959
  labelPosition?: "right" | "left" | undefined;
1955
1960
  disabled?: boolean | undefined;
1956
1961
  checked?: boolean | undefined;
1957
- } & Margin & As & HTMLProps<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
1962
+ } & Margin & AsProp & HTMLProps<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
1958
1963
  Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
1959
1964
  id?: string | undefined;
1960
1965
  label?: string | undefined;
@@ -1962,7 +1967,7 @@ declare const Form: {
1962
1967
  disabled?: boolean | undefined;
1963
1968
  checked?: boolean | undefined;
1964
1969
  onChange: (val: boolean) => void;
1965
- } & Margin & As & src_lib_components_FormControl.CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1970
+ } & Margin & AsProp & CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1966
1971
  Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: {
1967
1972
  id?: string | undefined;
1968
1973
  label?: string | undefined;
@@ -1971,11 +1976,11 @@ declare const Form: {
1971
1976
  checked?: boolean | undefined;
1972
1977
  partial?: boolean | undefined;
1973
1978
  onChange: (val: boolean) => void;
1974
- } & Margin & As & src_lib_components_FormControl.CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1979
+ } & Margin & AsProp & CheckboxAttributes) => react_jsx_runtime.JSX.Element;
1975
1980
  Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: {
1976
1981
  children?: ReactNode;
1977
- iconLeft?: src_lib_components_helpers_getIcon.IconType | undefined;
1978
- iconRight?: src_lib_components_helpers_getIcon.IconType | undefined;
1982
+ iconLeft?: IconType | undefined;
1983
+ iconRight?: IconType | undefined;
1979
1984
  pill?: boolean | undefined;
1980
1985
  disabled?: boolean | undefined;
1981
1986
  } & Margin) => react_jsx_runtime.JSX.Element;
@@ -1985,6 +1990,14 @@ type FormGroupProps = {
1985
1990
  disabled?: boolean;
1986
1991
  children?: ReactNode;
1987
1992
  } & GridProps;
1993
+ type FieldProps = {
1994
+ /** Sets the flexDirection of the Field to 'row' instead of 'column' */
1995
+ inline?: boolean;
1996
+ /** Sets the vertical alignment of the Field's contents */
1997
+ align?: 'top' | 'bottom' | 'center';
1998
+ /** Disables pointer events and reduces the opacity of the Field's contents */
1999
+ disabled?: boolean;
2000
+ } & Margin;
1988
2001
 
1989
2002
  type ImageViewerProps = {
1990
2003
  /** Controls whether or not the ImageViewer is open */
@@ -2150,11 +2163,11 @@ declare const MessageHr: ({ text, color, style, }: {
2150
2163
  /** The text to be displayed */
2151
2164
  text: string | number;
2152
2165
  /** The color of the text displayed */
2153
- color?: string | undefined;
2166
+ color?: string;
2154
2167
  /** Sets the style prop of the text */
2155
2168
  style?: {
2156
2169
  [key: string]: string | number;
2157
- } | undefined;
2170
+ };
2158
2171
  }) => react_jsx_runtime.JSX.Element;
2159
2172
 
2160
2173
  type ModalProps = {
@@ -2293,30 +2306,13 @@ type OptionsProps = {
2293
2306
  direction?: 'left' | 'right' | 'top' | 'bottom';
2294
2307
  /** Overrides the default maxHeight of 200px */
2295
2308
  maxHeight?: number;
2296
- /** The selector (id or className) of the element the options should open in relataion to */
2309
+ /** The selector (id or className) of the element the options should open in relation to */
2297
2310
  parentSelector?: string;
2298
2311
  } & Width;
2299
2312
  declare const Options: {
2300
2313
  ({ id, children, containerRef, parentSelector, width, maxHeight, offsetY, offsetX, centerY, centerX, direction, }: OptionsProps): react_jsx_runtime.JSX.Element;
2301
2314
  Item({ children, id, onClick, selected, noSelect, contentPosition, color, accented, ...props }: OptionsItemProps): react_jsx_runtime.JSX.Element;
2302
2315
  };
2303
- type OptionsItemProps = {
2304
- children?: ReactNode;
2305
- /** The id of the Option item */
2306
- id?: number | string;
2307
- /** The function to be called when the Option item is clicked */
2308
- onClick: (event: MouseEvent$1) => void;
2309
- /** Controls whether the Option appears to be hovered */
2310
- selected?: boolean;
2311
- /** Prevents the Option from appearing to be hovered */
2312
- noSelect?: boolean;
2313
- /** The flex positioning of the Option contents */
2314
- contentPosition?: FlexPosition;
2315
- /** The color of the Option text */
2316
- color?: string;
2317
- /** Sets the Option text color to theme.accent */
2318
- accented?: boolean;
2319
- };
2320
2316
 
2321
2317
  type PaginationProps = {
2322
2318
  /** The callback function that responds with the active page */
@@ -2379,7 +2375,7 @@ type RadioProps = {
2379
2375
  disabled?: boolean;
2380
2376
  /** Controls the checked property of the radio */
2381
2377
  checked?: boolean;
2382
- } & Margin & As & HTMLProps<HTMLInputElement>;
2378
+ } & Margin & AsProp & HTMLProps<HTMLInputElement>;
2383
2379
  declare const Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: RadioProps) => react_jsx_runtime.JSX.Element;
2384
2380
 
2385
2381
  type ResetStylesProps = {
@@ -2486,7 +2482,7 @@ type Sorted<DataType> = {
2486
2482
  children: SortedChildFunc<DataType>;
2487
2483
  };
2488
2484
  type TableTypes<DataType> = Default | Sorted<DataType>;
2489
- type DefaultTableProps = Omit<HTMLProps<HTMLTableElement>, 'as' | 'children' | 'data'> & As;
2485
+ type DefaultTableProps = Omit<HTMLProps<HTMLTableElement>, 'as' | 'children' | 'data'> & AsProp;
2490
2486
  type TableBase = {
2491
2487
  /** If a number, columns creates n number columns of an equal size. If a string, columns sets the gridTemplateColumns property */
2492
2488
  columns?: Columns;
@@ -2513,26 +2509,28 @@ declare const Table: {
2513
2509
  sorted?: SortDir | undefined;
2514
2510
  sortKey?: string | undefined;
2515
2511
  } & {
2512
+ children?: ReactNode;
2516
2513
  contentPosition?: FlexPosition | undefined;
2517
2514
  direction?: FlexDirection | undefined;
2518
2515
  justify?: FlexPosition | undefined;
2519
2516
  align?: FlexPosition | undefined;
2520
2517
  gap?: string | number | undefined;
2521
- } & Omit<react.HTMLProps<HTMLDivElement>, "as"> & As) => react_jsx_runtime.JSX.Element;
2518
+ } & Omit<react.HTMLProps<HTMLDivElement>, "as"> & AsProp) => react_jsx_runtime.JSX.Element;
2522
2519
  Body: ({ children, height, maxHeight, ...rest }: {
2523
2520
  children: ReactNode;
2524
- } & Height & MaxHeight & Omit<react.HTMLProps<HTMLTableSectionElement>, "as"> & As) => react_jsx_runtime.JSX.Element;
2521
+ } & Height & MaxHeight & Omit<react.HTMLProps<HTMLTableSectionElement>, "as"> & AsProp) => react_jsx_runtime.JSX.Element;
2525
2522
  Row: ({ children, columns, onClick, columnStyles, ...rest }: TableHeaderRow) => react_jsx_runtime.JSX.Element;
2526
2523
  Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, ...rest }: {
2527
2524
  children?: ReactNode;
2528
2525
  defaultValue?: string | undefined;
2529
2526
  } & Padding & {
2527
+ children?: ReactNode;
2530
2528
  contentPosition?: FlexPosition | undefined;
2531
2529
  direction?: FlexDirection | undefined;
2532
2530
  justify?: FlexPosition | undefined;
2533
2531
  align?: FlexPosition | undefined;
2534
2532
  gap?: string | number | undefined;
2535
- } & Omit<react.HTMLProps<HTMLDivElement>, "as"> & As) => react_jsx_runtime.JSX.Element;
2533
+ } & Omit<react.HTMLProps<HTMLDivElement>, "as"> & AsProp) => react_jsx_runtime.JSX.Element;
2536
2534
  };
2537
2535
 
2538
2536
  type ToggleProps = {
@@ -2548,7 +2546,7 @@ type ToggleProps = {
2548
2546
  checked?: boolean;
2549
2547
  /** The function called with the toggle value after the toggle is changed */
2550
2548
  onChange: (val: boolean) => void;
2551
- } & Margin & As & CheckboxAttributes;
2549
+ } & Margin & AsProp & CheckboxAttributes;
2552
2550
  declare const Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: ToggleProps) => react_jsx_runtime.JSX.Element;
2553
2551
 
2554
2552
  type TabItem = {
@@ -2722,4 +2720,4 @@ declare const positionProps: ({ position, top, bottom, right, left }: Position)
2722
2720
  left: string | number | undefined;
2723
2721
  };
2724
2722
 
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 };
2723
+ export { Accordion, type AsProp as 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 };
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, HTMLProps } from 'react';
2
- import { Margin, Width, As, AudioRef } from './types';
2
+ import { Margin, Width, AsProp, AudioRef } from './types';
3
3
  type AudioProps = {
4
4
  /** The filepath of the audio source */
5
5
  src: string;
@@ -24,6 +24,6 @@ type AudioProps = {
24
24
  onPlay?: (event: ChangeEvent<HTMLAudioElement>) => void;
25
25
  onPause?: (event: ChangeEvent<HTMLAudioElement>) => void;
26
26
  onStop?: (event: ChangeEvent<HTMLAudioElement>) => void;
27
- } & Margin & Width & As & HTMLProps<HTMLDivElement>;
27
+ } & Margin & Width & AsProp & HTMLProps<HTMLDivElement>;
28
28
  declare const Audio: import("react").ForwardRefExoticComponent<Omit<AudioProps, "ref"> & import("react").RefAttributes<AudioRef>>;
29
29
  export default Audio;
@@ -4,14 +4,14 @@ import { BasicButtonProps, ButtonComponentProps } from './ButtonTypes';
4
4
  /** Button Component */
5
5
  declare const Button: {
6
6
  (props: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
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("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>>)[];
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>>)[];
9
9
  disabled?: boolean | undefined;
10
10
  size?: "small" | "large" | "medium" | undefined;
11
11
  small?: boolean | undefined;
12
12
  large?: boolean | undefined;
13
13
  outline?: boolean | undefined;
14
14
  collapse?: boolean | undefined;
15
- } & import("./ButtonTypes").ButtonStyles & Margin & import("../types").Width) => import("react/jsx-runtime").JSX.Element | null;
15
+ } & import("./ButtonTypes").ButtonStyles) & Margin & import("../types").Width) => import("react/jsx-runtime").JSX.Element | null;
16
16
  };
17
17
  export default Button;
@@ -1,4 +1,4 @@
1
1
  declare const ButtonLoader: ({ size }: {
2
- size?: number | undefined;
2
+ size?: number;
3
3
  }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ButtonLoader;
@@ -1,10 +1,10 @@
1
1
  import { HTMLProps, MouseEvent, ReactNode } from 'react';
2
2
  import { OptionItem } from '../Dropdown/DropdownUtils';
3
3
  import { IconNames } from '../Icon/icons';
4
- import { Margin, As } from '../types';
4
+ import { Margin, AsProp } from '../types';
5
5
  type ButtonAttributes = Omit<HTMLProps<HTMLButtonElement>, 'as' | 'type' | 'size'> & {
6
6
  type?: 'button' | 'reset' | 'submit';
7
- } & As;
7
+ } & AsProp;
8
8
  type ButtonBaseProps = {
9
9
  children?: ReactNode;
10
10
  joined?: 'left' | 'right' | 'middle';
@@ -30,7 +30,7 @@ export declare const ChartContainer: import("@emotion/styled").StyledComponent<{
30
30
  export declare const TooltipContent: ({ active, payload, label }: TooltipProps<number, string>) => import("react/jsx-runtime").JSX.Element | null;
31
31
  export declare const Tooltip: () => import("react/jsx-runtime").JSX.Element;
32
32
  export declare const LegendContent: ({ payload, toggleData, }: {
33
- payload?: Payload[] | undefined;
34
- toggleData?: ((item: Payload) => void) | undefined;
33
+ payload?: Payload[];
34
+ toggleData?: (item: Payload) => void;
35
35
  }) => import("react/jsx-runtime").JSX.Element;
36
36
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CheckboxAttributes } from './FormControl';
2
- import { Margin, As } from './types';
2
+ import { Margin, AsProp } from './types';
3
3
  type CheckboxProps = {
4
4
  /** Id of the input element */
5
5
  id?: string;
@@ -15,6 +15,6 @@ type CheckboxProps = {
15
15
  partial?: boolean;
16
16
  /** The function called with the checkbox value after the checkbox is changed */
17
17
  onChange: (val: boolean) => void;
18
- } & Margin & As & CheckboxAttributes;
18
+ } & Margin & AsProp & CheckboxAttributes;
19
19
  declare const Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export default Checkbox;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
2
  import { InputProps } from '../Input';
3
- import { Margin, WidthHeight, InputFocusEvent, InputRef } from '../types';
4
- import { OptionItem, DropdownItemProps } from './DropdownUtils';
3
+ import { InputFocusEvent, InputRef, Margin, WidthHeight } from '../types';
4
+ import { DropdownItemProps, OptionItem } from './DropdownUtils';
5
5
  export type RestInputProps = Omit<InputProps, 'value' | 'onChange' | 'onError'>;
6
6
  type DropdownProps<OptionType> = {
7
7
  children?: ReactNode;