draft-components 1.2.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/button/button.cjs +5 -5
- package/cjs/components/button/icon-button.cjs +1 -1
- package/cjs/components/dialog/dialog-body.cjs +1 -41
- package/cjs/components/dialog/dialog-footer.cjs +5 -2
- package/cjs/components/dialog/dialog-header.cjs +5 -2
- package/cjs/components/menu/menu-item.cjs +5 -5
- package/cjs/components/select/select.cjs +24 -12
- package/css/draft-components-utilities.css +7 -7
- package/css/draft-components.css +251 -144
- package/css/draft-components.dark.css +73 -73
- package/esm/components/button/button.js +5 -5
- package/esm/components/button/icon-button.js +1 -1
- package/esm/components/dialog/dialog-body.js +2 -42
- package/esm/components/dialog/dialog-footer.js +5 -2
- package/esm/components/dialog/dialog-header.js +5 -2
- package/esm/components/menu/menu-item.js +5 -5
- package/esm/components/select/select.js +25 -13
- package/package.json +35 -36
- package/types/components/avatar-group/avatar-group.d.ts +1 -1
- package/types/components/badge/badge.d.ts +1 -1
- package/types/components/breadcrumbs/breadcrumbs-context.d.ts +1 -1
- package/types/components/breadcrumbs/breadcrumbs-item.d.ts +1 -1
- package/types/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/types/components/button/button.d.ts +2 -2
- package/types/components/button/icon-button.d.ts +1 -1
- package/types/components/button-group/button-group.d.ts +1 -1
- package/types/components/caption/icons.d.ts +4 -4
- package/types/components/color-picker/color-picker-button.d.ts +1 -1
- package/types/components/color-picker/color-picker.d.ts +1 -1
- package/types/components/date-picker/calendar-day.d.ts +1 -1
- package/types/components/date-picker/calendar-grid-head.d.ts +1 -2
- package/types/components/date-picker/calendar-grid.d.ts +1 -2
- package/types/components/date-picker/calendar-header.d.ts +1 -2
- package/types/components/date-picker/calendar.d.ts +1 -2
- package/types/components/date-picker/date-picker.d.ts +1 -1
- package/types/components/date-picker/date-range-picker.d.ts +1 -1
- package/types/components/date-picker/icons.d.ts +2 -2
- package/types/components/date-picker-popover/date-picker-popover.d.ts +1 -1
- package/types/components/date-range-picker-popover/date-range-picker-popover-footer.d.ts +1 -1
- package/types/components/date-range-picker-popover/date-range-picker-popover-presets.d.ts +1 -2
- package/types/components/date-range-picker-popover/date-range-picker-popover.d.ts +1 -1
- package/types/components/dialog/dialog-body.d.ts +2 -5
- package/types/components/dialog/dialog-context.d.ts +1 -1
- package/types/components/dialog/dialog-footer.d.ts +4 -2
- package/types/components/dialog/dialog-header.d.ts +2 -1
- package/types/components/dialog/dialog.d.ts +1 -1
- package/types/components/dialog/x-mark-icon.d.ts +1 -1
- package/types/components/empty-state/empty-state.d.ts +1 -1
- package/types/components/filter-buttons/filter-buttons.d.ts +1 -1
- package/types/components/form-field/form-field.d.ts +1 -1
- package/types/components/menu/menu-item.d.ts +2 -2
- package/types/components/menu/menu-separator.d.ts +1 -1
- package/types/components/menu/menu.d.ts +1 -1
- package/types/components/nav-list/nav-list-item.d.ts +1 -1
- package/types/components/nav-list/nav-list-title.d.ts +1 -1
- package/types/components/nav-list/nav-list.d.ts +1 -1
- package/types/components/password-input/icons.d.ts +2 -2
- package/types/components/portal/portal-context.d.ts +1 -1
- package/types/components/positioner/positioner.d.ts +1 -1
- package/types/components/segmented-control/segmented-control-button.d.ts +1 -1
- package/types/components/segmented-control/segmented-control.d.ts +1 -1
- package/types/components/select/select.d.ts +3 -0
- package/types/components/selection-control/selection-control.d.ts +1 -1
- package/types/components/slider/slider-tick-marks.d.ts +1 -1
- package/types/components/table/icons.d.ts +3 -3
- package/types/components/tabs/tab-list.d.ts +1 -1
- package/types/components/tabs/tab-panel.d.ts +1 -1
- package/types/components/tabs/tab.d.ts +1 -1
- package/types/components/tabs/tabs-context.d.ts +1 -1
- package/types/components/tabs/tabs.d.ts +1 -1
- package/types/components/toast/toast.d.ts +1 -1
- package/types/components/toast/x-mark-icon.d.ts +1 -1
- package/types/components/toaster/toaster.d.ts +1 -1
- package/types/components/tooltip/tooltip.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "draft-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "The React based UI components library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"check-types": "tsc --noEmit",
|
|
33
33
|
"prebuild": "npm run test && npm run lint && npm run lint-styles",
|
|
34
34
|
"build": "node scripts/build.js",
|
|
35
|
-
"build-storybook": "build
|
|
35
|
+
"build-storybook": "storybook build",
|
|
36
36
|
"preversion": "npm run build",
|
|
37
|
-
"storybook": "
|
|
37
|
+
"storybook": "storybook dev --port 6060 --no-open"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
@@ -57,50 +57,49 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@alexzimakov/eslint-config": "1.5.0",
|
|
60
|
-
"@babel/core": "7.
|
|
61
|
-
"@babel/preset-env": "7.
|
|
60
|
+
"@babel/core": "7.21.8",
|
|
61
|
+
"@babel/preset-env": "7.21.5",
|
|
62
62
|
"@babel/preset-react": "7.18.6",
|
|
63
|
-
"@babel/preset-typescript": "7.
|
|
64
|
-
"@heroicons/react": "2.0.
|
|
65
|
-
"@rollup/plugin-typescript": "11.
|
|
66
|
-
"@storybook/addon-actions": "
|
|
67
|
-
"@storybook/addon-essentials": "
|
|
68
|
-
"@storybook/addon-links": "
|
|
69
|
-
"@storybook/
|
|
70
|
-
"@storybook/react": "
|
|
71
|
-
"@testing-library/dom": "
|
|
63
|
+
"@babel/preset-typescript": "7.21.5",
|
|
64
|
+
"@heroicons/react": "2.0.18",
|
|
65
|
+
"@rollup/plugin-typescript": "11.1.1",
|
|
66
|
+
"@storybook/addon-actions": "7.0.11",
|
|
67
|
+
"@storybook/addon-essentials": "7.0.11",
|
|
68
|
+
"@storybook/addon-links": "7.0.11",
|
|
69
|
+
"@storybook/react": "7.0.11",
|
|
70
|
+
"@storybook/react-vite": "7.0.11",
|
|
71
|
+
"@testing-library/dom": "9.3.0",
|
|
72
72
|
"@testing-library/jest-dom": "5.16.5",
|
|
73
|
-
"@testing-library/react": "
|
|
73
|
+
"@testing-library/react": "14.0.0",
|
|
74
74
|
"@testing-library/user-event": "14.4.3",
|
|
75
|
-
"@types/jest": "29.
|
|
76
|
-
"@types/node": "18.
|
|
77
|
-
"@types/react": "18.
|
|
78
|
-
"@types/react-dom": "18.
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
80
|
-
"@typescript-eslint/parser": "5.
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"eslint": "8.34.0",
|
|
75
|
+
"@types/jest": "29.5.1",
|
|
76
|
+
"@types/node": "18.16.8",
|
|
77
|
+
"@types/react": "18.2.6",
|
|
78
|
+
"@types/react-dom": "18.2.4",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "5.59.5",
|
|
80
|
+
"@typescript-eslint/parser": "5.59.5",
|
|
81
|
+
"autoprefixer": "10.4.14",
|
|
82
|
+
"eslint": "8.40.0",
|
|
84
83
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
85
84
|
"eslint-plugin-react": "7.32.2",
|
|
86
85
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
87
|
-
"eslint-plugin-storybook": "0.6.
|
|
88
|
-
"eslint-plugin-testing-library": "5.
|
|
86
|
+
"eslint-plugin-storybook": "0.6.12",
|
|
87
|
+
"eslint-plugin-testing-library": "5.11.0",
|
|
89
88
|
"husky": "8.0.3",
|
|
90
|
-
"jest": "29.
|
|
91
|
-
"jest-environment-jsdom": "29.
|
|
92
|
-
"lint-staged": "13.
|
|
93
|
-
"postcss": "8.4.
|
|
89
|
+
"jest": "29.5.0",
|
|
90
|
+
"jest-environment-jsdom": "29.5.0",
|
|
91
|
+
"lint-staged": "13.2.2",
|
|
92
|
+
"postcss": "8.4.23",
|
|
94
93
|
"postcss-import": "15.1.0",
|
|
95
94
|
"react": "18.2.0",
|
|
96
95
|
"react-dom": "18.2.0",
|
|
97
|
-
"rollup": "3.
|
|
98
|
-
"storybook": "
|
|
99
|
-
"stylelint": "15.1
|
|
100
|
-
"stylelint-config-standard": "
|
|
101
|
-
"stylelint-order": "6.0.
|
|
96
|
+
"rollup": "3.21.6",
|
|
97
|
+
"storybook": "7.0.11",
|
|
98
|
+
"stylelint": "15.6.1",
|
|
99
|
+
"stylelint-config-standard": "33.0.0",
|
|
100
|
+
"stylelint-order": "6.0.3",
|
|
102
101
|
"typescript": "4.9.5",
|
|
103
|
-
"vite": "4.
|
|
102
|
+
"vite": "4.3.5"
|
|
104
103
|
},
|
|
105
104
|
"lint-staged": {
|
|
106
105
|
"*.ts?(x)": "npm run lint",
|
|
@@ -3,5 +3,5 @@ type AvatarGroupBaseProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
|
3
3
|
export type AvatarGroupProps = AvatarGroupBaseProps & {
|
|
4
4
|
children: JSX.Element | JSX.Element[];
|
|
5
5
|
};
|
|
6
|
-
export declare function AvatarGroup({ className, children, ...props }: AvatarGroupProps): JSX.Element;
|
|
6
|
+
export declare function AvatarGroup({ className, children, ...props }: AvatarGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -4,5 +4,5 @@ type BadgeBaseProps = Omit<BadgeHTMLProps, 'children'>;
|
|
|
4
4
|
export type BadgeProps = {
|
|
5
5
|
children: number | string;
|
|
6
6
|
} & BadgeBaseProps;
|
|
7
|
-
export declare function Badge({ className, children, ...props }: BadgeProps): JSX.Element;
|
|
7
|
+
export declare function Badge({ className, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -8,5 +8,5 @@ export type BreadcrumbsItemProps = {
|
|
|
8
8
|
icon?: ReactNode;
|
|
9
9
|
renderAs?: BreadcrumbsItemRenderFn;
|
|
10
10
|
} & BreadcrumbsItemHTMLProps;
|
|
11
|
-
export declare function BreadcrumbsItem({ className, icon, children, renderAs, ...props }: BreadcrumbsItemProps): JSX.Element;
|
|
11
|
+
export declare function BreadcrumbsItem({ className, icon, children, renderAs, ...props }: BreadcrumbsItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -3,5 +3,5 @@ type BreadcrumbsHTMLProps = ComponentPropsWithoutRef<'nav'>;
|
|
|
3
3
|
export type BreadcrumbsProps = {
|
|
4
4
|
separator?: ReactNode;
|
|
5
5
|
} & BreadcrumbsHTMLProps;
|
|
6
|
-
export declare function Breadcrumbs({ separator, className, children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
6
|
+
export declare function Breadcrumbs({ separator, className, children, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -12,8 +12,8 @@ export type ButtonProps = {
|
|
|
12
12
|
size?: ButtonSize;
|
|
13
13
|
variant?: ButtonVariant;
|
|
14
14
|
appearance?: ButtonAppearance;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
leftIcon?: ReactNode;
|
|
16
|
+
rightIcon?: ReactNode;
|
|
17
17
|
caption?: ReactNode;
|
|
18
18
|
renderAs?: ButtonRenderFn;
|
|
19
19
|
} & ComponentPropsWithRef<'button'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from './button';
|
|
3
|
-
export type IconButtonBaseProps = Omit<ButtonProps, 'children' | 'caption' | '
|
|
3
|
+
export type IconButtonBaseProps = Omit<ButtonProps, 'children' | 'caption' | 'leftIcon' | 'rightIcon'>;
|
|
4
4
|
export type IconButtonProps = {
|
|
5
5
|
icon: ReactNode;
|
|
6
6
|
} & IconButtonBaseProps;
|
|
@@ -3,5 +3,5 @@ type ButtonGroupBaseProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
|
3
3
|
export type ButtonGroupProps = ButtonGroupBaseProps & {
|
|
4
4
|
children: JSX.Element | JSX.Element[];
|
|
5
5
|
};
|
|
6
|
-
export declare function ButtonGroup({ className, children, ...props }: ButtonGroupProps): JSX.Element;
|
|
6
|
+
export declare function ButtonGroup({ className, children, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function InfoIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
3
|
-
export declare function SuccessIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
4
|
-
export declare function ErrorIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
5
|
-
export declare function WarningIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function InfoIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function SuccessIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function ErrorIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function WarningIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export type ColorPickerButtonProps<T extends string | number> = {
|
|
|
11
11
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
12
12
|
onChangeValue?: (value: T) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare function ColorPickerButton<T extends string | number>({ style, className, label, name, color, value, checked, defaultChecked, onChange, onChangeValue, }: ColorPickerButtonProps<T>): JSX.Element;
|
|
14
|
+
export declare function ColorPickerButton<T extends string | number>({ style, className, label, name, color, value, checked, defaultChecked, onChange, onChangeValue, }: ColorPickerButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export type ColorPickerProps<T extends string | number> = {
|
|
|
12
12
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
13
13
|
onChangeValue?: (value: T) => void;
|
|
14
14
|
} & ComponentPropsWithoutRef<'fieldset'>;
|
|
15
|
-
export declare function ColorPicker<T extends string | number>({ className, name, disabled, options, value, defaultValue, onChange, onChangeValue, ...props }: ColorPickerProps<T>): JSX.Element;
|
|
15
|
+
export declare function ColorPicker<T extends string | number>({ className, name, disabled, options, value, defaultValue, onChange, onChangeValue, ...props }: ColorPickerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,5 +13,5 @@ export type CalendarDayProps = {
|
|
|
13
13
|
isRangeStart?: boolean;
|
|
14
14
|
isRangeEnd?: boolean;
|
|
15
15
|
} & CalendarDayHTMLProps;
|
|
16
|
-
export declare function CalendarDay({ date, dateISO, locale, isSelected, isDisabled, isFocusable, isToday, isWeekend, inRange, isRangeStart, isRangeEnd, ...props }: CalendarDayProps): JSX.Element;
|
|
16
|
+
export declare function CalendarDay({ date, dateISO, locale, isSelected, isDisabled, isFocusable, isToday, isWeekend, inRange, isRangeStart, isRangeEnd, ...props }: CalendarDayProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Weekday } from './date-helpers';
|
|
3
2
|
export type CalendarGridHeadProps = {
|
|
4
3
|
locale?: string;
|
|
5
4
|
weekStartsOn?: Weekday;
|
|
6
5
|
};
|
|
7
|
-
export declare function CalendarGridHead({ locale, weekStartsOn, }: CalendarGridHeadProps): JSX.Element;
|
|
6
|
+
export declare function CalendarGridHead({ locale, weekStartsOn, }: CalendarGridHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Weekday } from './date-helpers';
|
|
3
2
|
import { type CalendarDayProps } from './calendar-day';
|
|
4
3
|
export type GetCalendarDayProps = (date: Date) => Pick<CalendarDayProps, 'isSelected' | 'inRange' | 'isRangeStart' | 'isRangeEnd'>;
|
|
@@ -14,4 +13,4 @@ export type CalendarGridProps = {
|
|
|
14
13
|
onSelectDay(date: Date): void;
|
|
15
14
|
onChangeFocusDay(date: Date): void;
|
|
16
15
|
};
|
|
17
|
-
export declare function CalendarGrid({ focusDay, minDate, maxDate, locale, weekStartsOn, getDayProps, onHoverDay, onFocusDay, onSelectDay, onChangeFocusDay, }: CalendarGridProps): JSX.Element;
|
|
16
|
+
export declare function CalendarGrid({ focusDay, minDate, maxDate, locale, weekStartsOn, getDayProps, onHoverDay, onFocusDay, onSelectDay, onChangeFocusDay, }: CalendarGridProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type CalendarHeaderProps = {
|
|
3
2
|
focusDay: Date;
|
|
4
3
|
onChangeFocusDay: (date: Date) => void;
|
|
@@ -9,4 +8,4 @@ export type CalendarHeaderProps = {
|
|
|
9
8
|
monthSelectLabel?: string;
|
|
10
9
|
yearInputLabel?: string;
|
|
11
10
|
};
|
|
12
|
-
export declare function CalendarHeader({ focusDay, onChangeFocusDay, className, locale, nextMonthButtonLabel, prevMonthButtonLabel, monthSelectLabel, yearInputLabel, }: CalendarHeaderProps): JSX.Element;
|
|
11
|
+
export declare function CalendarHeader({ focusDay, onChangeFocusDay, className, locale, nextMonthButtonLabel, prevMonthButtonLabel, monthSelectLabel, yearInputLabel, }: CalendarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Weekday } from './date-helpers';
|
|
3
2
|
import { type CalendarHeaderProps } from './calendar-header';
|
|
4
3
|
import { type CalendarGridProps } from './calendar-grid';
|
|
@@ -8,4 +7,4 @@ export type CalendarProps = {
|
|
|
8
7
|
weekStartsOn?: Weekday;
|
|
9
8
|
onFocusDay?(date: Date): void;
|
|
10
9
|
} & Pick<CalendarGridProps, 'minDate' | 'maxDate' | 'getDayProps' | 'onHoverDay' | 'onFocusDay' | 'onSelectDay'> & Pick<CalendarHeaderProps, 'locale' | 'nextMonthButtonLabel' | 'prevMonthButtonLabel' | 'monthSelectLabel' | 'yearInputLabel'>;
|
|
11
|
-
export declare function Calendar({ className, defaultFocusDay, minDate, maxDate, locale, weekStartsOn, nextMonthButtonLabel, prevMonthButtonLabel, getDayProps, onHoverDay, onFocusDay, onSelectDay, }: CalendarProps): JSX.Element;
|
|
10
|
+
export declare function Calendar({ className, defaultFocusDay, minDate, maxDate, locale, weekStartsOn, nextMonthButtonLabel, prevMonthButtonLabel, getDayProps, onHoverDay, onFocusDay, onSelectDay, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,5 +9,5 @@ export type DatePickerProps = {
|
|
|
9
9
|
min?: DateISO;
|
|
10
10
|
max?: DateISO;
|
|
11
11
|
} & Pick<CalendarProps, 'locale' | 'prevMonthButtonLabel' | 'nextMonthButtonLabel' | 'monthSelectLabel' | 'yearInputLabel'> & DatePickerHTMLProps;
|
|
12
|
-
export declare function DatePicker({ value, onChangeValue, weekStartsOn, min, max, locale, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, className, ...props }: DatePickerProps): JSX.Element;
|
|
12
|
+
export declare function DatePicker({ value, onChangeValue, weekStartsOn, min, max, locale, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, className, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -10,5 +10,5 @@ export type DateRangePickerProps = {
|
|
|
10
10
|
min?: DateISO;
|
|
11
11
|
max?: DateISO;
|
|
12
12
|
} & Pick<CalendarProps, 'locale' | 'prevMonthButtonLabel' | 'nextMonthButtonLabel' | 'monthSelectLabel' | 'yearInputLabel'> & DateRangePickerHTMLProps;
|
|
13
|
-
export declare function DateRangePicker({ value, onChangeValue, weekStartsOn, min, max, locale, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, className, ...props }: DateRangePickerProps): JSX.Element;
|
|
13
|
+
export declare function DateRangePicker({ value, onChangeValue, weekStartsOn, min, max, locale, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, className, ...props }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function ChevronLeftIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
3
|
-
export declare function ChevronRightIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function ChevronLeftIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function ChevronRightIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,4 +10,4 @@ export type DatePickerPopoverProps = {
|
|
|
10
10
|
value: DateISO | null;
|
|
11
11
|
onChangeValue: DatePickerChangeValueFn;
|
|
12
12
|
} & Pick<DatePickerProps, 'min' | 'max' | 'locale' | 'weekStartsOn' | 'prevMonthButtonLabel' | 'nextMonthButtonLabel' | 'monthSelectLabel' | 'yearInputLabel'>;
|
|
13
|
-
export declare function DatePickerPopover({ defaultIsOpen, footer, className, children, value, onChangeValue, min, max, locale, weekStartsOn, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, }: DatePickerPopoverProps): JSX.Element;
|
|
13
|
+
export declare function DatePickerPopover({ defaultIsOpen, footer, className, children, value, onChangeValue, min, max, locale, weekStartsOn, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, }: DatePickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export type DateRangePickerPopoverFooterProps = {
|
|
|
6
6
|
onClickCancelButton: MouseEventHandler<HTMLButtonElement>;
|
|
7
7
|
onClickConfirmButton: MouseEventHandler<HTMLButtonElement>;
|
|
8
8
|
};
|
|
9
|
-
export declare function DateRangePickerPopoverFooter({ children, cancelButtonLabel, confirmButtonLabel, onClickCancelButton, onClickConfirmButton, }: DateRangePickerPopoverFooterProps): JSX.Element;
|
|
9
|
+
export declare function DateRangePickerPopoverFooter({ children, cancelButtonLabel, confirmButtonLabel, onClickCancelButton, onClickConfirmButton, }: DateRangePickerPopoverFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type DateRangePickerPopoverOption, type DateRangePickerPopoverSelection } from './types';
|
|
3
2
|
export type DateRangePickerPopoverPresetsProps = {
|
|
4
3
|
isCompactView: boolean;
|
|
@@ -7,4 +6,4 @@ export type DateRangePickerPopoverPresetsProps = {
|
|
|
7
6
|
value: DateRangePickerPopoverSelection | null;
|
|
8
7
|
onChangeValue: (value: DateRangePickerPopoverSelection) => void;
|
|
9
8
|
};
|
|
10
|
-
export declare function DateRangePickerPopoverPresets({ isCompactView, customPresetLabel, options, value, onChangeValue, }: DateRangePickerPopoverPresetsProps): JSX.Element;
|
|
9
|
+
export declare function DateRangePickerPopoverPresets({ isCompactView, customPresetLabel, options, value, onChangeValue, }: DateRangePickerPopoverPresetsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,4 +23,4 @@ export type DateRangePickerPopoverProps = {
|
|
|
23
23
|
value: DateRangePickerPopoverSelection | null;
|
|
24
24
|
onChangeValue: (value: DateRangePickerPopoverSelection) => void;
|
|
25
25
|
} & Pick<DateRangePickerProps, 'min' | 'max' | 'locale' | 'weekStartsOn' | 'prevMonthButtonLabel' | 'nextMonthButtonLabel' | 'monthSelectLabel' | 'yearInputLabel'>;
|
|
26
|
-
export declare function DateRangePickerPopover({ defaultIsOpen, compactViewBreakpoint, customPreset, customPresetLabel, placement, alignment, cancelButtonLabel, confirmButtonLabel, footer, className, options, children, value, onChangeValue, min, max, locale, weekStartsOn, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, }: DateRangePickerPopoverProps): JSX.Element;
|
|
26
|
+
export declare function DateRangePickerPopover({ defaultIsOpen, compactViewBreakpoint, customPreset, customPresetLabel, placement, alignment, cancelButtonLabel, confirmButtonLabel, footer, className, options, children, value, onChangeValue, min, max, locale, weekStartsOn, prevMonthButtonLabel, nextMonthButtonLabel, monthSelectLabel, yearInputLabel, }: DateRangePickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type DialogBodyHTMLProps = ComponentPropsWithoutRef<'div'>;
|
|
3
|
-
export type DialogBodyProps =
|
|
4
|
-
|
|
5
|
-
scrollShadowBottom?: boolean;
|
|
6
|
-
} & DialogBodyHTMLProps;
|
|
7
|
-
export declare function DialogBody({ scrollShadowTop, scrollShadowBottom, className, children, }: DialogBodyProps): JSX.Element;
|
|
3
|
+
export type DialogBodyProps = DialogBodyHTMLProps;
|
|
4
|
+
export declare function DialogBody({ className, children, }: DialogBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
8
5
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type DialogFooterHTMLProps = ComponentPropsWithoutRef<'div'>;
|
|
3
|
-
export type DialogFooterProps =
|
|
4
|
-
|
|
3
|
+
export type DialogFooterProps = {
|
|
4
|
+
hasBorder?: boolean;
|
|
5
|
+
} & DialogFooterHTMLProps;
|
|
6
|
+
export declare function DialogFooter({ hasBorder, className, children, }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
type DialogHeaderHTMLProps = ComponentPropsWithoutRef<'div'>;
|
|
3
3
|
export type DialogHeaderProps = {
|
|
4
|
+
hasBorder?: boolean;
|
|
4
5
|
heading?: ReactNode;
|
|
5
6
|
subheading?: ReactNode;
|
|
6
7
|
} & DialogHeaderHTMLProps;
|
|
7
|
-
export declare function DialogHeader({ heading, subheading, className, children, }: DialogHeaderProps): JSX.Element;
|
|
8
|
+
export declare function DialogHeader({ hasBorder, heading, subheading, className, children, }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -8,5 +8,5 @@ export type DialogProps = {
|
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
onClose: () => void;
|
|
10
10
|
} & DialogHTMLProps;
|
|
11
|
-
export declare function Dialog({ width, isOpen, openFocusRef, closeFocusRef, onClose, className, children, ...props }: DialogProps): JSX.Element | null;
|
|
11
|
+
export declare function Dialog({ width, isOpen, openFocusRef, closeFocusRef, onClose, className, children, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
12
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function XMarkIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function XMarkIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,5 @@ export type EmptyStateProps = {
|
|
|
7
7
|
primaryAction?: ReactNode;
|
|
8
8
|
secondaryAction?: ReactNode;
|
|
9
9
|
} & EmptyStateHTMLProps;
|
|
10
|
-
export declare function EmptyState({ className, image, heading, description, primaryAction, secondaryAction, children, }: EmptyStateProps): JSX.Element;
|
|
10
|
+
export declare function EmptyState({ className, image, heading, description, primaryAction, secondaryAction, children, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type FilterButtonsHTMLProps = ComponentPropsWithoutRef<'div'>;
|
|
3
3
|
export type FilterButtonsProps = FilterButtonsHTMLProps;
|
|
4
|
-
export declare function FilterButtons({ className, children, ...props }: FilterButtonsProps): JSX.Element;
|
|
4
|
+
export declare function FilterButtons({ className, children, ...props }: FilterButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -14,5 +14,5 @@ export type FormFieldProps = {
|
|
|
14
14
|
error?: ReactNode;
|
|
15
15
|
children: ReactNode | FormFieldRenderFn;
|
|
16
16
|
} & FormFieldBaseProps;
|
|
17
|
-
export declare function FormField({ required, labelFor, label, caption, error, className, children, ...props }: FormFieldProps): JSX.Element;
|
|
17
|
+
export declare function FormField({ required, labelFor, label, caption, error, className, children, ...props }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -6,8 +6,8 @@ export type MenuItemRole = 'menuitem' | 'menuitemradio';
|
|
|
6
6
|
export type MenuItemProps = {
|
|
7
7
|
role?: MenuItemRole;
|
|
8
8
|
appearance?: MenuItemAppearance;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
leftIcon?: ReactNode;
|
|
10
|
+
rightIcon?: ReactNode;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
} & MenuItemBaseProps;
|
|
13
13
|
export declare const MenuItem: import("react").ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,5 +2,5 @@ import { type ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
type MenuSeparatorHTMLProps = ComponentPropsWithoutRef<'li'>;
|
|
3
3
|
type MenuSeparatorBaseProps = Omit<MenuSeparatorHTMLProps, 'children'>;
|
|
4
4
|
export type MenuSeparatorProps = MenuSeparatorBaseProps;
|
|
5
|
-
export declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): JSX.Element;
|
|
5
|
+
export declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -28,5 +28,5 @@ export type MenuProps = {
|
|
|
28
28
|
buttonAppearance?: ButtonAppearance;
|
|
29
29
|
buttonVariant?: ButtonVariant;
|
|
30
30
|
} & MenuHTMLProps;
|
|
31
|
-
export declare function Menu({ defaultIsOpen, placement, alignment, buttonClassName, buttonAppearance, buttonVariant, button, className, children, onOpen, onClose, onKeyDown, ...props }: MenuProps): JSX.Element;
|
|
31
|
+
export declare function Menu({ defaultIsOpen, placement, alignment, buttonClassName, buttonAppearance, buttonVariant, button, className, children, onOpen, onClose, onKeyDown, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -9,5 +9,5 @@ export type NavListItemProps = {
|
|
|
9
9
|
badge?: string | number;
|
|
10
10
|
renderAs?: NavListItemRenderFn;
|
|
11
11
|
} & NavListItemHTMLProps;
|
|
12
|
-
export declare function NavListItem({ className, icon, badge, children, renderAs, ...props }: NavListItemProps): JSX.Element;
|
|
12
|
+
export declare function NavListItem({ className, icon, badge, children, renderAs, ...props }: NavListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -4,5 +4,5 @@ type NavListTitleBaseProps = Omit<NavListTitleHTMLProps, 'children'>;
|
|
|
4
4
|
export type NavListTitleProps = {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
} & NavListTitleBaseProps;
|
|
7
|
-
export declare function NavListTitle({ className, children, ...props }: NavListTitleProps): JSX.Element;
|
|
7
|
+
export declare function NavListTitle({ className, children, ...props }: NavListTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type NavListHTMLProps = ComponentPropsWithoutRef<'nav'>;
|
|
3
3
|
export type NavListProps = NavListHTMLProps;
|
|
4
|
-
export declare function NavList({ className, children, ...props }: NavListProps): JSX.Element;
|
|
4
|
+
export declare function NavList({ className, children, ...props }: NavListProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function EyeIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
3
|
-
export declare function EyeSlashIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function EyeIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function EyeSlashIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export type PositionerProps = {
|
|
|
17
17
|
renderAnchor: PositionerAnchorRenderFn;
|
|
18
18
|
renderContent: PositionerContentRenderFn;
|
|
19
19
|
};
|
|
20
|
-
export declare function Positioner({ anchorGap, viewportGap, position, placement, alignment, renderAnchor, renderContent, }: PositionerProps): JSX.Element;
|
|
20
|
+
export declare function Positioner({ anchorGap, viewportGap, position, placement, alignment, renderAnchor, renderContent, }: PositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export type SegmentedControlButtonProps<T extends string | number> = {
|
|
|
7
7
|
value: T;
|
|
8
8
|
onChangeValue: (value: T) => void;
|
|
9
9
|
};
|
|
10
|
-
export declare function SegmentedControlButton<T extends string | number>({ className, checked, icon, children, value, onChangeValue, }: SegmentedControlButtonProps<T>): JSX.Element;
|
|
10
|
+
export declare function SegmentedControlButton<T extends string | number>({ className, checked, icon, children, value, onChangeValue, }: SegmentedControlButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export type SegmentedControlProps<T extends string | number> = {
|
|
|
12
12
|
value: T;
|
|
13
13
|
onChangeValue: (value: T) => void;
|
|
14
14
|
} & ComponentPropsWithRef<'ul'>;
|
|
15
|
-
export declare function SegmentedControl<T extends string | number>({ size, disabled, className, value, options, onChangeValue, ...props }: SegmentedControlProps<T>): JSX.Element;
|
|
15
|
+
export declare function SegmentedControl<T extends string | number>({ size, disabled, className, value, options, onChangeValue, ...props }: SegmentedControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { type ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
export type SelectSize = 'sm' | 'md' | 'lg';
|
|
3
3
|
type SelectHTMLProps = ComponentPropsWithRef<'select'>;
|
|
4
4
|
type SelectBaseProps = Omit<SelectHTMLProps, 'size' | 'multiple' | 'value' | 'defaultValue'> & {
|
|
5
|
+
loading?: boolean;
|
|
5
6
|
hasError?: boolean;
|
|
6
7
|
isBlock?: boolean;
|
|
7
8
|
size?: SelectSize;
|
|
@@ -21,6 +22,7 @@ export type SelectProps = SelectBaseProps & ({
|
|
|
21
22
|
export declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & {
|
|
22
23
|
ref?: ((instance: HTMLSelectElement | null) => void) | import("react").RefObject<HTMLSelectElement> | null | undefined;
|
|
23
24
|
}, "defaultValue" | "size" | "value" | "multiple"> & {
|
|
25
|
+
loading?: boolean | undefined;
|
|
24
26
|
hasError?: boolean | undefined;
|
|
25
27
|
isBlock?: boolean | undefined;
|
|
26
28
|
size?: SelectSize | undefined;
|
|
@@ -33,6 +35,7 @@ export declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omi
|
|
|
33
35
|
}, "ref"> | Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & {
|
|
34
36
|
ref?: ((instance: HTMLSelectElement | null) => void) | import("react").RefObject<HTMLSelectElement> | null | undefined;
|
|
35
37
|
}, "defaultValue" | "size" | "value" | "multiple"> & {
|
|
38
|
+
loading?: boolean | undefined;
|
|
36
39
|
hasError?: boolean | undefined;
|
|
37
40
|
isBlock?: boolean | undefined;
|
|
38
41
|
size?: SelectSize | undefined;
|
|
@@ -10,5 +10,5 @@ export type SelectionControlProps = {
|
|
|
10
10
|
label: ReactNode;
|
|
11
11
|
children: JSX.Element | SelectionControlRenderFn;
|
|
12
12
|
} & SelectionControlBaseProps;
|
|
13
|
-
export declare function SelectionControl({ label, labelFor, caption, className, children, ...props }: SelectionControlProps): JSX.Element;
|
|
13
|
+
export declare function SelectionControl({ label, labelFor, caption, className, children, ...props }: SelectionControlProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -4,4 +4,4 @@ export type SliderTickMarksProps = {
|
|
|
4
4
|
tickMarksCount: number;
|
|
5
5
|
renderTickMarkLabel?: RenderTickMarkLabel;
|
|
6
6
|
};
|
|
7
|
-
export declare function SliderTickMarks({ tickMarksCount, renderTickMarkLabel, }: SliderTickMarksProps): JSX.Element | null;
|
|
7
|
+
export declare function SliderTickMarks({ tickMarksCount, renderTickMarkLabel, }: SliderTickMarksProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function ArrowsUpDown(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
3
|
-
export declare function ArrowSmallDown(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
4
|
-
export declare function ArrowSmallUp(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function ArrowsUpDown(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function ArrowSmallDown(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function ArrowSmallUp(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export type TabListProps = ComponentPropsWithoutRef<'div'>;
|
|
3
|
-
export declare function TabList({ className, children, onFocus, onBlur, onKeyDown, ...props }: TabListProps): JSX.Element;
|
|
3
|
+
export declare function TabList({ className, children, onFocus, onBlur, onKeyDown, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { type TabName } from './types';
|
|
|
3
3
|
export type TabPanelProps = {
|
|
4
4
|
tab: TabName;
|
|
5
5
|
} & ComponentPropsWithoutRef<'div'>;
|
|
6
|
-
export declare function TabPanel({ tab, id, className, children, 'aria-labelledby': ariaLabelledBy, ...props }: TabPanelProps): JSX.Element | null;
|
|
6
|
+
export declare function TabPanel({ tab, id, className, children, 'aria-labelledby': ariaLabelledBy, ...props }: TabPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -4,4 +4,4 @@ export type TabProps = {
|
|
|
4
4
|
counter?: number;
|
|
5
5
|
name: string;
|
|
6
6
|
} & ComponentPropsWithoutRef<'button'>;
|
|
7
|
-
export declare function Tab({ id, name, icon, counter, className, children, onClick, 'aria-controls': ariaControls, ...props }: TabProps): JSX.Element;
|
|
7
|
+
export declare function Tab({ id, name, icon, counter, className, children, onClick, 'aria-controls': ariaControls, ...props }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,5 +16,5 @@ export type TabsStateProviderProps = {
|
|
|
16
16
|
selectedTab: TabName;
|
|
17
17
|
setSelectedTab: TabSetter;
|
|
18
18
|
};
|
|
19
|
-
export declare function TabsContextProvider({ children, selectedTab, setSelectedTab, }: TabsStateProviderProps): JSX.Element;
|
|
19
|
+
export declare function TabsContextProvider({ children, selectedTab, setSelectedTab, }: TabsStateProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare function useTabsContext(): TabsContextValue;
|
|
@@ -4,4 +4,4 @@ export interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
4
4
|
selectedTab: TabName;
|
|
5
5
|
onSelectTab: TabSetter;
|
|
6
6
|
}
|
|
7
|
-
export declare function Tabs({ className, children, selectedTab, onSelectTab, ...props }: TabsProps): JSX.Element;
|
|
7
|
+
export declare function Tabs({ className, children, selectedTab, onSelectTab, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,5 @@ export type ToastProps = {
|
|
|
7
7
|
closeButtonAriaLabel?: string;
|
|
8
8
|
onClickCloseButton?: MouseEventHandler<HTMLButtonElement>;
|
|
9
9
|
} & ToastBaseProps;
|
|
10
|
-
export declare function Toast({ icon, message, actions, closeButtonAriaLabel, onClickCloseButton, children, className, ...props }: ToastProps): JSX.Element;
|
|
10
|
+
export declare function Toast({ icon, message, actions, closeButtonAriaLabel, onClickCloseButton, children, className, ...props }: ToastProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function XMarkIcon(props: ComponentPropsWithoutRef<'svg'>): JSX.Element;
|
|
2
|
+
export declare function XMarkIcon(props: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|