@tecsinapse/cortex-react 1.9.19 → 1.9.20-beta.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/dist/cjs/components/Badge.js +6 -1
- package/dist/cjs/hooks/useOutsideClickListener.js +1 -1
- package/dist/esm/components/Badge.js +6 -1
- package/dist/esm/hooks/useOutsideClickListener.js +1 -1
- package/dist/types/components/Accordion/Content.d.ts +2 -2
- package/dist/types/components/Accordion/Face.d.ts +2 -2
- package/dist/types/components/Accordion/Root.d.ts +2 -2
- package/dist/types/components/Accordion/Trigger.d.ts +3 -3
- package/dist/types/components/Accordion/context.d.ts +2 -3
- package/dist/types/components/Accordion/index.d.ts +6 -7
- package/dist/types/components/Accordion/types.d.ts +0 -1
- package/dist/types/components/Avatar.d.ts +2 -2
- package/dist/types/components/Breadcrumbs/BreadcrumbItem.d.ts +2 -2
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarCell.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarGrid.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarGridBodyRows.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarGridHeaderRow.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarHeader.d.ts +2 -2
- package/dist/types/components/Calendar/RangeCalendar.d.ts +2 -2
- package/dist/types/components/Carousel/Carousel.d.ts +2 -2
- package/dist/types/components/Carousel/CarouselItem.d.ts +2 -2
- package/dist/types/components/DatePicker/Content.d.ts +2 -2
- package/dist/types/components/DatePicker/DateField.d.ts +2 -2
- package/dist/types/components/DatePicker/DatePickerInput.d.ts +2 -2
- package/dist/types/components/DatePicker/DatePickerInputBase.d.ts +1 -1
- package/dist/types/components/DatePicker/DateRangePickerInput.d.ts +2 -2
- package/dist/types/components/DatePicker/DateSegment.d.ts +2 -2
- package/dist/types/components/Divider.d.ts +2 -2
- package/dist/types/components/Drawer.d.ts +1 -1
- package/dist/types/components/GroupButton.d.ts +2 -2
- package/dist/types/components/Input/index.d.ts +0 -1
- package/dist/types/components/Input/types.d.ts +0 -1
- package/dist/types/components/Kanban.d.ts +4 -4
- package/dist/types/components/Loading.d.ts +2 -2
- package/dist/types/components/Menubar/Categories.d.ts +2 -2
- package/dist/types/components/Menubar/Category.d.ts +2 -2
- package/dist/types/components/Menubar/Dropdown.d.ts +2 -2
- package/dist/types/components/Menubar/DropdownRoot.d.ts +2 -2
- package/dist/types/components/Menubar/Header.d.ts +2 -2
- package/dist/types/components/Menubar/IconControlSubItem.d.ts +2 -2
- package/dist/types/components/Menubar/Item.d.ts +2 -2
- package/dist/types/components/Menubar/ItemLink.d.ts +2 -2
- package/dist/types/components/Menubar/Left.d.ts +2 -2
- package/dist/types/components/Menubar/MostUsed.d.ts +2 -2
- package/dist/types/components/Menubar/MostUsedItem.d.ts +2 -2
- package/dist/types/components/Menubar/MostUsedList.d.ts +2 -2
- package/dist/types/components/Menubar/Right.d.ts +2 -2
- package/dist/types/components/Menubar/Root.d.ts +2 -2
- package/dist/types/components/Menubar/Search.d.ts +2 -2
- package/dist/types/components/Menubar/SubItem.d.ts +2 -2
- package/dist/types/components/Menubar/index.d.ts +13 -14
- package/dist/types/components/Popover/Content.d.ts +1 -1
- package/dist/types/components/Popover/Provider.d.ts +2 -2
- package/dist/types/components/Popover/Root.d.ts +1 -1
- package/dist/types/components/Popover/index.d.ts +3 -4
- package/dist/types/components/ProgressBar/Progress.d.ts +2 -2
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/types/components/Select/Content.d.ts +2 -2
- package/dist/types/components/Select/GroupedOptions.d.ts +2 -2
- package/dist/types/components/Select/MultiCheckAllOptions.d.ts +2 -2
- package/dist/types/components/Select/MultiGroupedOptions.d.ts +2 -2
- package/dist/types/components/Select/MultiOption.d.ts +2 -2
- package/dist/types/components/Select/MultiOptions.d.ts +2 -2
- package/dist/types/components/Select/Option.d.ts +2 -2
- package/dist/types/components/Select/Options.d.ts +2 -2
- package/dist/types/components/Select/Popover.d.ts +2 -2
- package/dist/types/components/Select/Root.d.ts +2 -2
- package/dist/types/components/Select/SkeletonOptions.d.ts +2 -2
- package/dist/types/components/Select/Trigger.d.ts +2 -2
- package/dist/types/components/Select/context.d.ts +0 -1
- package/dist/types/components/Select/index.d.ts +10 -11
- package/dist/types/components/Skeleton.d.ts +1 -1
- package/dist/types/components/Snackbar/DefaultSnack.d.ts +2 -2
- package/dist/types/components/Stepper/Node.d.ts +1 -1
- package/dist/types/components/Stepper/Root.d.ts +1 -1
- package/dist/types/components/Stepper/index.d.ts +2 -3
- package/dist/types/components/Table.d.ts +8 -8
- package/dist/types/components/Tag.d.ts +2 -2
- package/dist/types/components/TextArea/index.d.ts +0 -1
- package/dist/types/components/TextArea/types.d.ts +0 -1
- package/dist/types/components/TextArea/utils.d.ts +1 -1
- package/dist/types/components/TimeField/TimeField.d.ts +2 -2
- package/dist/types/components/TimeField/TimeFieldInput.d.ts +2 -2
- package/dist/types/components/Uploader/Dropzone.d.ts +2 -2
- package/dist/types/components/Uploader/Files.d.ts +2 -2
- package/dist/types/components/Uploader/Root.d.ts +2 -2
- package/dist/types/components/Uploader/Upload.d.ts +2 -2
- package/dist/types/components/Uploader/index.d.ts +3 -4
- package/dist/types/components/Uploader/types.d.ts +0 -1
- package/dist/types/hooks/useCalendarCell.d.ts +0 -1
- package/dist/types/hooks/useDatePickerInput.d.ts +0 -1
- package/dist/types/hooks/useDateRangePickerInput.d.ts +0 -1
- package/dist/types/hooks/useFloatingElement.d.ts +6 -6
- package/dist/types/hooks/useRangeCalendar.d.ts +0 -1
- package/dist/types/provider/MenubarContext.d.ts +0 -1
- package/dist/types/provider/MenubarProvider.d.ts +2 -2
- package/dist/types/provider/SnackbarProvider.d.ts +2 -2
- package/dist/types/provider/useMenubar.d.ts +1 -4
- package/package.json +3 -3
|
@@ -37,9 +37,14 @@ const Badge = React.forwardRef((props, ref) => {
|
|
|
37
37
|
value
|
|
38
38
|
);
|
|
39
39
|
});
|
|
40
|
+
function getDisplayValue(value) {
|
|
41
|
+
const number = Number(value);
|
|
42
|
+
if (isNaN(number)) return value;
|
|
43
|
+
return number > 99 ? "99+" : number;
|
|
44
|
+
}
|
|
40
45
|
const BadgeAnchor = React.forwardRef((props, ref) => {
|
|
41
46
|
const { value, variants, children, ...rest } = props;
|
|
42
|
-
return /* @__PURE__ */ React__namespace.createElement("div", { className: cortexCore.containerBadge() }, children, /* @__PURE__ */ React__namespace.createElement("div", { ref, className: cortexCore.badge(variants), ...rest }, value));
|
|
47
|
+
return /* @__PURE__ */ React__namespace.createElement("div", { className: cortexCore.containerBadge() }, children, /* @__PURE__ */ React__namespace.createElement("div", { ref, className: cortexCore.badge(variants), ...rest }, getDisplayValue(value)));
|
|
43
48
|
});
|
|
44
49
|
|
|
45
50
|
exports.Badge = Badge;
|
|
@@ -7,7 +7,7 @@ const useOutsideClickListener = ({
|
|
|
7
7
|
onClickOutside
|
|
8
8
|
}) => {
|
|
9
9
|
const handleClickOutside = React.useCallback((event) => {
|
|
10
|
-
if (ref.current && !ref.current.contains(event.
|
|
10
|
+
if (ref.current && !ref.current.contains(event.composedPath()[0])) {
|
|
11
11
|
onClickOutside?.();
|
|
12
12
|
}
|
|
13
13
|
}, []);
|
|
@@ -17,9 +17,14 @@ const Badge = forwardRef((props, ref) => {
|
|
|
17
17
|
value
|
|
18
18
|
);
|
|
19
19
|
});
|
|
20
|
+
function getDisplayValue(value) {
|
|
21
|
+
const number = Number(value);
|
|
22
|
+
if (isNaN(number)) return value;
|
|
23
|
+
return number > 99 ? "99+" : number;
|
|
24
|
+
}
|
|
20
25
|
const BadgeAnchor = forwardRef((props, ref) => {
|
|
21
26
|
const { value, variants, children, ...rest } = props;
|
|
22
|
-
return /* @__PURE__ */ React.createElement("div", { className: containerBadge() }, children, /* @__PURE__ */ React.createElement("div", { ref, className: badge(variants), ...rest }, value));
|
|
27
|
+
return /* @__PURE__ */ React.createElement("div", { className: containerBadge() }, children, /* @__PURE__ */ React.createElement("div", { ref, className: badge(variants), ...rest }, getDisplayValue(value)));
|
|
23
28
|
});
|
|
24
29
|
|
|
25
30
|
export { Badge, BadgeAnchor };
|
|
@@ -5,7 +5,7 @@ const useOutsideClickListener = ({
|
|
|
5
5
|
onClickOutside
|
|
6
6
|
}) => {
|
|
7
7
|
const handleClickOutside = useCallback((event) => {
|
|
8
|
-
if (ref.current && !ref.current.contains(event.
|
|
8
|
+
if (ref.current && !ref.current.contains(event.composedPath()[0])) {
|
|
9
9
|
onClickOutside?.();
|
|
10
10
|
}
|
|
11
11
|
}, []);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AccordionProps } from './types';
|
|
3
|
-
export declare const AccordionContent: ({ children, direction, }: Pick<AccordionProps,
|
|
3
|
+
export declare const AccordionContent: ({ children, direction, }: Pick<AccordionProps, "children" | "direction">) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AccordionProps } from './types';
|
|
3
|
-
export declare const AccordionFace: ({ children, defaultOpen, direction, }: Pick<AccordionProps,
|
|
3
|
+
export declare const AccordionFace: ({ children, defaultOpen, direction, }: Pick<AccordionProps, "children" | "defaultOpen" | "direction">) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AccordionProps } from './types';
|
|
3
|
-
export declare const AccordionRoot: ({ children, defaultOpen, label, floating, onOpen, invertedArrow, onClose, direction, }: AccordionProps) => JSX.Element;
|
|
3
|
+
export declare const AccordionRoot: ({ children, defaultOpen, label, floating, onOpen, invertedArrow, onClose, direction, }: AccordionProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AccordionProps } from './types';
|
|
3
|
-
export declare const AccordionTrigger: ({ label, floating, className, onOpen, onClose, invertedArrow, direction, }: Pick<AccordionProps,
|
|
3
|
+
export declare const AccordionTrigger: ({ label, floating, className, onOpen, onClose, invertedArrow, direction, }: Pick<AccordionProps, "floating" | "label" | "onOpen" | "onClose" | "invertedArrow" | "direction"> & {
|
|
4
4
|
className?: string;
|
|
5
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Context: import("react").Context<{
|
|
3
2
|
open: boolean;
|
|
4
|
-
toggle?: (
|
|
3
|
+
toggle?: () => void;
|
|
5
4
|
}>;
|
|
6
5
|
export declare const useAccordionContext: () => {
|
|
7
6
|
open: boolean;
|
|
8
|
-
toggle?: (
|
|
7
|
+
toggle?: () => void;
|
|
9
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Accordion: {
|
|
3
|
-
Root: ({ children, defaultOpen, label, floating, onOpen, invertedArrow, onClose, direction, }: import("./types").AccordionProps) => JSX.Element;
|
|
4
|
-
Face: ({ children, defaultOpen, direction, }: Pick<import("./types").AccordionProps, "children" | "
|
|
5
|
-
Content: ({ children, direction, }: Pick<import("./types").AccordionProps, "children" | "direction">) => JSX.Element;
|
|
6
|
-
Trigger: ({ label, floating, className, onOpen, onClose, invertedArrow, direction, }: Pick<import("./types").AccordionProps, "
|
|
7
|
-
className?: string
|
|
8
|
-
}) => JSX.Element;
|
|
2
|
+
Root: ({ children, defaultOpen, label, floating, onOpen, invertedArrow, onClose, direction, }: import("./types").AccordionProps) => import("react").JSX.Element;
|
|
3
|
+
Face: ({ children, defaultOpen, direction, }: Pick<import("./types").AccordionProps, "children" | "defaultOpen" | "direction">) => import("react").JSX.Element;
|
|
4
|
+
Content: ({ children, direction, }: Pick<import("./types").AccordionProps, "children" | "direction">) => import("react").JSX.Element;
|
|
5
|
+
Trigger: ({ label, floating, className, onOpen, onClose, invertedArrow, direction, }: Pick<import("./types").AccordionProps, "floating" | "label" | "onOpen" | "onClose" | "invertedArrow" | "direction"> & {
|
|
6
|
+
className?: string;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
9
8
|
};
|
|
10
9
|
export * from './context';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
src?: string;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const Avatar: ({ src, name, className, ...rest }: AvatarProps) => JSX.Element;
|
|
6
|
+
export declare const Avatar: ({ src, name, className, ...rest }: AvatarProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
2
|
export interface BreadcrumbType {
|
|
3
3
|
title: string;
|
|
4
4
|
Component: ElementType;
|
|
@@ -7,4 +7,4 @@ export interface BreadcrumbType {
|
|
|
7
7
|
export interface BreadcrumbItemProps extends BreadcrumbType {
|
|
8
8
|
isLast: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const BreadcrumbItem: ({ isLast, Component, componentProps, title, }: BreadcrumbItemProps) => JSX.Element;
|
|
10
|
+
export declare const BreadcrumbItem: ({ isLast, Component, componentProps, title, }: BreadcrumbItemProps) => React.JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { BreadcrumbType } from './BreadcrumbItem';
|
|
|
3
3
|
export interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
breadcrumbs: BreadcrumbType[];
|
|
5
5
|
}
|
|
6
|
-
export declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element;
|
|
6
|
+
export declare const Breadcrumbs: (props: BreadcrumbsProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface CalendarProps {
|
|
3
3
|
value?: Date;
|
|
4
4
|
onChange: (value?: Date) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const Calendar: ({ value, onChange }: CalendarProps) => JSX.Element;
|
|
6
|
+
export declare const Calendar: ({ value, onChange }: CalendarProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { CalendarState, RangeCalendarState } from 'react-stately';
|
|
4
4
|
interface CalendarCellProps {
|
|
5
5
|
state: CalendarState | RangeCalendarState;
|
|
6
6
|
date: CalendarDate;
|
|
7
7
|
}
|
|
8
|
-
export declare const CalendarCell: ({ state, date }: CalendarCellProps) => JSX.Element;
|
|
8
|
+
export declare const CalendarCell: ({ state, date }: CalendarCellProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CalendarState, RangeCalendarState } from 'react-stately';
|
|
3
3
|
interface CalendarGridProps {
|
|
4
4
|
state: CalendarState | RangeCalendarState;
|
|
5
5
|
}
|
|
6
|
-
export declare const CalendarGrid: ({ state }: CalendarGridProps) => JSX.Element;
|
|
6
|
+
export declare const CalendarGrid: ({ state }: CalendarGridProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CalendarState, RangeCalendarState } from 'react-stately';
|
|
3
3
|
interface CalendarGridBodyRowsProps {
|
|
4
4
|
state: CalendarState | RangeCalendarState;
|
|
5
5
|
}
|
|
6
|
-
export declare const CalendarGridBodyRows: ({ state }: CalendarGridBodyRowsProps) => JSX.Element;
|
|
6
|
+
export declare const CalendarGridBodyRows: ({ state }: CalendarGridBodyRowsProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface CalendarGridHeaderRowProps {
|
|
3
3
|
weekDays: string[];
|
|
4
4
|
}
|
|
5
|
-
export declare const CalendarGridHeaderRow: ({ weekDays, }: CalendarGridHeaderRowProps) => JSX.Element;
|
|
5
|
+
export declare const CalendarGridHeaderRow: ({ weekDays, }: CalendarGridHeaderRowProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface CalendarHeaderProps {
|
|
3
3
|
onClickPrevButton: () => void;
|
|
4
4
|
onClickNextButton: () => void;
|
|
5
5
|
title: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const CalendarHeader: ({ onClickPrevButton, onClickNextButton, title, }: CalendarHeaderProps) => JSX.Element;
|
|
7
|
+
export declare const CalendarHeader: ({ onClickPrevButton, onClickNextButton, title, }: CalendarHeaderProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type DateRange = {
|
|
3
3
|
start?: Date;
|
|
4
4
|
end?: Date;
|
|
@@ -7,4 +7,4 @@ export interface RangeCalendarProps {
|
|
|
7
7
|
value?: DateRange;
|
|
8
8
|
onChange: (value: DateRange) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const RangeCalendar: ({ value, onChange }: RangeCalendarProps) => JSX.Element;
|
|
10
|
+
export declare const RangeCalendar: ({ value, onChange }: RangeCalendarProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type TextCarousel = {
|
|
3
3
|
text: string;
|
|
4
4
|
color: string;
|
|
@@ -19,5 +19,5 @@ export type ImageCarousel = {
|
|
|
19
19
|
export interface CarouselProps {
|
|
20
20
|
images: ImageCarousel[];
|
|
21
21
|
}
|
|
22
|
-
export declare const Carousel: ({ images }: CarouselProps) => JSX.Element;
|
|
22
|
+
export declare const Carousel: ({ images }: CarouselProps) => React.JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ImageCarousel } from './Carousel';
|
|
3
3
|
export interface CarouselItemProps {
|
|
4
4
|
item: ImageCarousel;
|
|
5
5
|
}
|
|
6
|
-
export declare const CarouselItem: ({ item }: CarouselItemProps) => JSX.Element;
|
|
6
|
+
export declare const CarouselItem: ({ item }: CarouselItemProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface ContentProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const Content: ({ children }: ContentProps) => JSX.Element;
|
|
5
|
+
export declare const Content: ({ children }: ContentProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AriaDateFieldProps, DateValue } from 'react-aria';
|
|
3
3
|
interface DateFieldProps extends AriaDateFieldProps<DateValue> {
|
|
4
4
|
onClickDate?: () => void;
|
|
5
5
|
onClickTime?: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const DateField: ({ onClickDate, onClickTime, ...props }: DateFieldProps) => JSX.Element;
|
|
7
|
+
export declare const DateField: ({ onClickDate, onClickTime, ...props }: DateFieldProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Granularity } from '@react-types/datepicker';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { InputProps } from '../Input';
|
|
4
4
|
export interface DatePickerInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
5
|
value?: Date;
|
|
@@ -7,4 +7,4 @@ export interface DatePickerInputProps extends Omit<InputProps, 'value' | 'onChan
|
|
|
7
7
|
hourCycle?: 12 | 24;
|
|
8
8
|
granularity?: Granularity;
|
|
9
9
|
}
|
|
10
|
-
export declare const DatePickerInput: (props: DatePickerInputProps) => JSX.Element;
|
|
10
|
+
export declare const DatePickerInput: (props: DatePickerInputProps) => React.JSX.Element;
|
|
@@ -8,5 +8,5 @@ interface DatePickerInputBaseProps extends Omit<InputProps, 'value' | 'onChange'
|
|
|
8
8
|
onToggle?: () => void;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const DatePickerInputBase: ({ children, variants, label, disabled, value, onClean, onToggle, }: DatePickerInputBaseProps) => JSX.Element;
|
|
11
|
+
export declare const DatePickerInputBase: ({ children, variants, label, disabled, value, onClean, onToggle, }: DatePickerInputBaseProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Granularity } from '@react-types/datepicker';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { DateRange } from '../Calendar/RangeCalendar';
|
|
4
4
|
import { InputProps } from '../Input';
|
|
5
5
|
export interface DateRangePickerInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
@@ -8,4 +8,4 @@ export interface DateRangePickerInputProps extends Omit<InputProps, 'value' | 'o
|
|
|
8
8
|
hourCycle?: 12 | 24;
|
|
9
9
|
granularity?: Granularity;
|
|
10
10
|
}
|
|
11
|
-
export declare const DateRangePickerInput: (props: DateRangePickerInputProps) => JSX.Element;
|
|
11
|
+
export declare const DateRangePickerInput: (props: DateRangePickerInputProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DateFieldState, DateSegment as DateSegmentType } from 'react-stately';
|
|
3
3
|
interface DateSegmentProps {
|
|
4
4
|
segment: DateSegmentType;
|
|
5
5
|
state: DateFieldState;
|
|
6
6
|
}
|
|
7
|
-
export declare const DateSegment: ({ segment, state }: DateSegmentProps) => JSX.Element;
|
|
7
|
+
export declare const DateSegment: ({ segment, state }: DateSegmentProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
interface DividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
3
3
|
}
|
|
4
|
-
export declare const Divider: ({ className, ...rest }: DividerProps) => JSX.Element;
|
|
4
|
+
export declare const Divider: ({ className, ...rest }: DividerProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -6,4 +6,4 @@ export interface DrawerProps {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const Drawer: ({ children, onClose, open, position, className, }: DrawerProps) => JSX.Element;
|
|
9
|
+
export declare const Drawer: ({ children, onClose, open, position, className, }: DrawerProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface GroupButtonValue<T> {
|
|
3
3
|
value: T;
|
|
4
4
|
}
|
|
@@ -17,4 +17,4 @@ export interface GroupButtonProps<T> {
|
|
|
17
17
|
disableAllOptions?: boolean;
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare const GroupButton: <T>(props: GroupButtonProps<T>) => JSX.Element;
|
|
20
|
+
export declare const GroupButton: <T>(props: GroupButtonProps<T>) => React.JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Input: {
|
|
3
2
|
Root: import("react").ForwardRefExoticComponent<import("./types").InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
3
|
Face: import("react").ForwardRefExoticComponent<import("./types").InputFaceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -3,8 +3,8 @@ export interface KanbanProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
export declare const Kanban: {
|
|
6
|
-
Root: ({ children, className, ...rest }: KanbanProps) => JSX.Element;
|
|
7
|
-
Header: ({ children, className, ...rest }: KanbanProps) => JSX.Element;
|
|
8
|
-
Body: ({ children, className, ...rest }: KanbanProps) => JSX.Element;
|
|
9
|
-
ContainerList: ({ children, className, ...rest }: KanbanProps) => JSX.Element;
|
|
6
|
+
Root: ({ children, className, ...rest }: KanbanProps) => React.JSX.Element;
|
|
7
|
+
Header: ({ children, className, ...rest }: KanbanProps) => React.JSX.Element;
|
|
8
|
+
Body: ({ children, className, ...rest }: KanbanProps) => React.JSX.Element;
|
|
9
|
+
ContainerList: ({ children, className, ...rest }: KanbanProps) => React.JSX.Element;
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface LoadingProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const Loading: ({ className }: LoadingProps) => JSX.Element;
|
|
5
|
+
export declare const Loading: ({ className }: LoadingProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DefaultProps } from './types';
|
|
3
|
-
declare const Categories: ({ children }: DefaultProps) => JSX.Element;
|
|
3
|
+
declare const Categories: ({ children }: DefaultProps) => React.JSX.Element;
|
|
4
4
|
export default Categories;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CategoryType } from './types';
|
|
3
|
-
declare const Category: <T>({ title, options, render }: CategoryType<T>) => JSX.Element;
|
|
3
|
+
declare const Category: <T>({ title, options, render }: CategoryType<T>) => React.JSX.Element;
|
|
4
4
|
export default Category;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DefaultProps } from './types';
|
|
3
|
-
declare const Dropdown: ({ children, ...rest }: DefaultProps) => JSX.Element;
|
|
3
|
+
declare const Dropdown: ({ children, ...rest }: DefaultProps) => React.JSX.Element;
|
|
4
4
|
export default Dropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DropdownRootProps } from './types';
|
|
3
|
-
declare const DropdownRoot: ({ mostUsed, options, labelMostUsed, }: DropdownRootProps) => JSX.Element;
|
|
3
|
+
declare const DropdownRoot: ({ mostUsed, options, labelMostUsed, }: DropdownRootProps) => React.JSX.Element;
|
|
4
4
|
export default DropdownRoot;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { HeaderProps } from './types';
|
|
3
|
-
declare const Header: ({ children, className, ...rest }: HeaderProps) => JSX.Element;
|
|
3
|
+
declare const Header: ({ children, className, ...rest }: HeaderProps) => React.JSX.Element;
|
|
4
4
|
export default Header;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IconControlSubItemProps } from './types';
|
|
3
|
-
declare const IconControlSubItem: ({ show, setShow }: IconControlSubItemProps) => JSX.Element;
|
|
3
|
+
declare const IconControlSubItem: ({ show, setShow }: IconControlSubItemProps) => React.JSX.Element;
|
|
4
4
|
export default IconControlSubItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ItemProps } from './types';
|
|
3
|
-
declare const Item: <T>({ children, subItems, renderSubItems, className, anchorProps, ...rest }: ItemProps<T>) => JSX.Element;
|
|
3
|
+
declare const Item: <T>({ children, subItems, renderSubItems, className, anchorProps, ...rest }: ItemProps<T>) => React.JSX.Element;
|
|
4
4
|
export default Item;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ItemLinkProps } from './types';
|
|
3
|
-
declare const ItemLink: ({ anchorProps, children }: ItemLinkProps) => JSX.Element;
|
|
3
|
+
declare const ItemLink: ({ anchorProps, children }: ItemLinkProps) => React.JSX.Element;
|
|
4
4
|
export default ItemLink;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DefaultProps } from './types';
|
|
3
|
-
declare const Left: ({ children, ...rest }: DefaultProps) => JSX.Element;
|
|
3
|
+
declare const Left: ({ children, ...rest }: DefaultProps) => React.JSX.Element;
|
|
4
4
|
export default Left;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MostUsedProps } from './types';
|
|
3
|
-
declare const MostUsed: ({ label, children, ...rest }: MostUsedProps) => JSX.Element;
|
|
3
|
+
declare const MostUsed: ({ label, children, ...rest }: MostUsedProps) => React.JSX.Element;
|
|
4
4
|
export default MostUsed;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MostUsedItemProps } from './types';
|
|
3
|
-
declare const MostUsedItem: ({ title, category, anchorProps, ...rest }: MostUsedItemProps) => JSX.Element;
|
|
3
|
+
declare const MostUsedItem: ({ title, category, anchorProps, ...rest }: MostUsedItemProps) => React.JSX.Element;
|
|
4
4
|
export default MostUsedItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DropdownRootProps } from './types';
|
|
3
|
-
declare const MostUsedList: ({ mostUsed }: Pick<DropdownRootProps,
|
|
3
|
+
declare const MostUsedList: ({ mostUsed }: Pick<DropdownRootProps, "mostUsed">) => React.JSX.Element;
|
|
4
4
|
export default MostUsedList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DefaultProps } from './types';
|
|
3
|
-
declare const Right: ({ children, ...rest }: DefaultProps) => JSX.Element;
|
|
3
|
+
declare const Right: ({ children, ...rest }: DefaultProps) => React.JSX.Element;
|
|
4
4
|
export default Right;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { InputSearchProps } from '../Input';
|
|
3
|
-
declare const Search: (props: InputSearchProps) => JSX.Element;
|
|
3
|
+
declare const Search: (props: InputSearchProps) => React.JSX.Element;
|
|
4
4
|
export default Search;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SubItemProps } from './types';
|
|
3
|
-
declare const SubItem: ({ children, anchorProps, className, ...rest }: SubItemProps) => JSX.Element;
|
|
3
|
+
declare const SubItem: ({ children, anchorProps, className, ...rest }: SubItemProps) => React.JSX.Element;
|
|
4
4
|
export default SubItem;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Menubar: {
|
|
3
|
-
Root: ({ children }: import("./types").RootProps) => JSX.Element;
|
|
4
|
-
Header: ({ children, className, ...rest }: import("./types").HeaderProps) => JSX.Element;
|
|
5
|
-
HeaderLeft: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
6
|
-
Search: (props: import("..").InputSearchProps) => JSX.Element;
|
|
7
|
-
HeaderRight: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
8
|
-
Dropdown: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
9
|
-
MostUsed: ({ label, children, ...rest }: import("./types").MostUsedProps) => JSX.Element;
|
|
10
|
-
MostUsedItem: ({ title, category, anchorProps, ...rest }: import("./types").MostUsedItemProps) => JSX.Element;
|
|
11
|
-
Category: <T>({ title, options, render }: import("./types").CategoryType<T>) => JSX.Element;
|
|
12
|
-
Categories: ({ children }: import("./types").DefaultProps) => JSX.Element;
|
|
13
|
-
Item: <
|
|
14
|
-
SubItem: ({ children, anchorProps, className, ...rest }: import("./types").SubItemProps) => JSX.Element;
|
|
15
|
-
DropdownRoot: ({ mostUsed, options, labelMostUsed, }: import("./types").DropdownRootProps) => JSX.Element;
|
|
2
|
+
Root: ({ children }: import("./types").RootProps) => import("react").JSX.Element;
|
|
3
|
+
Header: ({ children, className, ...rest }: import("./types").HeaderProps) => import("react").JSX.Element;
|
|
4
|
+
HeaderLeft: ({ children, ...rest }: import("./types").DefaultProps) => import("react").JSX.Element;
|
|
5
|
+
Search: (props: import("..").InputSearchProps) => import("react").JSX.Element;
|
|
6
|
+
HeaderRight: ({ children, ...rest }: import("./types").DefaultProps) => import("react").JSX.Element;
|
|
7
|
+
Dropdown: ({ children, ...rest }: import("./types").DefaultProps) => import("react").JSX.Element;
|
|
8
|
+
MostUsed: ({ label, children, ...rest }: import("./types").MostUsedProps) => import("react").JSX.Element;
|
|
9
|
+
MostUsedItem: ({ title, category, anchorProps, ...rest }: import("./types").MostUsedItemProps) => import("react").JSX.Element;
|
|
10
|
+
Category: <T>({ title, options, render }: import("./types").CategoryType<T>) => import("react").JSX.Element;
|
|
11
|
+
Categories: ({ children }: import("./types").DefaultProps) => import("react").JSX.Element;
|
|
12
|
+
Item: <T>({ children, subItems, renderSubItems, className, anchorProps, ...rest }: import("./types").ItemProps<T>) => import("react").JSX.Element;
|
|
13
|
+
SubItem: ({ children, anchorProps, className, ...rest }: import("./types").SubItemProps) => import("react").JSX.Element;
|
|
14
|
+
DropdownRoot: ({ mostUsed, options, labelMostUsed, }: import("./types").DropdownRootProps) => import("react").JSX.Element;
|
|
16
15
|
};
|
|
17
16
|
export * from './types';
|
|
@@ -4,4 +4,4 @@ export interface PopoverContentProps extends Omit<FloatingFocusManagerProps, 'ch
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const PopoverContent: ({ children, className, modal, ...rest }: PopoverContentProps) => JSX.Element;
|
|
7
|
+
export declare const PopoverContent: ({ children, className, modal, ...rest }: PopoverContentProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/react';
|
|
2
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import React, { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
3
3
|
export interface ControlledProps {
|
|
4
4
|
controlled: true;
|
|
5
5
|
isOpen: boolean;
|
|
@@ -14,4 +14,4 @@ export interface UncontrolledProviderProps {
|
|
|
14
14
|
export interface ControlledPopoverProviderProps extends Omit<UncontrolledProviderProps, 'controlled'>, ControlledProps {
|
|
15
15
|
}
|
|
16
16
|
export type PopoverProviderProps = UncontrolledProviderProps | ControlledPopoverProviderProps;
|
|
17
|
-
export declare const PopoverProvider: ({ children, placement, trigger, ...props }: PopoverProviderProps) => JSX.Element;
|
|
17
|
+
export declare const PopoverProvider: ({ children, placement, trigger, ...props }: PopoverProviderProps) => React.JSX.Element;
|
|
@@ -10,4 +10,4 @@ export interface UncontrolledPopoverProps {
|
|
|
10
10
|
export interface ControlledPopoverProps extends Omit<UncontrolledPopoverProps, 'controlled'>, ControlledProps {
|
|
11
11
|
}
|
|
12
12
|
export type PopoverRootProps = UncontrolledPopoverProps | ControlledPopoverProps;
|
|
13
|
-
export declare const PopoverRoot: ({ children, placement, trigger, ...props }: PopoverRootProps) => JSX.Element;
|
|
13
|
+
export declare const PopoverRoot: ({ children, placement, trigger, ...props }: PopoverRootProps) => React.JSX.Element;
|