@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.
- package/build/assets/icons/Checkbox.js +3 -3
- package/build/assets/icons/Exclamation.js +3 -3
- package/build/assets/icons/PhoneEnd.js +3 -3
- package/build/assets/icons/PhoneForward.js +3 -3
- package/build/assets/icons/PhoneHold.js +3 -3
- package/build/assets/icons/Record.js +3 -3
- package/build/assets/icons/ShieldWavv.js +3 -3
- package/build/components/Accordion/Accordion.d.ts +24 -3
- package/build/components/Accordion/Accordion.js +2 -1
- package/build/components/Accordion/Header.js +4 -4
- package/build/components/Accordion/Item.d.ts +12 -1
- package/build/components/Accordion/Item.js +12 -1
- package/build/components/Accordion/Panel.d.ts +3 -0
- package/build/components/Audio.js +3 -3
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/Button/Group.d.ts +1 -1
- package/build/components/Calendar.d.ts +4 -1
- package/build/components/CalendarParts/CalendarHeader.js +3 -3
- package/build/components/CalendarParts/useMinMax.js +3 -3
- package/build/components/Checkbox.d.ts +4 -3
- package/build/components/Checkbox.js +12 -20
- package/build/components/Code/Code.js +3 -3
- package/build/components/Code/Endpoint.js +3 -3
- package/build/components/ComboBox.d.ts +2 -2
- package/build/components/CommandMenu/CommandMenu.js +3 -3
- package/build/components/CommandMenu/CommandSection.js +3 -3
- package/build/components/Dot.js +3 -3
- package/build/components/DraftEditor.js +3 -3
- package/build/components/Dropdown.js +3 -3
- package/build/components/DropdownMenu.d.ts +5 -5
- package/build/components/DropdownMenuParts/MenuOptions.js +3 -3
- package/build/components/DropdownSelect.js +3 -3
- package/build/components/Editor/RichTextToolbar.js +3 -3
- package/build/components/Focusable.js +3 -3
- package/build/components/Form.d.ts +4 -2
- package/build/components/Form.js +9 -9
- package/build/components/Grid.js +3 -3
- package/build/components/Icon/customIcons.js +3 -3
- package/build/components/ImageViewer.js +3 -3
- package/build/components/InlineCode.js +3 -3
- package/build/components/Inputs/DatePicker.d.ts +5 -1
- package/build/components/Inputs/DateRangePicker.d.ts +5 -1
- package/build/components/Inputs/InlineInput.js +3 -3
- package/build/components/Inputs/NumberInput.d.ts +2 -2
- package/build/components/Inputs/PhoneInput.d.ts +2 -2
- package/build/components/Inputs/PhoneInput.js +3 -3
- package/build/components/Inputs/SearchInput.d.ts +2 -2
- package/build/components/Inputs/TextArea.d.ts +2 -4
- package/build/components/Inputs/TextInput.d.ts +2 -4
- package/build/components/Inputs/TextInput.js +3 -3
- package/build/components/Inputs/TimeInput.d.ts +2 -3
- package/build/components/Inputs/helpers/LabelWrapper.js +3 -3
- package/build/components/Inputs/helpers/useDynamicWidth.js +3 -3
- package/build/components/ListHelpers/ItemHeaderBody.js +3 -3
- package/build/components/ListHelpers/ListSection.js +3 -3
- package/build/components/Modal.d.ts +35 -21
- package/build/components/Modal.js +15 -3
- package/build/components/MultiSelect/SearchDropdown.d.ts +2 -2
- package/build/components/MultiSelect/SearchDropdown.js +3 -3
- package/build/components/Pagination.js +3 -3
- package/build/components/Popover.d.ts +13 -3
- package/build/components/Popover.js +3 -3
- package/build/components/Radio.js +3 -3
- package/build/components/RangeCalendar.d.ts +4 -1
- package/build/components/Select.d.ts +5 -5
- package/build/components/Slider.js +3 -3
- package/build/components/Table/Body.d.ts +5 -3
- package/build/components/Table/Body.js +3 -3
- package/build/components/Table/Cell.d.ts +5 -2
- package/build/components/Table/Column.d.ts +9 -2
- package/build/components/Table/ColumnSort.js +3 -3
- package/build/components/Table/Header.js +5 -5
- package/build/components/Table/Resizer.js +3 -3
- package/build/components/Table/Row.js +2 -2
- package/build/components/Table/Table.d.ts +34 -7
- package/build/components/Table/contentStyles.js +3 -3
- package/build/components/Tabs.d.ts +24 -4
- package/build/components/ToggleButton/ToggleButton.d.ts +4 -0
- package/build/components/ToggleButton/ToggleButton.js +3 -3
- package/build/components/ToggleButton/ToggleButtonGroup.d.ts +9 -1
- package/build/components/Tooltip.d.ts +6 -3
- package/build/components/Tree/Tree.d.ts +25 -3
- package/build/components/Tree/TreeItem.d.ts +11 -2
- package/build/components/Tree/TreeItem.js +2 -1
- package/build/components/UnstyledButton.js +3 -3
- package/build/components/helpers/getIcon.d.ts +1 -1
- package/build/components/helpers/mergePadding.js +3 -3
- package/build/components/typeDefs/inputTypes.d.ts +1 -0
- package/build/components/typeDefs/reactAriaTypes.d.ts +126 -0
- package/build/components/typeDefs/reactAriaTypes.js +0 -0
- package/build/components/typeDefs/selectionTypes.d.ts +1 -0
- package/build/global-styles/ResetStyles.js +3 -3
- package/build/hooks/useControlledOpenState.js +3 -3
- package/build/hooks/useOnClickOutside.js +3 -3
- package/build/hooks/useWindowSize.js +3 -3
- package/build/theme/core/dark/dark.js +3 -3
- package/build/theme/core/light/light.js +3 -3
- package/build/theme/eighties/dark/dark.js +3 -3
- package/build/theme/eighties/light/light.js +3 -3
- package/build/utils/chunk.js +3 -3
- package/build/utils/copyToClipboard.js +3 -3
- package/build/utils/formatNumber.js +3 -3
- package/package.json +24 -24
- package/build/components/Table/Check.d.ts +0 -3
- package/build/components/Table/Check.js +0 -35
|
@@ -8,6 +8,9 @@ type Props = {
|
|
|
8
8
|
endDate?: Date;
|
|
9
9
|
/** The function to be called when a date range is selected */
|
|
10
10
|
onChange: (start: Date, end: Date) => void;
|
|
11
|
-
|
|
11
|
+
firstDayOfWeek?: RangeCalendarProps<CalendarDate>['firstDayOfWeek'];
|
|
12
|
+
className?: RangeCalendarProps<CalendarDate>['className'];
|
|
13
|
+
style?: RangeCalendarProps<CalendarDate>['style'];
|
|
14
|
+
} & CalendarBaseProps & Pick<RangeCalendarProps<CalendarDate>, 'firstDayOfWeek' | 'className' | 'style'>;
|
|
12
15
|
declare const RangeCalendar: ({ startDate, endDate, onChange, preventPast, preventFuture, noShadow, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export default RangeCalendar;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { OpenStateProps, SelectInputProps
|
|
3
|
-
type Props =
|
|
1
|
+
import type { SelectProps } from './typeDefs/reactAriaTypes';
|
|
2
|
+
import type { OpenStateProps, SelectInputProps } from './typeDefs/selectionTypes';
|
|
3
|
+
type Props = {
|
|
4
4
|
ref?: React.Ref<HTMLButtonElement>;
|
|
5
|
-
} &
|
|
5
|
+
} & SelectInputProps & OpenStateProps & SelectProps;
|
|
6
6
|
declare const _default: (({ backgroundColor, menuBackground, children, fontSize, fontWeight, color, disabled, invalid, required, readOnly, loading, label, options, placeholder, placeholderColor, description, errorMessage, textOnly, value, defaultValue, width, height, maxHeight, allowRepeatSelection, hideCaret, position, fixedPosition, borderRadius, iconLeft, leftElement, rightElement, before, after, open, onOpenChange, onChange, afterShow, afterHide, ref, ...props }: Props) => import("react/jsx-runtime").JSX.Element) & {
|
|
7
|
-
Item: ({ id, value, header, body, leftElement, rightElement, inline, disabled, ...props }: SelectItem & Omit<import("react-aria-components").ListBoxItemProps<object>, "id" | "value" | "isDisabled">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Item: ({ id, value, header, body, leftElement, rightElement, inline, disabled, ...props }: import("..").SelectItem & Omit<import("react-aria-components").ListBoxItemProps<object>, "id" | "value" | "isDisabled">) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Section: ({ id, title, children }: {
|
|
9
9
|
id?: string;
|
|
10
10
|
title?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { marginProps } from "./helpers/styledProps.js";
|
|
4
|
-
const
|
|
4
|
+
const Slider = ({ value, max = 100, step = 1, width, height, disabled, onChange, ...props })=>{
|
|
5
5
|
const handleControlGrab = (event)=>{
|
|
6
6
|
const { value: progressValue } = event.target;
|
|
7
7
|
if (onChange) onChange(+progressValue);
|
|
@@ -46,5 +46,5 @@ const ProgressSlider = styled.input(({ theme, percent, width, height, disabled,
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}, marginProps);
|
|
49
|
-
const
|
|
50
|
-
export {
|
|
49
|
+
const components_Slider = Slider;
|
|
50
|
+
export { components_Slider as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { type TableLoadMoreItemProps } from 'react-aria-components';
|
|
2
|
+
import { type TableBodyProps, type TableLoadMoreItemProps } from 'react-aria-components';
|
|
3
3
|
type Props = {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
/** The function to be called when the end of a scrolling async table has been reached */
|
|
@@ -10,7 +10,9 @@ type Props = {
|
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
/** If true, shows a loading spinner at the bottom of the body */
|
|
12
12
|
fetching?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
scrollOffset?: TableLoadMoreItemProps['scrollOffset'];
|
|
14
|
+
className?: TableBodyProps<unknown>['className'];
|
|
15
|
+
style?: TableBodyProps<unknown>['style'];
|
|
16
|
+
} & Pick<TableLoadMoreItemProps, 'scrollOffset'> & Pick<TableBodyProps<unknown>, 'className' | 'style'>;
|
|
15
17
|
declare const Body: ({ children, emptyFallback, fetching, loading, scrollOffset, onLoadMore, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export default Body;
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { TableBody, TableLoadMoreItem } from "react-aria-components";
|
|
4
4
|
import Spinner from "../Spinner.js";
|
|
5
|
-
const
|
|
5
|
+
const Body = ({ children, emptyFallback, fetching, loading, scrollOffset, onLoadMore, ...rest })=>{
|
|
6
6
|
const emptyContent = loading ? /*#__PURE__*/ jsx(SpinnerContainer, {
|
|
7
7
|
children: /*#__PURE__*/ jsx(Spinner, {})
|
|
8
8
|
}) : emptyFallback;
|
|
@@ -45,5 +45,5 @@ const SpinnerContainer = styled.div(({ theme })=>({
|
|
|
45
45
|
color: theme.scale6,
|
|
46
46
|
paddingTop: 4
|
|
47
47
|
}));
|
|
48
|
-
const
|
|
49
|
-
export {
|
|
48
|
+
const Table_Body = Body;
|
|
49
|
+
export { Table_Body as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CellProps } from 'react-aria-components';
|
|
3
|
-
import type { Padding } from '../types';
|
|
4
3
|
import { type ContentProps } from './contentStyles';
|
|
5
4
|
type Props = {
|
|
6
5
|
children?: ReactNode;
|
|
@@ -8,6 +7,10 @@ type Props = {
|
|
|
8
7
|
defaultValue?: string;
|
|
9
8
|
/** Number of lines to clamp */
|
|
10
9
|
clampLines?: number;
|
|
11
|
-
|
|
10
|
+
textValue?: CellProps['textValue'];
|
|
11
|
+
colSpan?: CellProps['colSpan'];
|
|
12
|
+
className?: CellProps['className'];
|
|
13
|
+
style?: CellProps['style'];
|
|
14
|
+
} & ContentProps & Omit<CellProps, 'children'>;
|
|
12
15
|
declare const Cell: ({ children, defaultValue, direction, justify, align, gap, clampLines, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export default Cell;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent, type ReactNode } from 'react';
|
|
2
2
|
import { type ColumnProps } from 'react-aria-components';
|
|
3
|
-
import type { Padding } from '../types';
|
|
4
3
|
import { type ContentProps } from './contentStyles';
|
|
5
4
|
import type { SortDir } from './types';
|
|
6
5
|
type Props = {
|
|
@@ -12,6 +11,14 @@ type Props = {
|
|
|
12
11
|
sorted?: SortDir;
|
|
13
12
|
/** The property of the data object to sort by */
|
|
14
13
|
sortKey?: string;
|
|
15
|
-
|
|
14
|
+
isRowHeader?: ColumnProps['isRowHeader'];
|
|
15
|
+
textValue?: ColumnProps['textValue'];
|
|
16
|
+
width?: ColumnProps['width'];
|
|
17
|
+
minWidth?: ColumnProps['minWidth'];
|
|
18
|
+
maxWidth?: ColumnProps['maxWidth'];
|
|
19
|
+
defaultWidth?: ColumnProps['defaultWidth'];
|
|
20
|
+
className?: ColumnProps['className'];
|
|
21
|
+
style?: ColumnProps['style'];
|
|
22
|
+
} & ContentProps & Omit<ColumnProps, 'children' | 'allowsSorting'>;
|
|
16
23
|
declare const Column: ({ children, sortKey, sorted, onClick, resize, direction, justify, align, gap, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
24
|
export default Column;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme } from "@emotion/react";
|
|
3
|
-
const
|
|
3
|
+
const ColumnSort = ({ sortDirection })=>{
|
|
4
4
|
const { accent, scale4 } = useTheme();
|
|
5
5
|
const topColor = 'asc' === sortDirection ? accent : scale4;
|
|
6
6
|
const bottomColor = 'desc' === sortDirection ? accent : scale4;
|
|
@@ -22,5 +22,5 @@ const ColumnSort_ColumnSort = ({ sortDirection })=>{
|
|
|
22
22
|
]
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
export {
|
|
25
|
+
const Table_ColumnSort = ColumnSort;
|
|
26
|
+
export { Table_ColumnSort as default };
|
|
@@ -2,11 +2,11 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { useContext, useEffect } from "react";
|
|
4
4
|
import { TableHeader } from "react-aria-components";
|
|
5
|
+
import Checkbox from "../Checkbox.js";
|
|
5
6
|
import mergePadding from "../helpers/mergePadding.js";
|
|
6
|
-
import Check from "./Check.js";
|
|
7
7
|
import Column from "./Column.js";
|
|
8
8
|
import context from "./context.js";
|
|
9
|
-
const
|
|
9
|
+
const Header = ({ children, backgroundColor, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, ...rest })=>{
|
|
10
10
|
const { setHeaderPadding, selectionMode } = useContext(context);
|
|
11
11
|
useEffect(()=>{
|
|
12
12
|
const values = padding ?? paddingTop ?? paddingRight ?? paddingBottom ?? paddingLeft;
|
|
@@ -32,7 +32,7 @@ const Header_Header = ({ children, backgroundColor, padding, paddingTop, padding
|
|
|
32
32
|
children: [
|
|
33
33
|
/*#__PURE__*/ jsx(Column, {
|
|
34
34
|
width: 70,
|
|
35
|
-
children: 'multiple' === selectionMode && /*#__PURE__*/ jsx(
|
|
35
|
+
children: 'multiple' === selectionMode && /*#__PURE__*/ jsx(Checkbox, {
|
|
36
36
|
slot: "selection"
|
|
37
37
|
})
|
|
38
38
|
}),
|
|
@@ -60,5 +60,5 @@ const TableHead = styled(TableHeader)(({ backgroundColor })=>({
|
|
|
60
60
|
borderLeft: '2px solid transparent'
|
|
61
61
|
}
|
|
62
62
|
}));
|
|
63
|
-
const
|
|
64
|
-
export {
|
|
63
|
+
const Table_Header = Header;
|
|
64
|
+
export { Table_Header as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { ColumnResizer } from "react-aria-components";
|
|
3
|
-
const
|
|
3
|
+
const Resizer = styled(ColumnResizer)(({ theme })=>({
|
|
4
4
|
width: 9,
|
|
5
5
|
height: 18,
|
|
6
6
|
backgroundColor: theme.scale4,
|
|
@@ -21,5 +21,5 @@ const Resizer_Resizer = styled(ColumnResizer)(({ theme })=>({
|
|
|
21
21
|
backgroundColor: theme.accent
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
24
|
-
const
|
|
25
|
-
export {
|
|
24
|
+
const Table_Resizer = Resizer;
|
|
25
|
+
export { Table_Resizer as default };
|
|
@@ -2,9 +2,9 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { useContext, useEffect } from "react";
|
|
4
4
|
import { Row } from "react-aria-components";
|
|
5
|
+
import Checkbox from "../Checkbox.js";
|
|
5
6
|
import mergePadding from "../helpers/mergePadding.js";
|
|
6
7
|
import Cell from "./Cell.js";
|
|
7
|
-
import Check from "./Check.js";
|
|
8
8
|
import context from "./context.js";
|
|
9
9
|
const Row_Row = ({ children, onClick, disabled, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, ...rest })=>{
|
|
10
10
|
const { setRowPadding, selectionMode } = useContext(context);
|
|
@@ -31,7 +31,7 @@ const Row_Row = ({ children, onClick, disabled, padding, paddingTop, paddingRigh
|
|
|
31
31
|
const cellsToRender = selectionMode ? /*#__PURE__*/ jsxs(Fragment, {
|
|
32
32
|
children: [
|
|
33
33
|
/*#__PURE__*/ jsx(Cell, {
|
|
34
|
-
children: /*#__PURE__*/ jsx(
|
|
34
|
+
children: /*#__PURE__*/ jsx(Checkbox, {
|
|
35
35
|
slot: "selection"
|
|
36
36
|
})
|
|
37
37
|
}),
|
|
@@ -9,7 +9,20 @@ type Props<T> = {
|
|
|
9
9
|
backgroundLevel?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
10
10
|
/** Enabled Table.Columns to be resizable (using the `resize` prop) */
|
|
11
11
|
resizable?: boolean;
|
|
12
|
-
|
|
12
|
+
disabledBehavior?: TableProps['disabledBehavior'];
|
|
13
|
+
disabledKeys?: TableProps['disabledKeys'];
|
|
14
|
+
selectionMode?: TableProps['selectionMode'];
|
|
15
|
+
selectionBehavior?: TableProps['selectionBehavior'];
|
|
16
|
+
disallowEmptySelection?: TableProps['disallowEmptySelection'];
|
|
17
|
+
escapeKeyBehavior?: TableProps['escapeKeyBehavior'];
|
|
18
|
+
selectedKeys?: TableProps['selectedKeys'];
|
|
19
|
+
defaultSelectedKeys?: TableProps['defaultSelectedKeys'];
|
|
20
|
+
shouldSelectOnPressUp?: TableProps['shouldSelectOnPressUp'];
|
|
21
|
+
className?: TableProps['className'];
|
|
22
|
+
style?: TableProps['style'];
|
|
23
|
+
onRowAction?: TableProps['onRowAction'];
|
|
24
|
+
onSelectionChange?: TableProps['onSelectionChange'];
|
|
25
|
+
} & TableChildren<T> & MarginPadding & MaxHeight & Omit<TableProps, 'children' | 'sortDescriptor' | 'onSortChange' | 'onScroll' | 'dragAndDropHooks'>;
|
|
13
26
|
declare const Table: {
|
|
14
27
|
<DataType extends Data>({ children, data, backgroundColor, backgroundLevel, maxHeight, resizable, selectionMode, ...props }: Props<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
15
28
|
Header: ({ children, backgroundColor, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, ...rest }: {
|
|
@@ -23,20 +36,30 @@ declare const Table: {
|
|
|
23
36
|
onClick?: (event: import("react").MouseEvent) => void;
|
|
24
37
|
sorted?: import("./types").SortDir;
|
|
25
38
|
sortKey?: string;
|
|
26
|
-
|
|
39
|
+
isRowHeader?: import("react-aria-components").ColumnProps["isRowHeader"];
|
|
40
|
+
textValue?: import("react-aria-components").ColumnProps["textValue"];
|
|
41
|
+
width?: import("react-aria-components").ColumnProps["width"];
|
|
42
|
+
minWidth?: import("react-aria-components").ColumnProps["minWidth"];
|
|
43
|
+
maxWidth?: import("react-aria-components").ColumnProps["maxWidth"];
|
|
44
|
+
defaultWidth?: import("react-aria-components").ColumnProps["defaultWidth"];
|
|
45
|
+
className?: import("react-aria-components").ColumnProps["className"];
|
|
46
|
+
style?: import("react-aria-components").ColumnProps["style"];
|
|
47
|
+
} & {
|
|
27
48
|
direction?: import("../types").FlexDirection;
|
|
28
49
|
justify?: import("../types").FlexPosition;
|
|
29
50
|
align?: import("../types").FlexPosition;
|
|
30
51
|
gap?: number | string;
|
|
31
|
-
} & Omit<import("react-aria-components").ColumnProps, "children" | "allowsSorting">) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
} & Padding & Omit<import("react-aria-components").ColumnProps, "children" | "allowsSorting">) => import("react/jsx-runtime").JSX.Element;
|
|
32
53
|
Body: ({ children, emptyFallback, fetching, loading, scrollOffset, onLoadMore, ...rest }: {
|
|
33
54
|
children?: ReactNode;
|
|
34
55
|
onLoadMore?: () => void;
|
|
35
56
|
emptyFallback?: ReactNode;
|
|
36
57
|
loading?: boolean;
|
|
37
58
|
fetching?: boolean;
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
scrollOffset?: import("react-aria-components").TableLoadMoreItemProps["scrollOffset"];
|
|
60
|
+
className?: import("react-aria-components").TableBodyProps<unknown>["className"];
|
|
61
|
+
style?: import("react-aria-components").TableBodyProps<unknown>["style"];
|
|
62
|
+
} & Pick<import("react-aria-components").TableLoadMoreItemProps, "scrollOffset"> & Pick<import("react-aria-components").TableBodyProps<unknown>, "className" | "style">) => import("react/jsx-runtime").JSX.Element;
|
|
40
63
|
Row: ({ children, onClick, disabled, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, ...rest }: {
|
|
41
64
|
children: ReactNode;
|
|
42
65
|
id?: string;
|
|
@@ -431,11 +454,15 @@ declare const Table: {
|
|
|
431
454
|
children?: ReactNode;
|
|
432
455
|
defaultValue?: string;
|
|
433
456
|
clampLines?: number;
|
|
434
|
-
|
|
457
|
+
textValue?: import("react-aria-components").CellProps["textValue"];
|
|
458
|
+
colSpan?: import("react-aria-components").CellProps["colSpan"];
|
|
459
|
+
className?: import("react-aria-components").CellProps["className"];
|
|
460
|
+
style?: import("react-aria-components").CellProps["style"];
|
|
461
|
+
} & {
|
|
435
462
|
direction?: import("../types").FlexDirection;
|
|
436
463
|
justify?: import("../types").FlexPosition;
|
|
437
464
|
align?: import("../types").FlexPosition;
|
|
438
465
|
gap?: number | string;
|
|
439
|
-
} & Omit<import("react-aria-components").CellProps, "children">) => import("react/jsx-runtime").JSX.Element;
|
|
466
|
+
} & Padding & Omit<import("react-aria-components").CellProps, "children">) => import("react/jsx-runtime").JSX.Element;
|
|
440
467
|
};
|
|
441
468
|
export default Table;
|
|
@@ -12,9 +12,9 @@ const baseStyles = ({ direction, justify, align = 'center', gap = 8 })=>({
|
|
|
12
12
|
height: '100%',
|
|
13
13
|
gap
|
|
14
14
|
});
|
|
15
|
-
const
|
|
15
|
+
const contentStyles = [
|
|
16
16
|
baseStyles,
|
|
17
17
|
paddingProps
|
|
18
18
|
];
|
|
19
|
-
const
|
|
20
|
-
export {
|
|
19
|
+
const Table_contentStyles = contentStyles;
|
|
20
|
+
export { Table_contentStyles as default };
|
|
@@ -7,7 +7,14 @@ type Props = {
|
|
|
7
7
|
detached?: boolean;
|
|
8
8
|
panelPosition?: 'top' | 'bottom';
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
|
|
10
|
+
disabledKeys?: TabsProps['disabledKeys'];
|
|
11
|
+
selectedKey?: TabsProps['selectedKey'];
|
|
12
|
+
defaultSelectedKey?: TabsProps['defaultSelectedKey'];
|
|
13
|
+
keyboardActivation?: TabsProps['keyboardActivation'];
|
|
14
|
+
className?: TabsProps['className'];
|
|
15
|
+
style?: TabsProps['style'];
|
|
16
|
+
onSelectionChange?: TabsProps['onSelectionChange'];
|
|
17
|
+
} & Omit<TabsProps, 'children' | 'isDisabled' | 'orientation'> & Margin & WidthHeight & MaxWidthHeight;
|
|
11
18
|
declare const Tabs: {
|
|
12
19
|
({ children, detached, panelPosition, disabled, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
20
|
List: {
|
|
@@ -23,12 +30,15 @@ declare const Tabs: {
|
|
|
23
30
|
displayName: string;
|
|
24
31
|
};
|
|
25
32
|
};
|
|
26
|
-
type ListProps =
|
|
33
|
+
type ListProps = {
|
|
27
34
|
/** Controls whether tabs fill the container width or fit to their content */
|
|
28
35
|
tabWidth?: 'fit' | 'fill';
|
|
29
36
|
/** Sets the border radius for the tab items */
|
|
30
37
|
borderRadius?: number;
|
|
31
|
-
|
|
38
|
+
children?: TabListProps<any>['children'];
|
|
39
|
+
className?: TabListProps<any>['className'];
|
|
40
|
+
style?: TabListProps<any>['style'];
|
|
41
|
+
} & Omit<TabListProps<any>, 'items' | 'dependencies'> & Padding;
|
|
32
42
|
export declare const List: {
|
|
33
43
|
({ tabWidth, borderRadius, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
34
44
|
displayName: string;
|
|
@@ -48,7 +58,13 @@ type ItemProps = {
|
|
|
48
58
|
gap?: string | number;
|
|
49
59
|
/** Disables the tab from being selected */
|
|
50
60
|
disabled?: boolean;
|
|
51
|
-
|
|
61
|
+
className?: TabProps['className'];
|
|
62
|
+
style?: TabProps['style'];
|
|
63
|
+
onPress?: TabProps['onPress'];
|
|
64
|
+
onHoverChange?: TabProps['onHoverChange'];
|
|
65
|
+
onHoverStart?: TabProps['onHoverStart'];
|
|
66
|
+
onHoverEnd?: TabProps['onHoverEnd'];
|
|
67
|
+
} & Omit<TabProps, 'children' | 'isDisabled' | 'id' | 'href' | 'hrefLang' | 'rel' | 'target' | 'download' | 'ping' | 'referrerPolicy' | 'routerOptions' | 'onClick'>;
|
|
52
68
|
export declare const Item: {
|
|
53
69
|
({ children, icon, iconColor, iconPosition, disabled, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
54
70
|
displayName: string;
|
|
@@ -56,6 +72,10 @@ export declare const Item: {
|
|
|
56
72
|
type PanelProps = {
|
|
57
73
|
/** The unique id that matches the id of the tab */
|
|
58
74
|
id: string;
|
|
75
|
+
shouldForceMount?: TabPanelProps['shouldForceMount'];
|
|
76
|
+
children?: TabPanelProps['children'];
|
|
77
|
+
className?: TabPanelProps['className'];
|
|
78
|
+
style?: TabPanelProps['style'];
|
|
59
79
|
} & Omit<TabPanelProps, 'id'>;
|
|
60
80
|
export declare const Panel: {
|
|
61
81
|
(props: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,6 +24,10 @@ type Props = {
|
|
|
24
24
|
iconRight?: IconName;
|
|
25
25
|
/** The border radius of the toggle button */
|
|
26
26
|
borderRadius?: string | number;
|
|
27
|
+
isSelected?: ToggleButtonProps['isSelected'];
|
|
28
|
+
defaultSelected?: ToggleButtonProps['defaultSelected'];
|
|
29
|
+
className?: ToggleButtonProps['className'];
|
|
30
|
+
style?: ToggleButtonProps['style'];
|
|
27
31
|
} & Omit<ToggleButtonProps, 'children' | 'id' | 'isDisabled'> & MarginPadding;
|
|
28
32
|
declare const ToggleButton: ({ children, disabled, size, positive, negative, caution, secondary, iconLeft, iconRight, borderRadius, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
export default ToggleButton;
|
|
@@ -6,7 +6,7 @@ import { ToggleButton } from "react-aria-components";
|
|
|
6
6
|
import getIcon from "../helpers/getIcon.js";
|
|
7
7
|
import { marginProps, paddingProps } from "../helpers/styledProps.js";
|
|
8
8
|
import { ToggleContext } from "./context.js";
|
|
9
|
-
const
|
|
9
|
+
const ToggleButton_ToggleButton = ({ children, disabled, size, positive, negative, caution, secondary, iconLeft, iconRight, borderRadius, ...props })=>{
|
|
10
10
|
const { type, joined, size: toggleSize, height } = useContext(ToggleContext);
|
|
11
11
|
const { button } = useTheme();
|
|
12
12
|
const { iconSize } = button[size || toggleSize];
|
|
@@ -100,5 +100,5 @@ const Button = styled(ToggleButton)(({ theme, secondary, negative, positive, cau
|
|
|
100
100
|
} : {}
|
|
101
101
|
};
|
|
102
102
|
}, marginProps, paddingProps);
|
|
103
|
-
const
|
|
104
|
-
export {
|
|
103
|
+
const components_ToggleButton_ToggleButton = ToggleButton_ToggleButton;
|
|
104
|
+
export { components_ToggleButton_ToggleButton as default };
|
|
@@ -17,6 +17,14 @@ type Props = {
|
|
|
17
17
|
joined?: boolean;
|
|
18
18
|
/** The gap between the toggle buttons */
|
|
19
19
|
gap?: string | number;
|
|
20
|
-
|
|
20
|
+
children?: ToggleButtonGroupProps['children'];
|
|
21
|
+
selectionMode?: ToggleButtonGroupProps['selectionMode'];
|
|
22
|
+
disallowEmptySelection?: ToggleButtonGroupProps['disallowEmptySelection'];
|
|
23
|
+
selectedKeys?: ToggleButtonGroupProps['selectedKeys'];
|
|
24
|
+
defaultSelectedKeys?: ToggleButtonGroupProps['defaultSelectedKeys'];
|
|
25
|
+
className?: ToggleButtonGroupProps['className'];
|
|
26
|
+
style?: ToggleButtonGroupProps['style'];
|
|
27
|
+
onSelectionChange?: ToggleButtonGroupProps['onSelectionChange'];
|
|
28
|
+
} & Omit<ToggleButtonGroupProps, 'isDisabled' | 'orientation'> & MarginPadding & WidthHeight;
|
|
21
29
|
declare const ToggleButtonGroup: ({ disabled, secondary, negative, positive, caution, joined, gap, size, height, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
30
|
export default ToggleButtonGroup;
|
|
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type TooltipTriggerComponentProps } from 'react-aria-components';
|
|
3
3
|
import type { Attributes } from './typeDefs/elementTypes';
|
|
4
4
|
import type { Placement, ThemeProp } from './types';
|
|
5
|
-
export type
|
|
5
|
+
export type Props = {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
/** The element that will trigger the opening of the Tooltip */
|
|
8
8
|
trigger: ReactNode;
|
|
@@ -35,9 +35,12 @@ export type TooltipProps = {
|
|
|
35
35
|
afterShow?: () => void;
|
|
36
36
|
/** The function called after the Tooltip closes */
|
|
37
37
|
afterHide?: () => void;
|
|
38
|
-
|
|
38
|
+
delay?: TooltipTriggerComponentProps['delay'];
|
|
39
|
+
closeDelay?: TooltipTriggerComponentProps['closeDelay'];
|
|
40
|
+
defaultOpen?: TooltipTriggerComponentProps['defaultOpen'];
|
|
41
|
+
} & Pick<TooltipTriggerComponentProps, 'delay' | 'closeDelay' | 'defaultOpen'>;
|
|
39
42
|
declare const Tooltip: {
|
|
40
|
-
({ trigger, triggerProps, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, bgColor, color, className, afterShow, afterHide, ...props }:
|
|
43
|
+
({ trigger, triggerProps, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, bgColor, color, className, afterShow, afterHide, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
41
44
|
Header: import("@emotion/styled").StyledComponent<{
|
|
42
45
|
theme?: import("@emotion/react").Theme;
|
|
43
46
|
as?: React.ElementType;
|
|
@@ -7,10 +7,23 @@ type Props = {
|
|
|
7
7
|
selectedKeys?: Set<React.Key>;
|
|
8
8
|
/** Handler that is called when the selection changes */
|
|
9
9
|
onSelectionChange?: (keys: Set<React.Key>) => void;
|
|
10
|
-
|
|
10
|
+
expandedKeys?: TreeProps<object>['expandedKeys'];
|
|
11
|
+
defaultExpandedKeys?: TreeProps<object>['defaultExpandedKeys'];
|
|
12
|
+
renderEmptyState?: TreeProps<object>['renderEmptyState'];
|
|
13
|
+
disabledBehavior?: TreeProps<object>['disabledBehavior'];
|
|
14
|
+
escapeKeyBehavior?: TreeProps<object>['escapeKeyBehavior'];
|
|
15
|
+
autoFocus?: TreeProps<object>['autoFocus'];
|
|
16
|
+
shouldSelectOnPressUp?: TreeProps<object>['shouldSelectOnPressUp'];
|
|
17
|
+
disabledKeys?: TreeProps<object>['disabledKeys'];
|
|
18
|
+
children?: TreeProps<object>['children'];
|
|
19
|
+
className?: TreeProps<object>['className'];
|
|
20
|
+
style?: TreeProps<object>['style'];
|
|
21
|
+
onAction?: TreeProps<object>['onAction'];
|
|
22
|
+
onExpandedChange?: TreeProps<object>['onExpandedChange'];
|
|
23
|
+
} & WidthHeight & Padding & Omit<TreeProps<object>, 'items' | 'selectionMode' | 'selectionBehavior' | 'selectedKeys' | 'onSelectionChange' | 'disallowEmptySelection' | 'dragAndDropHooks' | 'dependencies'>;
|
|
11
24
|
declare const Tree: {
|
|
12
25
|
({ backgroundColor, expandedKeys: expandedKeysProp, onExpandedChange, defaultExpandedKeys, selectedKeys, onSelectionChange, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
Item: ({ children, title, id, iconLeft, iconRight, expandOnSelect, indent, content, ...props }: {
|
|
26
|
+
Item: ({ children, title, id, iconLeft, iconRight, expandOnSelect, indent, content, disabled, ...props }: {
|
|
14
27
|
title: string;
|
|
15
28
|
children?: import("react").ReactNode;
|
|
16
29
|
content?: import("react").ReactNode;
|
|
@@ -18,6 +31,15 @@ declare const Tree: {
|
|
|
18
31
|
iconRight?: import("../helpers/getIcon").IconType;
|
|
19
32
|
expandOnSelect?: boolean;
|
|
20
33
|
indent?: number;
|
|
21
|
-
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
id?: import("react-aria-components").TreeItemProps<string>["id"];
|
|
36
|
+
className?: import("react-aria-components").TreeItemProps<string>["className"];
|
|
37
|
+
style?: import("react-aria-components").TreeItemProps<string>["style"];
|
|
38
|
+
onAction?: import("react-aria-components").TreeItemProps<string>["onAction"];
|
|
39
|
+
onPress?: import("react-aria-components").TreeItemProps<string>["onPress"];
|
|
40
|
+
onHoverStart?: import("react-aria-components").TreeItemProps<string>["onHoverStart"];
|
|
41
|
+
onHoverEnd?: import("react-aria-components").TreeItemProps<string>["onHoverEnd"];
|
|
42
|
+
onHoverChange?: import("react-aria-components").TreeItemProps<string>["onHoverChange"];
|
|
43
|
+
} & Pick<import("react-aria-components").TreeItemProps<string>, "className" | "style" | "id" | "aria-label" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onAction" | "onHoverStart" | "onHoverEnd" | "onHoverChange">) => import("react/jsx-runtime").JSX.Element;
|
|
22
44
|
};
|
|
23
45
|
export default Tree;
|
|
@@ -16,6 +16,15 @@ type ItemProps = {
|
|
|
16
16
|
expandOnSelect?: boolean;
|
|
17
17
|
/** The indentation level of the item (default: 1 === 16px) */
|
|
18
18
|
indent?: number;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
id?: TreeItemProps<string>['id'];
|
|
21
|
+
className?: TreeItemProps<string>['className'];
|
|
22
|
+
style?: TreeItemProps<string>['style'];
|
|
23
|
+
onAction?: TreeItemProps<string>['onAction'];
|
|
24
|
+
onPress?: TreeItemProps<string>['onPress'];
|
|
25
|
+
onHoverStart?: TreeItemProps<string>['onHoverStart'];
|
|
26
|
+
onHoverEnd?: TreeItemProps<string>['onHoverEnd'];
|
|
27
|
+
onHoverChange?: TreeItemProps<string>['onHoverChange'];
|
|
28
|
+
} & Pick<TreeItemProps<string>, 'id' | 'className' | 'style' | 'onAction' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onPress' | 'onPressStart' | 'onPressEnd' | 'onPressChange' | 'aria-label'>;
|
|
29
|
+
declare const Item: ({ children, title, id, iconLeft, iconRight, expandOnSelect, indent, content, disabled, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
30
|
export default Item;
|
|
@@ -6,12 +6,13 @@ import getIcon from "../helpers/getIcon.js";
|
|
|
6
6
|
import Icon from "../Icon/index.js";
|
|
7
7
|
import AriaButton from "../Inputs/helpers/AriaButton.js";
|
|
8
8
|
import { TreeContext } from "./TreeContext.js";
|
|
9
|
-
const Item = ({ children, title, id, iconLeft, iconRight, expandOnSelect, indent, content, ...props })=>{
|
|
9
|
+
const Item = ({ children, title, id, iconLeft, iconRight, expandOnSelect, indent, content, disabled, ...props })=>{
|
|
10
10
|
const { requestExpand } = useContext(TreeContext);
|
|
11
11
|
return /*#__PURE__*/ jsxs(TreeItemContainer, {
|
|
12
12
|
id: id || title,
|
|
13
13
|
textValue: title,
|
|
14
14
|
indent: indent,
|
|
15
|
+
isDisabled: disabled,
|
|
15
16
|
...expandOnSelect && children ? {
|
|
16
17
|
onPress: ()=>{
|
|
17
18
|
requestExpand?.([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "react-aria-components";
|
|
3
|
-
const
|
|
3
|
+
const UnstyledButton = ({ children, ...props })=>/*#__PURE__*/ jsx(Button, {
|
|
4
4
|
...props,
|
|
5
5
|
children: children
|
|
6
6
|
});
|
|
7
|
-
const
|
|
8
|
-
export {
|
|
7
|
+
const components_UnstyledButton = UnstyledButton;
|
|
8
|
+
export { components_UnstyledButton as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
import type { IconName } from '../Icon/Icon';
|
|
3
3
|
import { type IconProps } from '../Icon/Icon';
|
|
4
|
-
import type { TooltipProps } from '../Tooltip';
|
|
4
|
+
import type { Props as TooltipProps } from '../Tooltip';
|
|
5
5
|
export type IconType = IconName | IconProps | ReactElement<IconProps> | ReactElement<TooltipProps>;
|
|
6
6
|
type ReducedIconProps = Omit<IconProps, 'name' | 'svg' | 'external'>;
|
|
7
7
|
declare const getIcon: (icon: IconType, props?: ReducedIconProps) => ReactElement<IconProps | TooltipProps>;
|
|
@@ -3,7 +3,7 @@ const parseValue = (value)=>{
|
|
|
3
3
|
if ('string' == typeof value) return Number.parseInt(value.replace('px', ''), 10);
|
|
4
4
|
return 0;
|
|
5
5
|
};
|
|
6
|
-
const
|
|
6
|
+
const mergePadding = (paddingObj)=>{
|
|
7
7
|
const paddingValues = {
|
|
8
8
|
top: 0,
|
|
9
9
|
right: 0,
|
|
@@ -43,5 +43,5 @@ const mergePadding_mergePadding = (paddingObj)=>{
|
|
|
43
43
|
if (void 0 !== paddingLeft) paddingValues.left = parseValue(paddingLeft);
|
|
44
44
|
return paddingValues;
|
|
45
45
|
};
|
|
46
|
-
const
|
|
47
|
-
export {
|
|
46
|
+
const helpers_mergePadding = mergePadding;
|
|
47
|
+
export { helpers_mergePadding as default };
|
|
@@ -48,6 +48,7 @@ export type InputBaseProps = {
|
|
|
48
48
|
export type TextInputProps = {
|
|
49
49
|
/** A regex string, similar to `pattern`, but prevents input outside the pattern */
|
|
50
50
|
accepts?: string;
|
|
51
|
+
asTrigger?: boolean;
|
|
51
52
|
};
|
|
52
53
|
export type TextAreaProps = TextInputProps & {
|
|
53
54
|
/** Maximum height of the textarea. Content will scroll after this height is reached */
|