@wavv/ui 2.2.3 → 2.2.5

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 (105) hide show
  1. package/build/assets/icons/Checkbox.js +3 -3
  2. package/build/assets/icons/Exclamation.js +3 -3
  3. package/build/assets/icons/PhoneEnd.js +3 -3
  4. package/build/assets/icons/PhoneForward.js +3 -3
  5. package/build/assets/icons/PhoneHold.js +3 -3
  6. package/build/assets/icons/Record.js +3 -3
  7. package/build/assets/icons/ShieldWavv.js +3 -3
  8. package/build/components/Accordion/Accordion.d.ts +24 -3
  9. package/build/components/Accordion/Accordion.js +2 -1
  10. package/build/components/Accordion/Header.js +4 -4
  11. package/build/components/Accordion/Item.d.ts +12 -1
  12. package/build/components/Accordion/Item.js +12 -1
  13. package/build/components/Accordion/Panel.d.ts +3 -0
  14. package/build/components/Audio.js +3 -3
  15. package/build/components/Button/Button.d.ts +1 -1
  16. package/build/components/Button/Group.d.ts +1 -1
  17. package/build/components/Calendar.d.ts +4 -1
  18. package/build/components/CalendarParts/CalendarHeader.js +3 -3
  19. package/build/components/CalendarParts/useMinMax.js +3 -3
  20. package/build/components/Checkbox.d.ts +4 -3
  21. package/build/components/Checkbox.js +12 -20
  22. package/build/components/Code/Code.js +3 -3
  23. package/build/components/Code/Endpoint.js +3 -3
  24. package/build/components/ComboBox.d.ts +2 -2
  25. package/build/components/CommandMenu/CommandMenu.js +3 -3
  26. package/build/components/CommandMenu/CommandSection.js +3 -3
  27. package/build/components/Dot.js +3 -3
  28. package/build/components/DraftEditor.js +3 -3
  29. package/build/components/Dropdown.js +3 -3
  30. package/build/components/DropdownMenu.d.ts +5 -5
  31. package/build/components/DropdownMenuParts/MenuOptions.js +3 -3
  32. package/build/components/DropdownSelect.js +3 -3
  33. package/build/components/Editor/RichTextToolbar.js +3 -3
  34. package/build/components/Focusable.js +3 -3
  35. package/build/components/Form.d.ts +4 -2
  36. package/build/components/Form.js +9 -9
  37. package/build/components/Grid.js +3 -3
  38. package/build/components/Icon/customIcons.js +3 -3
  39. package/build/components/ImageViewer.js +3 -3
  40. package/build/components/InlineCode.js +3 -3
  41. package/build/components/Inputs/DatePicker.d.ts +5 -1
  42. package/build/components/Inputs/DateRangePicker.d.ts +5 -1
  43. package/build/components/Inputs/InlineInput.js +3 -3
  44. package/build/components/Inputs/NumberInput.d.ts +2 -2
  45. package/build/components/Inputs/PhoneInput.d.ts +2 -2
  46. package/build/components/Inputs/PhoneInput.js +3 -3
  47. package/build/components/Inputs/SearchInput.d.ts +2 -2
  48. package/build/components/Inputs/TextArea.d.ts +2 -4
  49. package/build/components/Inputs/TextInput.d.ts +2 -4
  50. package/build/components/Inputs/TextInput.js +3 -3
  51. package/build/components/Inputs/TimeInput.d.ts +2 -3
  52. package/build/components/Inputs/helpers/LabelWrapper.js +3 -3
  53. package/build/components/Inputs/helpers/useDynamicWidth.js +3 -3
  54. package/build/components/ListHelpers/ItemHeaderBody.js +3 -3
  55. package/build/components/ListHelpers/ListSection.js +3 -3
  56. package/build/components/Modal.d.ts +35 -21
  57. package/build/components/Modal.js +15 -3
  58. package/build/components/MultiSelect/SearchDropdown.d.ts +2 -2
  59. package/build/components/MultiSelect/SearchDropdown.js +3 -3
  60. package/build/components/Pagination.js +3 -3
  61. package/build/components/Popover.d.ts +13 -3
  62. package/build/components/Popover.js +3 -3
  63. package/build/components/Radio.js +3 -3
  64. package/build/components/RangeCalendar.d.ts +4 -1
  65. package/build/components/Select.d.ts +5 -5
  66. package/build/components/Slider.js +3 -3
  67. package/build/components/Table/Body.d.ts +5 -3
  68. package/build/components/Table/Body.js +3 -3
  69. package/build/components/Table/Cell.d.ts +5 -2
  70. package/build/components/Table/Column.d.ts +9 -2
  71. package/build/components/Table/ColumnSort.js +3 -3
  72. package/build/components/Table/Header.js +5 -5
  73. package/build/components/Table/Resizer.js +3 -3
  74. package/build/components/Table/Row.js +2 -2
  75. package/build/components/Table/Table.d.ts +34 -7
  76. package/build/components/Table/contentStyles.js +3 -3
  77. package/build/components/Tabs.d.ts +24 -4
  78. package/build/components/ToggleButton/ToggleButton.d.ts +4 -0
  79. package/build/components/ToggleButton/ToggleButton.js +3 -3
  80. package/build/components/ToggleButton/ToggleButtonGroup.d.ts +9 -1
  81. package/build/components/Tooltip.d.ts +6 -3
  82. package/build/components/Tree/Tree.d.ts +25 -3
  83. package/build/components/Tree/TreeItem.d.ts +11 -2
  84. package/build/components/Tree/TreeItem.js +2 -1
  85. package/build/components/UnstyledButton.js +3 -3
  86. package/build/components/helpers/getIcon.d.ts +1 -1
  87. package/build/components/helpers/mergePadding.js +3 -3
  88. package/build/components/typeDefs/inputTypes.d.ts +1 -0
  89. package/build/components/typeDefs/reactAriaTypes.d.ts +126 -0
  90. package/build/components/typeDefs/reactAriaTypes.js +0 -0
  91. package/build/components/typeDefs/selectionTypes.d.ts +1 -0
  92. package/build/global-styles/ResetStyles.js +3 -3
  93. package/build/hooks/useControlledOpenState.js +3 -3
  94. package/build/hooks/useOnClickOutside.js +3 -3
  95. package/build/hooks/useWindowSize.js +3 -3
  96. package/build/theme/core/dark/dark.js +3 -3
  97. package/build/theme/core/light/light.js +3 -3
  98. package/build/theme/eighties/dark/dark.js +3 -3
  99. package/build/theme/eighties/light/light.js +3 -3
  100. package/build/utils/chunk.js +3 -3
  101. package/build/utils/copyToClipboard.js +3 -3
  102. package/build/utils/formatNumber.js +3 -3
  103. package/package.json +24 -24
  104. package/build/components/Table/Check.d.ts +0 -3
  105. package/build/components/Table/Check.js +0 -35
@@ -9,7 +9,7 @@ import { marginProps } from "../helpers/styledProps.js";
9
9
  import Icon from "../Icon/index.js";
10
10
  import Popover from "../Popover.js";
11
11
  import { getEditorCharacterCount } from "./editorUtils.js";
12
- const RichTextToolbar_RichTextToolbar = ({ editor, insertField, mergeFields, maxLength })=>{
12
+ const RichTextToolbar = ({ editor, insertField, mergeFields, maxLength })=>{
13
13
  const { accent, editor: { highlight } } = useTheme();
14
14
  const [showMergeFields, setShowMergeFields] = useState(false);
15
15
  const [isListsOpen, setIsListsOpen] = useState(false);
@@ -511,5 +511,5 @@ const RemoveHighlightButton = styled.button(({ theme })=>({
511
511
  outlineOffset: 2
512
512
  }
513
513
  }));
514
- const RichTextToolbar = RichTextToolbar_RichTextToolbar;
515
- export { RichTextToolbar as default };
514
+ const Editor_RichTextToolbar = RichTextToolbar;
515
+ export { Editor_RichTextToolbar as default };
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import styled from "@emotion/styled";
3
3
  import { useRef } from "react";
4
4
  import { useFocusable } from "react-aria";
5
- const Focusable_Focusable = ({ children, ref, ...props })=>{
5
+ const Focusable = ({ children, ref, ...props })=>{
6
6
  const backupRef = useRef(null);
7
7
  const determinedRef = ref || backupRef;
8
8
  const { focusableProps } = useFocusable(props, determinedRef);
@@ -16,5 +16,5 @@ const Focusable_Focusable = ({ children, ref, ...props })=>{
16
16
  const Trigger = styled.span({
17
17
  display: 'grid'
18
18
  });
19
- const Focusable = Focusable_Focusable;
20
- export { Focusable as default };
19
+ const components_Focusable = Focusable;
20
+ export { components_Focusable as default };
@@ -40,8 +40,10 @@ declare const Form: {
40
40
  checked?: boolean;
41
41
  partial?: boolean;
42
42
  gap?: number;
43
- onChange?: (val: boolean) => void;
44
- } & Margin & Omit<import("react-aria-components").CheckboxProps, "value" | "isDisabled" | "isReadOnly" | "isSelected">) => import("react/jsx-runtime").JSX.Element;
43
+ onChange?: import("react-aria-components").CheckboxProps["onChange"];
44
+ className?: import("react-aria-components").CheckboxProps["className"];
45
+ style?: import("react-aria-components").CheckboxProps["style"];
46
+ } & Margin & Omit<import("react-aria-components").CheckboxProps, "value" | "isDisabled" | "isIndeterminate" | "isSelected" | "isReadOnly">) => import("react/jsx-runtime").JSX.Element;
45
47
  Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: {
46
48
  children?: ReactNode;
47
49
  iconLeft?: import("./helpers/getIcon").IconType;
@@ -6,7 +6,7 @@ import { marginProps } from "./helpers/styledProps.js";
6
6
  import Label from "./Label.js";
7
7
  import Radio from "./Radio.js";
8
8
  import Toggle from "./Toggle.js";
9
- const Form_Form = ({ children, rows, columns, rowGap, columnGap, onSubmit, ...rest })=>{
9
+ const Form = ({ children, rows, columns, rowGap, columnGap, onSubmit, ...rest })=>{
10
10
  const handleSubmit = (event)=>{
11
11
  event.preventDefault();
12
12
  if (onSubmit) onSubmit(event);
@@ -22,7 +22,7 @@ const Form_Form = ({ children, rows, columns, rowGap, columnGap, onSubmit, ...re
22
22
  children: children
23
23
  });
24
24
  };
25
- Form_Form.Group = ({ children, rows, columns, rowGap, columnGap, disabled, ...rest })=>/*#__PURE__*/ jsx(FormGroup, {
25
+ Form.Group = ({ children, rows, columns, rowGap, columnGap, disabled, ...rest })=>/*#__PURE__*/ jsx(FormGroup, {
26
26
  rows: rows,
27
27
  columns: columns,
28
28
  rowGap: rowGap,
@@ -31,17 +31,17 @@ Form_Form.Group = ({ children, rows, columns, rowGap, columnGap, disabled, ...re
31
31
  ...rest,
32
32
  children: children
33
33
  });
34
- Form_Form.Field = ({ children, inline, align, disabled, ...props })=>/*#__PURE__*/ jsx(FormField, {
34
+ Form.Field = ({ children, inline, align, disabled, ...props })=>/*#__PURE__*/ jsx(FormField, {
35
35
  ...props,
36
36
  inline: inline,
37
37
  align: align,
38
38
  disabled: disabled,
39
39
  children: children
40
40
  });
41
- Form_Form.Radio = Radio;
42
- Form_Form.Toggle = Toggle;
43
- Form_Form.Checkbox = Checkbox;
44
- Form_Form.Label = Label;
41
+ Form.Radio = Radio;
42
+ Form.Toggle = Toggle;
43
+ Form.Checkbox = Checkbox;
44
+ Form.Label = Label;
45
45
  const FormContainer = styled(Grid)({
46
46
  boxSizing: 'border-box'
47
47
  });
@@ -64,5 +64,5 @@ const FormField = styled.div(({ inline, align })=>{
64
64
  opacity: 0.3,
65
65
  pointerEvents: 'none'
66
66
  }, marginProps);
67
- const Form = Form_Form;
68
- export { Form as default };
67
+ const components_Form = Form;
68
+ export { components_Form as default };
@@ -38,7 +38,7 @@ const GridItem = styled.div(({ row, rowStart, rowEnd, column, columnStart, colum
38
38
  placeSelf,
39
39
  border
40
40
  }), paddingProps, marginProps);
41
- const Grid_Grid = ({ children, ...props })=>/*#__PURE__*/ jsx(StyledGrid, {
41
+ const Grid = ({ children, ...props })=>/*#__PURE__*/ jsx(StyledGrid, {
42
42
  ...props,
43
43
  children: children
44
44
  });
@@ -47,7 +47,7 @@ const Item = ({ children, ...props })=>/*#__PURE__*/ jsx(GridItem, {
47
47
  children: children
48
48
  });
49
49
  Item.displayName = 'Grid.Item';
50
- const Grid = Object.assign(Grid_Grid, {
50
+ const components_Grid = Object.assign(Grid, {
51
51
  Item
52
52
  });
53
- export { Item, Grid as default };
53
+ export { Item, components_Grid as default };
@@ -21,7 +21,7 @@ import ShieldWavv from "../../assets/icons/ShieldWavv.js";
21
21
  import Spotify from "../../assets/icons/Spotify.js";
22
22
  import SubArrow from "../../assets/icons/SubArrow.js";
23
23
  import TransferCancel from "../../assets/icons/TransferCancel.js";
24
- const customIcons_customIcons = {
24
+ const customIcons = {
25
25
  'caret-down': CaretDown,
26
26
  'caret-up': CaretUp,
27
27
  dialpad: Dialpad,
@@ -46,5 +46,5 @@ const customIcons_customIcons = {
46
46
  'sub-arrow': SubArrow,
47
47
  'transfer-cancel': TransferCancel
48
48
  };
49
- const customIcons = customIcons_customIcons;
50
- export { customIcons as default };
49
+ const Icon_customIcons = customIcons;
50
+ export { Icon_customIcons as default };
@@ -3,7 +3,7 @@ import styled from "@emotion/styled";
3
3
  import { useEffect, useState } from "react";
4
4
  import { useOnClickOutside } from "../hooks/index.js";
5
5
  import Icon from "./Icon/index.js";
6
- const ImageViewer_ImageViewer = ({ visible, close, images, startIndex, alt, maxWidth, maxHeight, opacity, ...rest })=>{
6
+ const ImageViewer = ({ visible, close, images, startIndex, alt, maxWidth, maxHeight, opacity, ...rest })=>{
7
7
  const [currentIndex, setCurrentIndex] = useState(startIndex);
8
8
  const exclusions = [
9
9
  '#viewer-prev',
@@ -138,5 +138,5 @@ const Media = styled.img(({ maxWidth, maxHeight })=>({
138
138
  maxWidth: maxWidth || '100%',
139
139
  maxHeight: maxHeight || '100%'
140
140
  }));
141
- const ImageViewer = ImageViewer_ImageViewer;
142
- export { ImageViewer as default };
141
+ const components_ImageViewer = ImageViewer;
142
+ export { components_ImageViewer as default };
@@ -1,10 +1,10 @@
1
1
  import styled from "@emotion/styled";
2
- const InlineCode_InlineCode = styled.code(({ theme })=>({
2
+ const InlineCode = styled.code(({ theme })=>({
3
3
  fontFamily: "source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",
4
4
  color: theme.scale10,
5
5
  backgroundColor: theme.scale1,
6
6
  borderRadius: theme.size.xs,
7
7
  padding: '2px 4px'
8
8
  }));
9
- const InlineCode = InlineCode_InlineCode;
10
- export { InlineCode as default };
9
+ const components_InlineCode = InlineCode;
10
+ export { components_InlineCode as default };
@@ -1,10 +1,14 @@
1
1
  import { type DatePickerProps, type DateValue } from 'react-aria-components';
2
2
  import type { DateInputProps } from '../typeDefs/selectionTypes';
3
- type PickerProps = Omit<DatePickerProps<DateValue>, 'value' | 'onChange' | 'isOpen' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'>;
3
+ type PickerProps = Pick<DatePickerProps<DateValue>, 'autoFocus' | 'firstDayOfWeek' | 'className' | 'style'>;
4
4
  type Props = {
5
5
  value?: Date;
6
6
  onChange: (date: Date) => void;
7
7
  ref?: React.Ref<HTMLInputElement>;
8
+ autoFocus?: PickerProps['autoFocus'];
9
+ firstDayOfWeek?: PickerProps['firstDayOfWeek'];
10
+ className?: PickerProps['className'];
11
+ style?: PickerProps['style'];
8
12
  } & DateInputProps & PickerProps;
9
13
  declare const DatePicker: ({ value, label, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, preventPast, preventFuture, hidePicker, onChange, afterShow, afterHide, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
14
  export default DatePicker;
@@ -1,11 +1,15 @@
1
1
  import { type DateRangePickerProps, type DateValue } from 'react-aria-components';
2
2
  import type { DateInputProps } from '../typeDefs/selectionTypes';
3
- type PickerProps = Omit<DateRangePickerProps<DateValue>, 'value' | 'onChange' | 'isOpen' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'>;
3
+ type PickerProps = Pick<DateRangePickerProps<DateValue>, 'autoFocus' | 'firstDayOfWeek' | 'className' | 'style'>;
4
4
  type Props = {
5
5
  startValue?: Date;
6
6
  endValue?: Date;
7
7
  onChange: (start: Date, end: Date) => void;
8
8
  ref?: React.Ref<HTMLInputElement>;
9
+ autoFocus?: PickerProps['autoFocus'];
10
+ firstDayOfWeek?: PickerProps['firstDayOfWeek'];
11
+ className?: PickerProps['className'];
12
+ style?: PickerProps['style'];
9
13
  } & DateInputProps & PickerProps;
10
14
  declare const DateRangePicker: ({ startValue, endValue, label, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, preventPast, preventFuture, hidePicker, onChange, afterShow, afterHide, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
11
15
  export default DateRangePicker;
@@ -10,7 +10,7 @@ import InputContainerStyles from "./helpers/InputContainerStyles.js";
10
10
  import InputMessage from "./helpers/InputMessage.js";
11
11
  import isAcceptable from "./helpers/isAcceptable.js";
12
12
  import useDynamicWidth from "./helpers/useDynamicWidth.js";
13
- const InlineInput_InlineInput = ({ value, label, placeholder, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, onChange, onInput, ref, ...props })=>{
13
+ const InlineInput = ({ value, label, placeholder, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, onChange, onInput, ref, ...props })=>{
14
14
  const [inputValue, setInputValue] = useState('');
15
15
  const [inputWidth, HiddenWidthEl] = useDynamicWidth({
16
16
  value: inputValue,
@@ -67,5 +67,5 @@ const InlineInput_InlineInput = ({ value, label, placeholder, iconLeft, iconRigh
67
67
  });
68
68
  };
69
69
  const InputContainer = styled(TextField)(InputContainerStyles);
70
- const InlineInput = InlineInput_InlineInput;
71
- export { InlineInput as default };
70
+ const Inputs_InlineInput = InlineInput;
71
+ export { Inputs_InlineInput as default };
@@ -1,10 +1,10 @@
1
- import { type NumberFieldProps } from 'react-aria-components';
2
1
  import type { InputProps } from '../typeDefs/inputTypes';
2
+ import type { NumberFieldProps } from '../typeDefs/reactAriaTypes';
3
3
  type Props = {
4
4
  /** Hides the increment/decrement arrow controls */
5
5
  hideControls?: boolean;
6
6
  /** Display a comma separator for large numbers (default true) */
7
7
  separator?: boolean;
8
- } & InputProps & Omit<NumberFieldProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'>;
8
+ } & InputProps & NumberFieldProps;
9
9
  declare const NumberInput: ({ value, label, placeholder, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, hideControls, separator, onChange, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export default NumberInput;
@@ -1,7 +1,7 @@
1
- import { type TextFieldProps } from 'react-aria-components';
2
1
  import type { InputProps } from '../typeDefs/inputTypes';
2
+ import type { TextFieldProps } from '../typeDefs/reactAriaTypes';
3
3
  type Props = {
4
4
  onChange?: (formatted: string, raw: string) => void;
5
- } & InputProps & Omit<TextFieldProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired' | 'onChange'>;
5
+ } & InputProps & Omit<TextFieldProps, 'onChange'>;
6
6
  declare const PhoneInput: ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, onChange, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default PhoneInput;
@@ -10,7 +10,7 @@ import Input from "./helpers/Input.js";
10
10
  import InputContainerStyles from "./helpers/InputContainerStyles.js";
11
11
  import InputMessage from "./helpers/InputMessage.js";
12
12
  import Label from "./helpers/Label.js";
13
- const PhoneInput_PhoneInput = ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, onChange, ref, ...props })=>{
13
+ const PhoneInput = ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, onChange, ref, ...props })=>{
14
14
  const [inputValue, setInputValue] = useState('');
15
15
  const internalRef = useRef(null);
16
16
  useImperativeHandle(ref, ()=>internalRef.current);
@@ -92,5 +92,5 @@ const PhoneInput_PhoneInput = ({ value, label, placeholder, iconLeft, iconRight,
92
92
  });
93
93
  };
94
94
  const InputContainer = styled(TextField)(InputContainerStyles);
95
- const PhoneInput = PhoneInput_PhoneInput;
96
- export { PhoneInput as default };
95
+ const Inputs_PhoneInput = PhoneInput;
96
+ export { Inputs_PhoneInput as default };
@@ -1,5 +1,5 @@
1
- import { type SearchFieldProps } from 'react-aria-components';
2
1
  import type { InputProps, TextInputProps } from '../typeDefs/inputTypes';
3
- type Props = TextInputProps & InputProps & Omit<SearchFieldProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'>;
2
+ import type { SearchFieldProps } from '../typeDefs/reactAriaTypes';
3
+ type Props = TextInputProps & InputProps & SearchFieldProps;
4
4
  declare const SearchInput: ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, onChange, onInput, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
5
5
  export default SearchInput;
@@ -1,7 +1,5 @@
1
- import { type TextFieldProps } from 'react-aria-components';
2
1
  import type { InputProps, TextAreaProps } from '../typeDefs/inputTypes';
3
- type Props = TextAreaProps & InputProps & Omit<TextFieldProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'> & {
4
- asTrigger?: boolean;
5
- };
2
+ import type { TextFieldProps } from '../typeDefs/reactAriaTypes';
3
+ type Props = TextAreaProps & InputProps & TextFieldProps;
6
4
  declare const TextAreaComponent: ({ value, label, placeholder, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, asTrigger, height, maxHeight, onChange, onInput, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
5
  export default TextAreaComponent;
@@ -1,7 +1,5 @@
1
- import { type TextFieldProps } from 'react-aria-components';
2
1
  import type { InputProps, TextInputProps } from '../typeDefs/inputTypes';
3
- type Props = TextInputProps & InputProps & Omit<TextFieldProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'> & {
4
- asTrigger?: boolean;
5
- };
2
+ import type { TextFieldProps } from '../typeDefs/reactAriaTypes';
3
+ type Props = TextFieldProps & TextInputProps & InputProps;
6
4
  declare const TextInput: ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, asTrigger, onChange, onInput, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
5
  export default TextInput;
@@ -10,7 +10,7 @@ import InputContainerStyles from "./helpers/InputContainerStyles.js";
10
10
  import InputMessage from "./helpers/InputMessage.js";
11
11
  import isAcceptable from "./helpers/isAcceptable.js";
12
12
  import Label from "./helpers/Label.js";
13
- const TextInput_TextInput = ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, asTrigger, onChange, onInput, ref, ...props })=>{
13
+ const TextInput = ({ value, label, placeholder, iconLeft, iconRight, leftElement, rightElement, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, accepts, asTrigger, onChange, onInput, ref, ...props })=>{
14
14
  const [inputValue, setInputValue] = useState('');
15
15
  useEffect(()=>{
16
16
  if (null != value && inputValue !== value) setInputValue(value);
@@ -70,5 +70,5 @@ const TextInput_TextInput = ({ value, label, placeholder, iconLeft, iconRight, l
70
70
  const InputContainer = styled(TextField)(InputContainerStyles, ({ asTrigger })=>({
71
71
  pointerEvents: asTrigger ? 'none' : void 0
72
72
  }));
73
- const TextInput = TextInput_TextInput;
74
- export { TextInput as default };
73
+ const Inputs_TextInput = TextInput;
74
+ export { Inputs_TextInput as default };
@@ -1,9 +1,8 @@
1
- import { type TimeFieldProps, type TimeValue } from 'react-aria-components';
2
1
  import type { InputProps } from '../typeDefs/inputTypes';
3
- type FieldProps = Omit<TimeFieldProps<TimeValue>, 'value' | 'onChange' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired'>;
2
+ import type { TimeFieldProps } from '../typeDefs/reactAriaTypes';
4
3
  type Props = {
5
4
  value?: string;
6
5
  onChange: (time: string) => void;
7
- } & InputProps & FieldProps;
6
+ } & InputProps & TimeFieldProps;
8
7
  declare const TimeInput: ({ value, label, iconLeft, iconRight, loading, fontSize, placeholderColor, disabled, readOnly, invalid, required, description, errorMessage, onChange, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
9
8
  export default TimeInput;
@@ -1,5 +1,5 @@
1
1
  import styled from "@emotion/styled";
2
- const LabelWrapper_LabelWrapper = styled.div(({ readOnly })=>({
2
+ const LabelWrapper = styled.div(({ readOnly })=>({
3
3
  display: 'flex',
4
4
  flexDirection: 'column',
5
5
  boxSizing: 'border-box',
@@ -10,5 +10,5 @@ const LabelWrapper_LabelWrapper = styled.div(({ readOnly })=>({
10
10
  caretColor: readOnly ? 'transparent' : void 0
11
11
  }
12
12
  }));
13
- const LabelWrapper = LabelWrapper_LabelWrapper;
14
- export { LabelWrapper as default };
13
+ const helpers_LabelWrapper = LabelWrapper;
14
+ export { helpers_LabelWrapper as default };
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import styled from "@emotion/styled";
3
3
  import { useLayoutEffect, useRef, useState } from "react";
4
- const useDynamicWidth_useDynamicWidth = ({ value, placeholder, fontSize, active = true })=>{
4
+ const useDynamicWidth = ({ value, placeholder, fontSize, active = true })=>{
5
5
  const textWidthRef = useRef(null);
6
6
  const [inputWidth, setInputWidth] = useState(active ? 50 : void 0);
7
7
  useLayoutEffect(()=>{
@@ -35,5 +35,5 @@ const HiddenWidthRef = styled.div(({ theme: { font }, fontSize })=>({
35
35
  fontSize: fontSize || font.size.lg,
36
36
  zIndex: -1
37
37
  }));
38
- const useDynamicWidth = useDynamicWidth_useDynamicWidth;
39
- export { useDynamicWidth as default };
38
+ const helpers_useDynamicWidth = useDynamicWidth;
39
+ export { helpers_useDynamicWidth as default };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled from "@emotion/styled";
3
3
  import { Text } from "react-aria-components";
4
- const ItemHeaderBody_ItemHeaderBody = ({ header, body, inline, disabled, isGridItem })=>/*#__PURE__*/ jsxs(HeaderBodyContainer, {
4
+ const ItemHeaderBody = ({ header, body, inline, disabled, isGridItem })=>/*#__PURE__*/ jsxs(HeaderBodyContainer, {
5
5
  inline: inline,
6
6
  children: [
7
7
  /*#__PURE__*/ jsx(ItemHeader, {
@@ -32,5 +32,5 @@ const ItemSubtext = styled(Text)(({ theme, disabled })=>({
32
32
  color: disabled ? theme.scale4 : theme.scale6,
33
33
  cursor: disabled ? 'inherit' : void 0
34
34
  }));
35
- const ItemHeaderBody = ItemHeaderBody_ItemHeaderBody;
36
- export { ItemHeaderBody as default };
35
+ const ListHelpers_ItemHeaderBody = ItemHeaderBody;
36
+ export { ListHelpers_ItemHeaderBody as default };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ListBoxSection } from "react-aria-components";
3
3
  import ListHeader from "./ListHeader.js";
4
- const ListSection_ListSection = ({ id, title, children })=>/*#__PURE__*/ jsxs(ListBoxSection, {
4
+ const ListSection = ({ id, title, children })=>/*#__PURE__*/ jsxs(ListBoxSection, {
5
5
  id: id,
6
6
  children: [
7
7
  title && /*#__PURE__*/ jsx(ListHeader, {
@@ -10,5 +10,5 @@ const ListSection_ListSection = ({ id, title, children })=>/*#__PURE__*/ jsxs(Li
10
10
  children
11
11
  ]
12
12
  });
13
- const ListSection = ListSection_ListSection;
14
- export { ListSection as default };
13
+ const ListHelpers_ListSection = ListSection;
14
+ export { ListHelpers_ListSection as default };
@@ -1,6 +1,5 @@
1
1
  import { type CSSProperties, type ReactNode, type RefObject } from 'react';
2
2
  import { type HeadingProps } from 'react-aria-components';
3
- import type { ThemeProp } from '../theme';
4
3
  import type { Attributes } from './typeDefs/elementTypes';
5
4
  import type { FlexPosition, Height, Margin, MaxWidthHeight, MinWidthHeight, Padding, PositionType, WidthHeight } from './types';
6
5
  type ModalContainerAttributes = Attributes<HTMLDivElement>;
@@ -58,27 +57,42 @@ type ModalProps = {
58
57
  declare const Modal: {
59
58
  ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, small, noOverlay, inert, drawer, drawerDirection, scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
60
59
  Header: {
61
- ({ children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
60
+ ({ children, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
62
61
  displayName: string;
63
62
  };
64
- Text: import("@emotion/styled").StyledComponent<{
65
- theme?: import("@emotion/react").Theme;
66
- as?: React.ElementType;
67
- } & {
68
- primary?: boolean;
69
- fontSize?: number | string;
70
- } & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
71
- Body: import("@emotion/styled").StyledComponent<{
72
- theme?: import("@emotion/react").Theme;
73
- as?: React.ElementType;
74
- } & Height & Margin, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
75
- Footer: import("@emotion/styled").StyledComponent<{
76
- theme?: import("@emotion/react").Theme;
77
- as?: React.ElementType;
78
- } & {
79
- justify?: FlexPosition;
80
- inline?: boolean;
81
- gap?: number | string;
82
- } & Margin, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
63
+ Text: {
64
+ ({ children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
65
+ displayName: string;
66
+ };
67
+ Body: {
68
+ ({ children, ...props }: BodyProps): import("react/jsx-runtime").JSX.Element;
69
+ displayName: string;
70
+ };
71
+ Footer: {
72
+ ({ children, ...props }: FooterProps): import("react/jsx-runtime").JSX.Element;
73
+ displayName: string;
74
+ };
75
+ };
76
+ type HeaderProps = {
77
+ className?: HeadingProps['className'];
78
+ style?: HeadingProps['style'];
79
+ } & HeadingProps;
80
+ type TextProps = {
81
+ children: ReactNode;
82
+ primary?: boolean;
83
+ fontSize?: number | string;
84
+ className?: string;
85
+ style?: CSSProperties;
83
86
  };
87
+ type BodyProps = {
88
+ children: ReactNode;
89
+ className?: string;
90
+ style?: CSSProperties;
91
+ } & Height & Margin;
92
+ type FooterProps = {
93
+ children: ReactNode;
94
+ justify?: FlexPosition;
95
+ inline?: boolean;
96
+ gap?: number | string;
97
+ } & Margin;
84
98
  export default Modal;
@@ -88,15 +88,27 @@ const ModalHeader = styled(Heading)(({ theme })=>({
88
88
  margin: 0,
89
89
  marginBottom: 8
90
90
  }));
91
- const Text = styled.div(({ theme, primary, fontSize })=>({
91
+ const Text = ({ children, ...props })=>/*#__PURE__*/ jsx(ModalText, {
92
+ ...props,
93
+ children: children
94
+ });
95
+ const ModalText = styled.div(({ theme, primary, fontSize })=>({
92
96
  color: primary ? theme.modal.color.header : theme.modal.color.body,
93
97
  fontSize: fontSize || theme.font.size.lg
94
98
  }));
95
- const Body = styled.div(({ height })=>({
99
+ const Body = ({ children, ...props })=>/*#__PURE__*/ jsx(ModalBody, {
100
+ ...props,
101
+ children: children
102
+ });
103
+ const ModalBody = styled.div(({ height })=>({
96
104
  height,
97
105
  overflow: height ? 'auto' : void 0
98
106
  }), marginProps);
99
- const Footer = styled.div(({ justify = 'end', inline, gap })=>{
107
+ const Footer = ({ children, ...props })=>/*#__PURE__*/ jsx(ModalFooter, {
108
+ ...props,
109
+ children: children
110
+ });
111
+ const ModalFooter = styled.div(({ justify = 'end', inline, gap })=>{
100
112
  const justifyOptions = {
101
113
  start: 'flex-start',
102
114
  end: 'flex-end',
@@ -1,4 +1,4 @@
1
- import { type ComboBoxProps } from 'react-aria-components';
1
+ import type { ComboBoxProps } from '../typeDefs/reactAriaTypes';
2
2
  import type { MultiSelectItem, MultiSelectOption, SelectInputProps } from '../typeDefs/selectionTypes';
3
3
  import type { TagItem } from '../typeDefs/tagTypes';
4
4
  type Props = {
@@ -12,6 +12,6 @@ type Props = {
12
12
  onTextChange?: (text: string) => void;
13
13
  onValidChange?: (valid: boolean) => void;
14
14
  ref?: React.Ref<HTMLInputElement>;
15
- } & Omit<SelectInputProps, 'options'> & Omit<ComboBoxProps<object>, 'children' | 'onSelectionChange' | 'onInputChange' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'defaultSelectedKey'>;
15
+ } & Omit<SelectInputProps, 'options'> & ComboBoxProps;
16
16
  declare const SearchDropdown: ({ options, items, triggerRef, placeholder, placeholderColor, fontSize, position, fixedPosition, maxHeight, disabled, accepts, addItem, removeItem, afterShow, afterHide, onTextChange, onValidChange, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
17
17
  export default SearchDropdown;
@@ -9,7 +9,7 @@ import isAcceptable from "../Inputs/helpers/isAcceptable.js";
9
9
  import useDynamicWidth from "../Inputs/helpers/useDynamicWidth.js";
10
10
  import ListOptions from "../ListBoxParts/ListOptions.js";
11
11
  import MotionPopover from "../MotionPopover.js";
12
- const SearchDropdown_SearchDropdown = ({ options, items, triggerRef, placeholder, placeholderColor, fontSize, position, fixedPosition, maxHeight, disabled, accepts, addItem, removeItem, afterShow, afterHide, onTextChange, onValidChange, ref, ...props })=>{
12
+ const SearchDropdown = ({ options, items, triggerRef, placeholder, placeholderColor, fontSize, position, fixedPosition, maxHeight, disabled, accepts, addItem, removeItem, afterShow, afterHide, onTextChange, onValidChange, ref, ...props })=>{
13
13
  const [isOpen, setIsOpen] = useState(false);
14
14
  const [filteredOptions, setFilteredOptions] = useState([]);
15
15
  const [inputText, setInputText] = useState('');
@@ -151,5 +151,5 @@ const InputShakeContainer = styled.div(({ shake })=>({
151
151
  animation: shake ? `${shakeAnimation} .5s linear` : void 0
152
152
  }
153
153
  }));
154
- const SearchDropdown = SearchDropdown_SearchDropdown;
155
- export { SearchDropdown as default };
154
+ const MultiSelect_SearchDropdown = SearchDropdown;
155
+ export { MultiSelect_SearchDropdown as default };
@@ -5,7 +5,7 @@ import { chunk, range } from "../utils/index.js";
5
5
  import { marginProps } from "./helpers/styledProps.js";
6
6
  import Icon from "./Icon/index.js";
7
7
  const toNum = (val)=>val ? +val : 0;
8
- const Pagination_Pagination = ({ onPageNav, page, totalPages, maxVisibleNumbers, width, ...props })=>{
8
+ const Pagination = ({ onPageNav, page, totalPages, maxVisibleNumbers, width, ...props })=>{
9
9
  const [currentPage, setCurrentPage] = useState(toNum(page) || 1);
10
10
  const [currentChunk, setCurrentChunk] = useState(0);
11
11
  const numbers = range(1, totalPages);
@@ -117,5 +117,5 @@ const Page = styled(Control)(({ theme, selected })=>({
117
117
  const Ellipses = styled.span(({ theme })=>({
118
118
  color: theme.scale6
119
119
  }));
120
- const Pagination = Pagination_Pagination;
121
- export { Pagination as default };
120
+ const components_Pagination = Pagination;
121
+ export { components_Pagination as default };
@@ -9,8 +9,18 @@ type Props = {
9
9
  isTriggerButton?: boolean;
10
10
  /** Props to pass to the trigger's container (unless isTriggerButton is true) */
11
11
  triggerProps?: ButtonProps;
12
- /** Offset of the menu from the trigger */
13
- offset?: number;
14
- } & Omit<PopoverProps, 'trigger' | 'isOpen'> & SelectProps & OpenStateProps;
12
+ children?: PopoverProps['children'];
13
+ offset?: PopoverProps['offset'];
14
+ crossOffset?: PopoverProps['crossOffset'];
15
+ isNonModal?: PopoverProps['isNonModal'];
16
+ isKeyboardDismissDisabled?: PopoverProps['isKeyboardDismissDisabled'];
17
+ shouldCloseOnInteractOutside?: PopoverProps['shouldCloseOnInteractOutside'];
18
+ boundaryElement?: PopoverProps['boundaryElement'];
19
+ scrollRef?: PopoverProps['scrollRef'];
20
+ shouldUpdatePosition?: PopoverProps['shouldUpdatePosition'];
21
+ defaultOpen?: PopoverProps['defaultOpen'];
22
+ className?: PopoverProps['className'];
23
+ style?: PopoverProps['style'];
24
+ } & Omit<PopoverProps, 'trigger' | 'placement' | 'isOpen' | 'onOpenChange' | 'shouldFlip'> & SelectProps & OpenStateProps;
15
25
  declare const Popover: ({ children, position, fixedPosition, trigger, isTriggerButton, triggerProps, offset, afterShow, afterHide, open, onOpenChange, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
16
26
  export default Popover;
@@ -4,7 +4,7 @@ import { DialogTrigger } from "react-aria-components";
4
4
  import { useControlledOpenState } from "../hooks/index.js";
5
5
  import AriaButton from "./Inputs/helpers/AriaButton.js";
6
6
  import MotionPopover from "./MotionPopover.js";
7
- const Popover_Popover = ({ children, position = 'bottom', fixedPosition, trigger, isTriggerButton, triggerProps, offset = 4, afterShow, afterHide, open, onOpenChange, ...props })=>{
7
+ const Popover = ({ children, position = 'bottom', fixedPosition, trigger, isTriggerButton, triggerProps, offset = 4, afterShow, afterHide, open, onOpenChange, ...props })=>{
8
8
  const [isOpen, handleOpenChange] = useControlledOpenState({
9
9
  open,
10
10
  onOpenChange,
@@ -36,5 +36,5 @@ const Popover_Popover = ({ children, position = 'bottom', fixedPosition, trigger
36
36
  ]
37
37
  });
38
38
  };
39
- const Popover = Popover_Popover;
40
- export { Popover as default };
39
+ const components_Popover = Popover;
40
+ export { components_Popover as default };
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import RadioButton from "../assets/icons/RadioButton.js";
3
3
  import { ControlContainer, ControlInput, ControlLabel } from "./FormControl.js";
4
4
  import Icon from "./Icon/index.js";
5
- const Radio_Radio = ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, className, readOnly, iconColor, ...props })=>{
5
+ const Radio = ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, className, readOnly, iconColor, ...props })=>{
6
6
  const labelRight = 'right' === labelPosition;
7
7
  const marginProps = {
8
8
  margin,
@@ -41,5 +41,5 @@ const Radio_Radio = ({ id, label, labelPosition, checked, disabled, margin, marg
41
41
  ]
42
42
  });
43
43
  };
44
- const Radio = Radio_Radio;
45
- export { Radio as default };
44
+ const components_Radio = Radio;
45
+ export { components_Radio as default };