@wavv/ui 2.0.0-alpha.2 → 2.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/build/cjs/index.js +16 -7
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/assets/icons/Dash.d.ts +3 -0
  4. package/build/cjs/types/assets/icons/Funnel.d.ts +3 -0
  5. package/build/cjs/types/assets/icons/LocalArea.d.ts +3 -0
  6. package/build/cjs/types/assets/icons/Location.d.ts +3 -0
  7. package/build/cjs/types/assets/icons/Notes.d.ts +3 -0
  8. package/build/cjs/types/assets/icons/Shield.d.ts +3 -0
  9. package/build/cjs/types/assets/icons/ShieldHealth.d.ts +3 -0
  10. package/build/cjs/types/components/Button/Button.d.ts +1 -1
  11. package/build/cjs/types/components/Button/ButtonTypes.d.ts +9 -8
  12. package/build/cjs/types/components/Button/index.d.ts +1 -2
  13. package/build/cjs/types/components/Calendar.d.ts +6 -9
  14. package/build/cjs/types/components/CalendarParts/CalendarContainerStyles.d.ts +7 -0
  15. package/build/cjs/types/components/CalendarParts/CalendarContent.d.ts +7 -0
  16. package/build/cjs/types/components/CalendarParts/CalendarHeader.d.ts +2 -0
  17. package/build/cjs/types/components/CalendarParts/useMinMax.d.ts +12 -0
  18. package/build/cjs/types/components/CalendarParts/utils.d.ts +4 -0
  19. package/build/cjs/types/components/ComboBox.d.ts +17 -0
  20. package/build/cjs/types/components/DraftEditor.d.ts +1 -3
  21. package/build/cjs/types/components/Dropdown/Dropdown.d.ts +4 -4
  22. package/build/cjs/types/components/Dropdown/DropdownUtils.d.ts +4 -13
  23. package/build/cjs/types/components/Dropdown/index.d.ts +0 -1
  24. package/build/cjs/types/components/DropdownMenu.d.ts +16 -55
  25. package/build/cjs/types/components/DropdownMenuParts/Menu.d.ts +8 -0
  26. package/build/cjs/types/components/DropdownMenuParts/MenuItem.d.ts +5 -0
  27. package/build/cjs/types/components/Form.d.ts +2 -4
  28. package/build/cjs/types/components/Icon/icons.d.ts +7 -0
  29. package/build/cjs/types/components/Input.d.ts +0 -6
  30. package/build/cjs/types/components/InputHelpers.d.ts +0 -3
  31. package/build/cjs/types/components/Inputs/DatePicker.d.ts +9 -0
  32. package/build/cjs/types/components/Inputs/DateRangePicker.d.ts +10 -0
  33. package/build/cjs/types/components/Inputs/NumberInput.d.ts +5 -0
  34. package/build/cjs/types/components/Inputs/TextInput.d.ts +5 -0
  35. package/build/cjs/types/components/Inputs/helpers/AriaButton.d.ts +5 -0
  36. package/build/cjs/types/components/Inputs/helpers/DateSegment.d.ts +8 -0
  37. package/build/cjs/types/components/Inputs/helpers/Description.d.ts +6 -0
  38. package/build/cjs/types/components/Inputs/helpers/ErrorMessage.d.ts +6 -0
  39. package/build/cjs/types/components/Inputs/helpers/Input.d.ts +11 -0
  40. package/build/cjs/types/components/Inputs/helpers/InputContainerStyles.d.ts +13 -0
  41. package/build/cjs/types/components/Inputs/helpers/InputMessage.d.ts +9 -0
  42. package/build/cjs/types/components/Inputs/helpers/InputStyles.d.ts +11 -0
  43. package/build/cjs/types/components/Inputs/helpers/Label.d.ts +9 -0
  44. package/build/cjs/types/components/Inputs/helpers/LabelWrapper.d.ts +8 -0
  45. package/build/cjs/types/components/Inputs/helpers/PickerToggle.d.ts +6 -0
  46. package/build/cjs/types/components/Inputs/helpers/useInputFocus.d.ts +8 -0
  47. package/build/cjs/types/components/ListBoxParts/ListBox.d.ts +8 -0
  48. package/build/cjs/types/components/ListBoxParts/ListBoxItem.d.ts +5 -0
  49. package/build/cjs/types/components/ListHelpers/ItemHeaderBody.d.ts +7 -0
  50. package/build/cjs/types/components/ListHelpers/ListHeader.d.ts +6 -0
  51. package/build/cjs/types/components/ListHelpers/ListItemStyles.d.ts +16 -0
  52. package/build/cjs/types/components/ListHelpers/ListSection.d.ts +8 -0
  53. package/build/cjs/types/components/ListHelpers/ListStyles.d.ts +11 -0
  54. package/build/cjs/types/components/Modal.d.ts +3 -1
  55. package/build/cjs/types/components/MultiSelect.d.ts +4 -4
  56. package/build/cjs/types/components/OptionHelpers/Item.d.ts +2 -0
  57. package/build/cjs/types/components/OptionHelpers/types.d.ts +2 -0
  58. package/build/cjs/types/components/Options.d.ts +1 -1
  59. package/build/cjs/types/components/RangeCalendar.d.ts +13 -0
  60. package/build/cjs/types/components/Select.d.ts +12 -63
  61. package/build/cjs/types/components/componentTypes.d.ts +61 -0
  62. package/build/cjs/types/components/helpers/styledProps.d.ts +6 -26
  63. package/build/cjs/types/components/types.d.ts +59 -2
  64. package/build/cjs/types/hooks/useSelect.d.ts +3 -2
  65. package/build/cjs/types/index.d.ts +7 -2
  66. package/build/cjs/types/theme/ThemeTypes.d.ts +2 -0
  67. package/build/esm/index.js +16 -7
  68. package/build/esm/index.js.map +1 -1
  69. package/build/esm/types/assets/icons/Dash.d.ts +3 -0
  70. package/build/esm/types/assets/icons/Funnel.d.ts +3 -0
  71. package/build/esm/types/assets/icons/LocalArea.d.ts +3 -0
  72. package/build/esm/types/assets/icons/Location.d.ts +3 -0
  73. package/build/esm/types/assets/icons/Notes.d.ts +3 -0
  74. package/build/esm/types/assets/icons/Shield.d.ts +3 -0
  75. package/build/esm/types/assets/icons/ShieldHealth.d.ts +3 -0
  76. package/build/esm/types/components/Button/Button.d.ts +1 -1
  77. package/build/esm/types/components/Button/ButtonTypes.d.ts +9 -8
  78. package/build/esm/types/components/Button/index.d.ts +1 -2
  79. package/build/esm/types/components/Calendar.d.ts +6 -9
  80. package/build/esm/types/components/CalendarParts/CalendarContainerStyles.d.ts +7 -0
  81. package/build/esm/types/components/CalendarParts/CalendarContent.d.ts +7 -0
  82. package/build/esm/types/components/CalendarParts/CalendarHeader.d.ts +2 -0
  83. package/build/esm/types/components/CalendarParts/useMinMax.d.ts +12 -0
  84. package/build/esm/types/components/CalendarParts/utils.d.ts +4 -0
  85. package/build/esm/types/components/ComboBox.d.ts +17 -0
  86. package/build/esm/types/components/DraftEditor.d.ts +1 -3
  87. package/build/esm/types/components/Dropdown/Dropdown.d.ts +4 -4
  88. package/build/esm/types/components/Dropdown/DropdownUtils.d.ts +4 -13
  89. package/build/esm/types/components/Dropdown/index.d.ts +0 -1
  90. package/build/esm/types/components/DropdownMenu.d.ts +16 -55
  91. package/build/esm/types/components/DropdownMenuParts/Menu.d.ts +8 -0
  92. package/build/esm/types/components/DropdownMenuParts/MenuItem.d.ts +5 -0
  93. package/build/esm/types/components/Form.d.ts +2 -4
  94. package/build/esm/types/components/Icon/icons.d.ts +7 -0
  95. package/build/esm/types/components/Input.d.ts +0 -6
  96. package/build/esm/types/components/InputHelpers.d.ts +0 -3
  97. package/build/esm/types/components/Inputs/DatePicker.d.ts +9 -0
  98. package/build/esm/types/components/Inputs/DateRangePicker.d.ts +10 -0
  99. package/build/esm/types/components/Inputs/NumberInput.d.ts +5 -0
  100. package/build/esm/types/components/Inputs/TextInput.d.ts +5 -0
  101. package/build/esm/types/components/Inputs/helpers/AriaButton.d.ts +5 -0
  102. package/build/esm/types/components/Inputs/helpers/DateSegment.d.ts +8 -0
  103. package/build/esm/types/components/Inputs/helpers/Description.d.ts +6 -0
  104. package/build/esm/types/components/Inputs/helpers/ErrorMessage.d.ts +6 -0
  105. package/build/esm/types/components/Inputs/helpers/Input.d.ts +11 -0
  106. package/build/esm/types/components/Inputs/helpers/InputContainerStyles.d.ts +13 -0
  107. package/build/esm/types/components/Inputs/helpers/InputMessage.d.ts +9 -0
  108. package/build/esm/types/components/Inputs/helpers/InputStyles.d.ts +11 -0
  109. package/build/esm/types/components/Inputs/helpers/Label.d.ts +9 -0
  110. package/build/esm/types/components/Inputs/helpers/LabelWrapper.d.ts +8 -0
  111. package/build/esm/types/components/Inputs/helpers/PickerToggle.d.ts +6 -0
  112. package/build/esm/types/components/Inputs/helpers/useInputFocus.d.ts +8 -0
  113. package/build/esm/types/components/ListBoxParts/ListBox.d.ts +8 -0
  114. package/build/esm/types/components/ListBoxParts/ListBoxItem.d.ts +5 -0
  115. package/build/esm/types/components/ListHelpers/ItemHeaderBody.d.ts +7 -0
  116. package/build/esm/types/components/ListHelpers/ListHeader.d.ts +6 -0
  117. package/build/esm/types/components/ListHelpers/ListItemStyles.d.ts +16 -0
  118. package/build/esm/types/components/ListHelpers/ListSection.d.ts +8 -0
  119. package/build/esm/types/components/ListHelpers/ListStyles.d.ts +11 -0
  120. package/build/esm/types/components/Modal.d.ts +3 -1
  121. package/build/esm/types/components/MultiSelect.d.ts +4 -4
  122. package/build/esm/types/components/OptionHelpers/Item.d.ts +2 -0
  123. package/build/esm/types/components/OptionHelpers/types.d.ts +2 -0
  124. package/build/esm/types/components/Options.d.ts +1 -1
  125. package/build/esm/types/components/RangeCalendar.d.ts +13 -0
  126. package/build/esm/types/components/Select.d.ts +12 -63
  127. package/build/esm/types/components/componentTypes.d.ts +61 -0
  128. package/build/esm/types/components/helpers/styledProps.d.ts +6 -26
  129. package/build/esm/types/components/types.d.ts +59 -2
  130. package/build/esm/types/hooks/useSelect.d.ts +3 -2
  131. package/build/esm/types/index.d.ts +7 -2
  132. package/build/esm/types/theme/ThemeTypes.d.ts +2 -0
  133. package/build/index.d.ts +809 -763
  134. package/build/types/assets/icons/Dash.d.ts +3 -0
  135. package/build/types/assets/icons/Funnel.d.ts +3 -0
  136. package/build/types/assets/icons/LocalArea.d.ts +3 -0
  137. package/build/types/assets/icons/Location.d.ts +3 -0
  138. package/build/types/assets/icons/Notes.d.ts +3 -0
  139. package/build/types/assets/icons/Shield.d.ts +3 -0
  140. package/build/types/assets/icons/ShieldHealth.d.ts +3 -0
  141. package/build/types/components/Button/Button.d.ts +1 -1
  142. package/build/types/components/Button/ButtonTypes.d.ts +9 -8
  143. package/build/types/components/Button/index.d.ts +1 -2
  144. package/build/types/components/Calendar.d.ts +6 -9
  145. package/build/types/components/CalendarParts/CalendarContainerStyles.d.ts +7 -0
  146. package/build/types/components/CalendarParts/CalendarContent.d.ts +7 -0
  147. package/build/types/components/CalendarParts/CalendarHeader.d.ts +2 -0
  148. package/build/types/components/CalendarParts/useMinMax.d.ts +12 -0
  149. package/build/types/components/CalendarParts/utils.d.ts +4 -0
  150. package/build/types/components/ComboBox.d.ts +17 -0
  151. package/build/types/components/DraftEditor.d.ts +1 -3
  152. package/build/types/components/Dropdown/Dropdown.d.ts +4 -4
  153. package/build/types/components/Dropdown/DropdownUtils.d.ts +4 -13
  154. package/build/types/components/Dropdown/index.d.ts +0 -1
  155. package/build/types/components/DropdownMenu.d.ts +16 -55
  156. package/build/types/components/DropdownMenuParts/Menu.d.ts +8 -0
  157. package/build/types/components/DropdownMenuParts/MenuItem.d.ts +5 -0
  158. package/build/types/components/Form.d.ts +2 -4
  159. package/build/types/components/Icon/icons.d.ts +7 -0
  160. package/build/types/components/Input.d.ts +0 -6
  161. package/build/types/components/InputHelpers.d.ts +0 -3
  162. package/build/types/components/Inputs/DatePicker.d.ts +9 -0
  163. package/build/types/components/Inputs/DateRangePicker.d.ts +10 -0
  164. package/build/types/components/Inputs/NumberInput.d.ts +5 -0
  165. package/build/types/components/Inputs/TextInput.d.ts +5 -0
  166. package/build/types/components/Inputs/helpers/AriaButton.d.ts +5 -0
  167. package/build/types/components/Inputs/helpers/DateSegment.d.ts +8 -0
  168. package/build/types/components/Inputs/helpers/Description.d.ts +6 -0
  169. package/build/types/components/Inputs/helpers/ErrorMessage.d.ts +6 -0
  170. package/build/types/components/Inputs/helpers/Input.d.ts +11 -0
  171. package/build/types/components/Inputs/helpers/InputContainerStyles.d.ts +13 -0
  172. package/build/types/components/Inputs/helpers/InputMessage.d.ts +9 -0
  173. package/build/types/components/Inputs/helpers/InputStyles.d.ts +11 -0
  174. package/build/types/components/Inputs/helpers/Label.d.ts +9 -0
  175. package/build/types/components/Inputs/helpers/LabelWrapper.d.ts +8 -0
  176. package/build/types/components/Inputs/helpers/PickerToggle.d.ts +6 -0
  177. package/build/types/components/Inputs/helpers/useInputFocus.d.ts +8 -0
  178. package/build/types/components/ListBoxParts/ListBox.d.ts +8 -0
  179. package/build/types/components/ListBoxParts/ListBoxItem.d.ts +5 -0
  180. package/build/types/components/ListHelpers/ItemHeaderBody.d.ts +7 -0
  181. package/build/types/components/ListHelpers/ListHeader.d.ts +6 -0
  182. package/build/types/components/ListHelpers/ListItemStyles.d.ts +16 -0
  183. package/build/types/components/ListHelpers/ListSection.d.ts +8 -0
  184. package/build/types/components/ListHelpers/ListStyles.d.ts +11 -0
  185. package/build/types/components/Modal.d.ts +3 -1
  186. package/build/types/components/MultiSelect.d.ts +4 -4
  187. package/build/types/components/OptionHelpers/Item.d.ts +2 -0
  188. package/build/types/components/OptionHelpers/types.d.ts +2 -0
  189. package/build/types/components/Options.d.ts +1 -1
  190. package/build/types/components/RangeCalendar.d.ts +13 -0
  191. package/build/types/components/Select.d.ts +12 -63
  192. package/build/types/components/componentTypes.d.ts +61 -0
  193. package/build/types/components/helpers/styledProps.d.ts +6 -26
  194. package/build/types/components/types.d.ts +59 -2
  195. package/build/types/hooks/useSelect.d.ts +3 -2
  196. package/build/types/index.d.ts +7 -2
  197. package/build/types/theme/ThemeTypes.d.ts +2 -0
  198. package/package.json +9 -9
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ThemeProp } from '../../types';
3
+ declare const Label: import("@emotion/styled").StyledComponent<import("react-aria-components").LabelProps & import("react").RefAttributes<HTMLLabelElement> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ } & {
6
+ filled?: boolean | undefined;
7
+ disabled?: boolean | undefined;
8
+ } & ThemeProp, {}, {}>;
9
+ export default Label;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const LabelWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ } & {
6
+ readOnly?: boolean | undefined;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export default LabelWrapper;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ThemeProp } from '../../types';
3
+ declare const PickerToggle: import("@emotion/styled").StyledComponent<import("react-aria-components").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ } & ThemeProp, {}, {}>;
6
+ export default PickerToggle;
@@ -0,0 +1,8 @@
1
+ import { FocusEvent } from 'react';
2
+ type FocusCallBack = (event: FocusEvent) => void;
3
+ declare const useInputFocus: (onFocus?: FocusCallBack, onBlur?: FocusCallBack, focusCondition?: boolean) => {
4
+ focused: boolean;
5
+ handleFocus: (event: FocusEvent) => void;
6
+ handleBlur: (event: FocusEvent) => void;
7
+ };
8
+ export default useInputFocus;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const ListBox: import("@emotion/styled").StyledComponent<import("react-aria-components").ListBoxProps<object> & import("react").RefAttributes<HTMLDivElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ } & {
5
+ zIndex?: number | undefined;
6
+ autoWidth?: boolean | undefined;
7
+ } & import("../types").Width & import("../types").ThemeProp, {}, {}>;
8
+ export default ListBox;
@@ -0,0 +1,5 @@
1
+ import { ListBoxItemProps } from 'react-aria-components';
2
+ import { SelectItem } from '../componentTypes';
3
+ type Props = SelectItem & Omit<ListBoxItemProps, 'value' | 'id'>;
4
+ declare const ListBoxItem: ({ id, value, header, body, leftElement, rightElement, inline, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default ListBoxItem;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ header: string;
3
+ body: string;
4
+ inline?: boolean;
5
+ };
6
+ declare const ItemHeaderBody: ({ header, body, inline }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export default ItemHeaderBody;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ThemeProp } from '../types';
3
+ declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ } & ThemeProp, {}, {}>;
6
+ export default ListHeader;
@@ -0,0 +1,16 @@
1
+ import { CSSObject } from '@emotion/styled';
2
+ import { FlexPosition, ThemeProp } from '../types';
3
+ export declare const preventProps: {
4
+ shouldForwardProp: (prop: string) => boolean;
5
+ };
6
+ export type ListItemStyleProps = {
7
+ selected?: boolean;
8
+ noSelect?: boolean;
9
+ disabled?: boolean;
10
+ contentPosition?: FlexPosition;
11
+ color?: string;
12
+ accented?: boolean;
13
+ } & ThemeProp;
14
+ type Props = ListItemStyleProps & Required<ThemeProp>;
15
+ declare const listItemStyles: (({ theme: { optionItem, scale4 }, color, accented, selected, disabled, noSelect, }: Props) => CSSObject)[];
16
+ export default listItemStyles;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type SecProps = {
3
+ id?: string;
4
+ title?: string;
5
+ children: ReactNode;
6
+ };
7
+ declare const ListSection: ({ id, title, children }: SecProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default ListSection;
@@ -0,0 +1,11 @@
1
+ import { CSSObject } from '@emotion/styled';
2
+ import { ThemeProp, Width } from '../types';
3
+ export declare const preventProps: {
4
+ shouldForwardProp: (prop: string) => boolean;
5
+ };
6
+ export type ListProps = {
7
+ zIndex?: number;
8
+ autoWidth?: boolean;
9
+ } & Width & ThemeProp;
10
+ declare const listStyles: (({ theme, width, zIndex, autoWidth }: ListProps & Required<ThemeProp>) => CSSObject)[];
11
+ export default listStyles;
@@ -13,6 +13,8 @@ type ModalProps = {
13
13
  closeIcon?: boolean;
14
14
  /** Prevents the Modal from closing if the overlay outside the modal is clicked */
15
15
  preventOverlayClose?: boolean;
16
+ /** Blurs the background behind the modal */
17
+ overlayBlur?: boolean | number;
16
18
  /** Sets the color of the modal overlay */
17
19
  overlayColor?: string;
18
20
  /** Overrides the backgroundColor of the modal container */
@@ -39,7 +41,7 @@ type ModalProps = {
39
41
  zIndex?: number;
40
42
  } & WidthHeight & Padding;
41
43
  declare const Modal: {
42
- ({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, position, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, zIndex, }: ModalProps): import("react").ReactPortal | null;
44
+ ({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, position, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, zIndex, }: ModalProps): import("react").ReactPortal | null;
43
45
  Header: import("@emotion/styled").StyledComponent<{
44
46
  theme?: import("@emotion/react").Theme | undefined;
45
47
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -1,6 +1,6 @@
1
- import React, { ReactNode } from 'react';
2
- import { DropdownOption, InputProps } from './Dropdown';
3
- import { Width, Margin, MultiSelectRef } from './types';
1
+ import { ReactNode } from 'react';
2
+ import { InputProps } from './Dropdown';
3
+ import { OptionItem as DropdownOption, Margin, MultiSelectRef, Width } from './types';
4
4
  type DropdownProps = Omit<InputProps, 'children'>;
5
5
  type MultiSelectProps = {
6
6
  /** The list of dropdown options to display */
@@ -42,5 +42,5 @@ type MultiSelectProps = {
42
42
  /** The function to be called when the input is updated */
43
43
  onTextChange?: (text: string) => void;
44
44
  } & Width & Margin & DropdownProps;
45
- declare const MultiSelect: React.ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & React.RefAttributes<MultiSelectRef>>;
45
+ declare const MultiSelect: import("react").ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & import("react").RefAttributes<MultiSelectRef>>;
46
46
  export default MultiSelect;
@@ -7,6 +7,7 @@ export type ItemProps = {
7
7
  contentPosition?: FlexPosition;
8
8
  color?: string;
9
9
  accented?: boolean;
10
+ section?: boolean;
10
11
  } & ThemeProp;
11
12
  declare const Item: import("@emotion/styled").StyledComponent<{
12
13
  theme?: import("@emotion/react").Theme | undefined;
@@ -18,5 +19,6 @@ declare const Item: import("@emotion/styled").StyledComponent<{
18
19
  contentPosition?: FlexPosition | undefined;
19
20
  color?: string | undefined;
20
21
  accented?: boolean | undefined;
22
+ section?: boolean | undefined;
21
23
  } & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
24
  export default Item;
@@ -18,4 +18,6 @@ export type OptionsItemProps = {
18
18
  color?: string;
19
19
  /** Sets the Option text color to theme.accent */
20
20
  accented?: boolean;
21
+ /** Sets the Option as a section separator */
22
+ section?: boolean;
21
23
  };
@@ -24,6 +24,6 @@ type OptionsProps = {
24
24
  } & Width;
25
25
  declare const Options: {
26
26
  ({ id, children, containerRef, parentSelector, width, maxHeight, offsetY, offsetX, centerY, centerX, direction, }: OptionsProps): import("react/jsx-runtime").JSX.Element;
27
- Item({ children, id, onClick, selected, noSelect, contentPosition, color, accented, ...props }: OptionsItemProps): import("react/jsx-runtime").JSX.Element;
27
+ Item({ children, id, onClick, selected, noSelect, contentPosition, color, accented, section, ...props }: OptionsItemProps): import("react/jsx-runtime").JSX.Element;
28
28
  };
29
29
  export default Options;
@@ -0,0 +1,13 @@
1
+ import { CalendarDate } from '@internationalized/date';
2
+ import { RangeCalendarProps } from 'react-aria-components';
3
+ import type { CalendarBaseProps } from './componentTypes';
4
+ type Props = {
5
+ /** Optional date the initial selected calendar range should start from. */
6
+ startDate?: Date;
7
+ /** Optional date the initial selected calendar range should end on. */
8
+ endDate?: Date;
9
+ /** The function to be called when a date range is selected */
10
+ onChange: (start: Date, end: Date) => void;
11
+ } & CalendarBaseProps & Omit<RangeCalendarProps<CalendarDate>, 'onChange'>;
12
+ declare const RangeCalendar: ({ startDate, endDate, onChange, preventPast, preventFuture, noShadow, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export default RangeCalendar;
@@ -1,65 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { OptionItem } from './Dropdown/DropdownUtils';
3
- import { Margin, WidthHeight } from './types';
4
- type SelectProps<OptionType> = {
5
- /** The function to be called when an option is selected */
6
- onChange?: (item: OptionType | null) => void;
7
- /** The value of the Select */
8
- value?: string;
9
- /** The function to be called when the Select is opened */
10
- afterShow?: () => void;
11
- /** The function to be called when the Select is closed */
12
- afterHide?: () => void;
13
- /** Sets the input placeholder text */
14
- placeholder?: string;
15
- /** Sets the input placeholder color */
16
- placeholderColor?: string;
17
- /** The options to be displayed */
18
- options?: OptionType[];
19
- /** Removes the border from the Select input */
20
- borderless?: boolean;
21
- /** Sets the input borderColor */
22
- borderColor?: string;
23
- /** Sets the input backgroundColor */
24
- backgroundColor?: string;
25
- /** Removes the border and background-color from the Select input */
26
- textOnly?: boolean;
27
- /** Adds a label to the Select input */
28
- label?: string;
29
- /** Sets the id of the Select input or trigger */
30
- id?: string;
31
- /** Sets the Select fontSize */
32
- fontSize?: number | string;
33
- /** Places a description message below the Select */
34
- description?: string;
35
- /** Disables the Select */
36
- disabled?: boolean;
37
- /** Sets the Select's bottom border and description text to red */
38
- invalid?: boolean;
39
- /** zIndex of the menu's portal container */
40
- zIndex?: number;
41
- /** Controls the open state of the menu */
42
- open?: boolean;
43
- } & WidthHeight & Margin;
44
- declare const Select: <OptionType extends OptionItem>({ onChange, afterShow, afterHide, placeholder, placeholderColor, value, options, borderless, borderColor, backgroundColor, textOnly, width, label, id, fontSize, description, disabled, invalid, zIndex, open, ...props }: SelectProps<OptionType>) => import("react/jsx-runtime").JSX.Element;
45
- export declare const Trigger: import("@emotion/styled").StyledComponent<{
46
- theme?: import("@emotion/react").Theme | undefined;
47
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
48
- } & {
49
- backgroundColor?: string | undefined;
50
- borderRadius?: string | number | undefined;
51
- borderless?: boolean | undefined;
52
- borderColor?: string | undefined;
53
- fontSize?: string | number | undefined;
54
- placeholderColor?: string | undefined;
55
- pointer?: boolean | undefined;
56
- readOnly?: boolean | undefined;
57
- textOnly?: boolean | undefined;
58
- focused?: boolean | undefined;
59
- invalid?: boolean | undefined;
60
- disabled?: boolean | undefined;
61
- hasLabel?: boolean | undefined;
62
- } & import("./types").Width & import("./types").Height & Margin & import("./types").Padding & import("./types").ThemeProp & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
63
- theme?: import("@emotion/react").Theme | undefined;
64
- }, {}, {}>;
2
+ import { SelectProps } from 'react-aria-components';
3
+ import { SelectInputProps } from './componentTypes';
4
+ type Props = SelectInputProps & Omit<SelectProps<object>, 'children' | 'onSelectionChange'>;
5
+ declare const Select: {
6
+ ({ backgroundColor, children, fontSize, isDisabled, label, open, options, placeholder, placeholderColor, textOnly, value, width, onChange, afterShow, afterHide, ...props }: Props): import("react/jsx-runtime").JSX.Element;
7
+ Item: ({ id, value, header, body, leftElement, rightElement, inline, ...props }: import("./componentTypes").SelectItem & Omit<import("react-aria-components").ListBoxItemProps<object>, "value" | "id">) => import("react/jsx-runtime").JSX.Element;
8
+ Section: ({ id, title, children }: {
9
+ id?: string | undefined;
10
+ title?: string | undefined;
11
+ children: import("react").ReactNode;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ };
65
14
  export default Select;
@@ -0,0 +1,61 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { Key } from 'react-aria-components';
3
+ import { InputProps, Margin, Width } from './types';
4
+ export type ListItem = {
5
+ /** The id of the option that will be returned on selection */
6
+ id?: number | string;
7
+ /** The value displayed within the input after selection */
8
+ value: string;
9
+ /** The header text displayed above the body text */
10
+ header?: string;
11
+ /** The body text displayed below the header text */
12
+ body?: string;
13
+ /** An element to be displayed on the left side of the item */
14
+ leftElement?: ReactElement;
15
+ /** An element to be displayed on the right side of the item */
16
+ rightElement?: ReactElement;
17
+ /** Displays the header & body inline rather than column */
18
+ inline?: boolean;
19
+ /** Disables the Item from being clicked */
20
+ isDisabled?: boolean;
21
+ /** The function to be called when the item is clicked */
22
+ onClick?: () => void;
23
+ };
24
+ export type SelectItem = Omit<ListItem, 'onClick'>;
25
+ export type SelectInputProps = {
26
+ /** The option Items to be displayed in the menu */
27
+ children?: ReactNode;
28
+ /** The options to be displayed in the menu */
29
+ options?: SelectItem[];
30
+ /** The controlled value of the input */
31
+ value?: Key;
32
+ /** Adds a label to the input */
33
+ label?: string;
34
+ /** Sets the placeholder text */
35
+ placeholder?: string;
36
+ /** Sets the placeholder color */
37
+ placeholderColor?: string;
38
+ /** Sets the input's backgroundColor */
39
+ backgroundColor?: string;
40
+ /** Removes the background color from the input */
41
+ textOnly?: boolean;
42
+ /** Sets the fontSize */
43
+ fontSize?: number | string;
44
+ /** Controls the open state of the menu */
45
+ open?: boolean;
46
+ /** The function to be called when an option is selected */
47
+ onChange?: (key: Key) => void;
48
+ /** The function to be called when the menu is opened */
49
+ afterShow?: () => void;
50
+ /** The function to be called when the menu is closed */
51
+ afterHide?: () => void;
52
+ } & Width & Margin;
53
+ export type CalendarBaseProps = {
54
+ /** Prevents selection of dates in the past (relative to the set date or current date). */
55
+ preventPast?: boolean | Date;
56
+ /** Prevents selection of dates in the future (relative to the set date or current date). */
57
+ preventFuture?: boolean | Date;
58
+ /** Removes the Calendar's boxShadow */
59
+ noShadow?: boolean;
60
+ };
61
+ export type DateInputProps = Pick<SelectInputProps, 'open' | 'afterShow' | 'afterHide'> & Omit<CalendarBaseProps, 'noShadow'> & Omit<InputProps, 'placeholder'>;
@@ -1,26 +1,6 @@
1
- import type { Position, Margin, Padding, WidthHeight } from '../types';
2
- export declare const widthHeightProps: ({ width, height }: WidthHeight) => {
3
- width: string | number | undefined;
4
- height: string | number | undefined;
5
- };
6
- export declare const paddingProps: ({ padding, paddingTop, paddingBottom, paddingRight, paddingLeft }: Padding) => {
7
- padding: string | number | undefined;
8
- paddingTop: string | number | undefined;
9
- paddingBottom: string | number | undefined;
10
- paddingRight: string | number | undefined;
11
- paddingLeft: string | number | undefined;
12
- };
13
- export declare const marginProps: ({ margin, marginTop, marginBottom, marginRight, marginLeft }: Margin) => {
14
- margin: string | number | undefined;
15
- marginTop: string | number | undefined;
16
- marginBottom: string | number | undefined;
17
- marginRight: string | number | undefined;
18
- marginLeft: string | number | undefined;
19
- };
20
- export declare const positionProps: ({ position, top, bottom, right, left }: Position) => {
21
- position: import("../types").PositionType | undefined;
22
- top: string | number | undefined;
23
- bottom: string | number | undefined;
24
- right: string | number | undefined;
25
- left: string | number | undefined;
26
- };
1
+ import { CSSObject } from '@emotion/react';
2
+ import type { Margin, Padding, Position, WidthHeight } from '../types';
3
+ export declare const widthHeightProps: ({ width, height }: WidthHeight) => CSSObject;
4
+ export declare const paddingProps: ({ padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: Padding) => CSSObject;
5
+ export declare const marginProps: ({ margin, marginTop, marginBottom, marginRight, marginLeft }: Margin) => CSSObject;
6
+ export declare const positionProps: ({ position, top, bottom, right, left }: Position) => CSSObject;
@@ -1,4 +1,6 @@
1
- import { ComponentPropsWithoutRef, ElementType, FocusEvent } from 'react';
1
+ import { ComponentPropsWithoutRef, ElementType, FocusEvent, MouseEvent, ReactElement, RefObject } from 'react';
2
+ import { ValidationResult } from 'react-aria-components';
3
+ import type { IconType } from './helpers/getIcon';
2
4
  export type { ThemeProp } from '../theme';
3
5
  export type Margin = {
4
6
  margin?: number | string;
@@ -54,7 +56,7 @@ export type MergeWithAs<Component extends As, Props extends object> = Omit<Props
54
56
  as?: Component;
55
57
  };
56
58
  export type ComponentPropsWithAs<Component extends As, Props extends object> = Omit<ComponentPropsWithoutRef<Component>, keyof MergeWithAs<Component, Props>> & MergeWithAs<Component, Props>;
57
- export type InputFocusEvent = FocusEvent<HTMLInputElement>;
59
+ export type InputFocusEvent = FocusEvent | FocusEvent<HTMLInputElement>;
58
60
  export type MergeField = {
59
61
  id: string;
60
62
  label: string;
@@ -82,4 +84,59 @@ type Left = 'left center' | 'left top' | 'left bottom';
82
84
  type Right = 'right center' | 'right top' | 'right bottom';
83
85
  export type PopSide = 'top' | 'bottom' | 'right' | 'left';
84
86
  export type PopPosition = PopSide | Top | Bottom | Left | Right;
87
+ export type Placement = 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' | 'right' | 'right top' | 'right bottom' | 'end' | 'end top' | 'end bottom';
85
88
  export type ArrowAlign = 'center' | 'start' | 'end';
89
+ export type OptionItem = {
90
+ id: number | string;
91
+ label: string;
92
+ header?: string;
93
+ body?: string;
94
+ type?: 'section';
95
+ leftElement?: ReactElement;
96
+ rightElement?: ReactElement;
97
+ onClick?: (event?: MouseEvent | Event) => void;
98
+ value?: unknown;
99
+ [key: string]: unknown;
100
+ };
101
+ export type Section<T> = {
102
+ id: string;
103
+ label?: string;
104
+ options: T[];
105
+ };
106
+ export type ListItem<T> = T | Section<T>;
107
+ export type InputContainerStyleProps = {
108
+ /** Sets the input backgroundColor */
109
+ backgroundColor?: string;
110
+ /** Sets the input borderRadius */
111
+ borderRadius?: number | string;
112
+ /** Sets the input borderColor */
113
+ borderColor?: string;
114
+ /** Removes the background and padding from the input */
115
+ textOnly?: boolean;
116
+ } & Width & MarginPadding;
117
+ export type InputElementStyleProps = {
118
+ /** Sets the input fontSize */
119
+ fontSize?: number | string;
120
+ /** Sets the color of the input placeholder */
121
+ placeholderColor?: string;
122
+ /** Sets the disabled styles of the input */
123
+ isDisabled?: boolean;
124
+ } & Width;
125
+ export type InputProps = {
126
+ /** Places a label element above the input. The value will set the text of the label */
127
+ label?: string;
128
+ /** Sets the input placeholder text */
129
+ placeholder?: string;
130
+ /** A ref to the input element */
131
+ inputRef?: RefObject<HTMLInputElement>;
132
+ /** Places a description message below the input */
133
+ description?: string;
134
+ /** Places an error message below the input */
135
+ errorMessage?: string | ((validation: ValidationResult) => string);
136
+ /** The name of the icon that should appear on the left side of the input */
137
+ iconLeft?: IconType;
138
+ /** The name of the icon that should appear on the right side of the input */
139
+ iconRight?: IconType;
140
+ /** Displays a spinner icon on the right side of the input */
141
+ isLoading?: boolean;
142
+ } & InputContainerStyleProps & InputElementStyleProps;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { OptionItem, SetValueFunc } from '../components/Dropdown/DropdownUtils';
2
+ import { SetValueFunc } from '../components/Dropdown/DropdownUtils';
3
+ import { OptionItem } from '../components/types';
3
4
  type UseSelectProps<OptionType> = {
4
5
  /** The options that will be displayed in the list */
5
6
  options: OptionType[];
@@ -13,7 +14,7 @@ type UseSelectProps<OptionType> = {
13
14
  isOpen: boolean;
14
15
  /** The condition for when the select element is focused */
15
16
  isFocused?: boolean;
16
- /** The text from a search Droppdown */
17
+ /** The text from a search Dropdown */
17
18
  searchText?: string;
18
19
  };
19
20
  declare const useSelect: <OptionType extends OptionItem>({ options, select, close, open, searchText, isOpen, isFocused, }: UseSelectProps<OptionType>) => readonly [number, import("react").RefObject<HTMLDivElement>];
@@ -5,6 +5,7 @@ export { default as Button } from './components/Button';
5
5
  export { default as Calendar } from './components/Calendar';
6
6
  export { default as Checkbox } from './components/Checkbox';
7
7
  export { default as Code } from './components/Code';
8
+ export { default as ComboBox } from './components/ComboBox';
8
9
  export { default as DocTable } from './components/DocTable';
9
10
  export { default as DraftEditor } from './components/DraftEditor';
10
11
  export { default as Dropdown } from './components/Dropdown';
@@ -16,6 +17,10 @@ export { default as ImageViewer } from './components/ImageViewer';
16
17
  export { default as InlineCode } from './components/InlineCode';
17
18
  export { default as Input } from './components/Input';
18
19
  export { default as InputUtils } from './components/InputHelpers';
20
+ export { default as DatePicker } from './components/Inputs/DatePicker';
21
+ export { default as DateRangePicker } from './components/Inputs/DateRangePicker';
22
+ export { default as NumberInput } from './components/Inputs/NumberInput';
23
+ export { default as TextInput } from './components/Inputs/TextInput';
19
24
  export { default as Label } from './components/Label';
20
25
  export { default as LineChart } from './components/LineChart';
21
26
  export { default as Menu } from './components/Menu';
@@ -29,6 +34,7 @@ export { default as Pagination } from './components/Pagination';
29
34
  export { default as PieChart } from './components/PieChart';
30
35
  export { default as Progress } from './components/Progress';
31
36
  export { default as Radio } from './components/Radio';
37
+ export { default as RangeCalendar } from './components/RangeCalendar';
32
38
  export { default as Select } from './components/Select';
33
39
  export { default as Slider } from './components/Slider';
34
40
  export { default as Spacer } from './components/Spacer';
@@ -45,11 +51,10 @@ export { default as theme } from './theme';
45
51
  export { default as colors } from './theme/colors';
46
52
  export { default as darkScale } from './theme/darkScale';
47
53
  export { default as lightScale } from './theme/lightScale';
48
- export type { DropdownOption } from './components/Dropdown';
49
54
  export type { IconNames } from './components/Icon/icons';
50
55
  export type { TabItem } from './components/Tabs';
51
56
  export type { Action as TransferAction, Item as TransferItem, Next as TransferNext } from './components/TransferList';
52
- export type { AsProp as As, AudioRef, DraftEditorRef, FlexPosition, Height, InputRef, Margin, MarginPadding, MaxHeight, MaxWidth, MaxWidthHeight, MinHeight, MinWidth, MinWidthHeight, MultiSelectRef, Padding, Position, Width, WidthHeight, } from './components/types';
57
+ export type { AsProp as As, AudioRef, DraftEditorRef, OptionItem as DropdownOption, FlexPosition, Height, InputRef, Margin, MarginPadding, MaxHeight, MaxWidth, MaxWidthHeight, MinHeight, MinWidth, MinWidthHeight, MultiSelectRef, Padding, Position, Width, WidthHeight, } from './components/types';
53
58
  export type { ITheme, ThemeProp } from './theme/ThemeTypes';
54
59
  export { default as useConfirm } from './hooks/useConfirm';
55
60
  export { default as useElementObserver } from './hooks/useElementObserver';
@@ -110,6 +110,7 @@ export interface ITheme {
110
110
  hover: string;
111
111
  active: string;
112
112
  activeHover: string;
113
+ activeRange: string;
113
114
  };
114
115
  color: {
115
116
  disabled: string;
@@ -120,6 +121,7 @@ export interface ITheme {
120
121
  weekday: string;
121
122
  monthYear: string;
122
123
  iconDefault: string;
124
+ iconDisabled: string;
123
125
  iconHover: string;
124
126
  };
125
127
  };