@tecsinapse/cortex-react 1.9.20 → 1.9.22
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/Avatar.js +2 -2
- package/dist/esm/components/Avatar.js +2 -2
- 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
|
@@ -15,7 +15,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
|
|
|
15
15
|
{
|
|
16
16
|
...rest,
|
|
17
17
|
className: clsx(
|
|
18
|
-
"rounded-pill bg-secondary-dark
|
|
18
|
+
"rounded-pill bg-secondary-dark h-mega flex items-center justify-center cursor-pointer aspect-square",
|
|
19
19
|
className
|
|
20
20
|
)
|
|
21
21
|
},
|
|
@@ -24,7 +24,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
|
|
|
24
24
|
{
|
|
25
25
|
src,
|
|
26
26
|
alt: name,
|
|
27
|
-
className: "rounded-pill",
|
|
27
|
+
className: "rounded-pill aspect-square h-mega",
|
|
28
28
|
onError: () => setHasError(true),
|
|
29
29
|
"data-testid": "avatar-img"
|
|
30
30
|
}
|
|
@@ -13,7 +13,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
|
|
|
13
13
|
{
|
|
14
14
|
...rest,
|
|
15
15
|
className: clsx(
|
|
16
|
-
"rounded-pill bg-secondary-dark
|
|
16
|
+
"rounded-pill bg-secondary-dark h-mega flex items-center justify-center cursor-pointer aspect-square",
|
|
17
17
|
className
|
|
18
18
|
)
|
|
19
19
|
},
|
|
@@ -22,7 +22,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
|
|
|
22
22
|
{
|
|
23
23
|
src,
|
|
24
24
|
alt: name,
|
|
25
|
-
className: "rounded-pill",
|
|
25
|
+
className: "rounded-pill aspect-square h-mega",
|
|
26
26
|
onError: () => setHasError(true),
|
|
27
27
|
"data-testid": "avatar-img"
|
|
28
28
|
}
|
|
@@ -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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Popover: {
|
|
3
|
-
Root: ({ children, placement, trigger, ...props }: import("./Root").PopoverRootProps) => JSX.Element;
|
|
2
|
+
Root: ({ children, placement, trigger, ...props }: import("./Root").PopoverRootProps) => import("react").JSX.Element;
|
|
4
3
|
Trigger: ({ children, disabled, }: import("./Trigger").PopoverTriggerProps) => import("react").FunctionComponentElement<any>;
|
|
5
|
-
Content: ({ children, className, modal, ...rest }: import("./Content").PopoverContentProps) => JSX.Element;
|
|
6
|
-
Provider: ({ children, placement, trigger, ...props }: import("./Provider").PopoverProviderProps) => JSX.Element;
|
|
4
|
+
Content: ({ children, className, modal, ...rest }: import("./Content").PopoverContentProps) => import("react").JSX.Element;
|
|
5
|
+
Provider: ({ children, placement, trigger, ...props }: import("./Provider").PopoverProviderProps) => import("react").JSX.Element;
|
|
7
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ProgressProps {
|
|
3
3
|
value: number;
|
|
4
4
|
intent?: 'default' | 'success' | 'warning' | 'info' | 'error';
|
|
5
5
|
infinite: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const Progress: ({ value, intent, infinite, }: ProgressProps) => JSX.Element;
|
|
7
|
+
export declare const Progress: ({ value, intent, infinite, }: ProgressProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface ProgressBarProps {
|
|
3
3
|
value?: number;
|
|
4
4
|
intent?: 'default' | 'success' | 'warning' | 'info' | 'error';
|
|
5
5
|
infinite?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const ProgressBar: ({ value, intent, infinite, }: ProgressBarProps) => JSX.Element;
|
|
7
|
+
export declare const ProgressBar: ({ value, intent, infinite, }: ProgressBarProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ContentProps } from './types';
|
|
3
|
-
export declare const Content: ({ children, className }: ContentProps) => JSX.Element;
|
|
3
|
+
export declare const Content: ({ children, className }: ContentProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectGroupedOptionsProps } from './types';
|
|
3
|
-
export declare const SelectGroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, }: SelectGroupedOptionsProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectGroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, }: SelectGroupedOptionsProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectMultiCheckAllOptionsProps } from './types';
|
|
3
|
-
export declare const SelectMultiCheckAllOptions: <T>({ checkAllLabel, }: SelectMultiCheckAllOptionsProps) => JSX.Element;
|
|
3
|
+
export declare const SelectMultiCheckAllOptions: <T>({ checkAllLabel, }: SelectMultiCheckAllOptionsProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectMultiGroupedOptionsProps } from './types';
|
|
3
|
-
export declare const SelectMultiGroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, children, }: SelectMultiGroupedOptionsProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectMultiGroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, children, }: SelectMultiGroupedOptionsProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectMultiOptionProps } from './types';
|
|
3
|
-
export declare const SelectMultiOption: <T>({ onSelectOption, option, grouped, }: SelectMultiOptionProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectMultiOption: <T>({ onSelectOption, option, grouped, }: SelectMultiOptionProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectMultiOptionsProps } from './types';
|
|
3
|
-
export declare const SelectMultiOptions: <T>({ onSelect, options, children, }: SelectMultiOptionsProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectMultiOptions: <T>({ onSelect, options, children, }: SelectMultiOptionsProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectOptionProps } from './types';
|
|
3
|
-
export declare const SelectOption: <T>({ onSelectOption, option, grouped, }: SelectOptionProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectOption: <T>({ onSelectOption, option, grouped, }: SelectOptionProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectOptionsProps } from './types';
|
|
3
|
-
export declare const SelectOptions: <T>({ onSelect, options, }: SelectOptionsProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectOptions: <T>({ onSelect, options, }: SelectOptionsProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectPopoverProps } from './types';
|
|
3
|
-
export declare const SelectPopover: ({ children }: SelectPopoverProps) => JSX.Element;
|
|
3
|
+
export declare const SelectPopover: ({ children }: SelectPopoverProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectRootProps } from './types';
|
|
3
|
-
export declare const SelectRoot: <T>({ children, value, keyExtractor, labelExtractor, className, }: SelectRootProps<T>) => JSX.Element;
|
|
3
|
+
export declare const SelectRoot: <T>({ children, value, keyExtractor, labelExtractor, className, }: SelectRootProps<T>) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SkeletonOptions: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SkeletonOptions: () => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectTriggerProps } from './types';
|
|
3
|
-
export declare const SelectTrigger: ({ label, placeholder, disabled, multiLabelSelected, ...rest }: SelectTriggerProps) => JSX.Element;
|
|
3
|
+
export declare const SelectTrigger: ({ label, placeholder, disabled, multiLabelSelected, ...rest }: SelectTriggerProps) => React.JSX.Element;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Select: {
|
|
3
|
-
Root: <T>({ children, value, keyExtractor, labelExtractor, className, }: import("./types").SelectRootProps<T>) => JSX.Element;
|
|
4
|
-
Trigger: ({ label, placeholder, disabled, multiLabelSelected, ...rest }: import("./types").SelectTriggerProps) => JSX.Element;
|
|
5
|
-
Popover: ({ children }: import("./types").SelectPopoverProps) => JSX.Element;
|
|
6
|
-
Options: <
|
|
7
|
-
GroupedOptions: <
|
|
8
|
-
Option: <
|
|
9
|
-
MultiOptions: <
|
|
10
|
-
MultiGroupedOptions: <
|
|
11
|
-
MultiOption: <
|
|
12
|
-
MultiCheckAllOptions: <
|
|
2
|
+
Root: <T>({ children, value, keyExtractor, labelExtractor, className, }: import("./types").SelectRootProps<T>) => import("react").JSX.Element;
|
|
3
|
+
Trigger: ({ label, placeholder, disabled, multiLabelSelected, ...rest }: import("./types").SelectTriggerProps) => import("react").JSX.Element;
|
|
4
|
+
Popover: ({ children }: import("./types").SelectPopoverProps) => import("react").JSX.Element;
|
|
5
|
+
Options: <T>({ onSelect, options, }: import("./types").SelectOptionsProps<T>) => import("react").JSX.Element;
|
|
6
|
+
GroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, }: import("./types").SelectGroupedOptionsProps<T>) => import("react").JSX.Element;
|
|
7
|
+
Option: <T>({ onSelectOption, option, grouped, }: import("./types").SelectOptionProps<T>) => import("react").JSX.Element;
|
|
8
|
+
MultiOptions: <T>({ onSelect, options, children, }: import("./types").SelectMultiOptionsProps<T>) => import("react").JSX.Element;
|
|
9
|
+
MultiGroupedOptions: <T>({ onSelect, groupedLabelExtractor, options, children, }: import("./types").SelectMultiGroupedOptionsProps<T>) => import("react").JSX.Element;
|
|
10
|
+
MultiOption: <T>({ onSelectOption, option, grouped, }: import("./types").SelectMultiOptionProps<T>) => import("react").JSX.Element;
|
|
11
|
+
MultiCheckAllOptions: <T>({ checkAllLabel, }: import("./types").SelectMultiCheckAllOptionsProps) => import("react").JSX.Element;
|
|
13
12
|
};
|
|
14
13
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const Skeleton: ({ className, children, ...rest }: SkeletonProps) => JSX.Element;
|
|
5
|
+
export declare const Skeleton: ({ className, children, ...rest }: SkeletonProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SnackbarVariants } from '@tecsinapse/cortex-core';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const DefaultSnack: ({ text, onDismiss, variants, }: {
|
|
4
4
|
text: string;
|
|
5
5
|
onDismiss: () => void;
|
|
6
6
|
variants?: SnackbarVariants;
|
|
7
|
-
}) => JSX.Element;
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface StepNodeProps extends Omit<React.ButtonHTMLAttributes<HTMLButto
|
|
|
9
9
|
interactive?: boolean;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare const Node: ({ marked, intent, isFirst, isLast, segmented, selected, interactive, children, className, ...rest }: StepNodeProps) => JSX.Element;
|
|
12
|
+
export declare const Node: ({ marked, intent, isFirst, isLast, segmented, selected, interactive, children, className, ...rest }: StepNodeProps) => React.JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface StepRootProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
interactive?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const Root: ({ segmented, children, className, interactive, }: StepRootProps) => JSX.Element;
|
|
8
|
+
export declare const Root: ({ segmented, children, className, interactive, }: StepRootProps) => React.JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Stepper: {
|
|
3
|
-
Root: ({ segmented, children, className, interactive, }: import("./Root").StepRootProps) => JSX.Element;
|
|
4
|
-
Node: ({ marked, intent, isFirst, isLast, segmented, selected, interactive, children, className, ...rest }: import("./Node").StepNodeProps) => JSX.Element;
|
|
2
|
+
Root: ({ segmented, children, className, interactive, }: import("./Root").StepRootProps) => import("react").JSX.Element;
|
|
3
|
+
Node: ({ marked, intent, isFirst, isLast, segmented, selected, interactive, children, className, ...rest }: import("./Node").StepNodeProps) => import("react").JSX.Element;
|
|
5
4
|
};
|
|
@@ -2,12 +2,12 @@ import React, { HTMLAttributes, ReactNode, TableHTMLAttributes, TdHTMLAttributes
|
|
|
2
2
|
interface TableCommon {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const THead: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
6
|
-
export declare const TRow: ({ children, className, ...rest }: TableCommon & React.HTMLAttributes<HTMLTableRowElement>) => JSX.Element;
|
|
7
|
-
export declare const THeadCell: ({ children, className, ...rest }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
8
|
-
export declare const TRowHeader: ({ children, }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
9
|
-
export declare const TCell: ({ children, className, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
10
|
-
export declare const TFoot: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
11
|
-
export declare const Table: ({ children, className, ...rest }: TableCommon & TableHTMLAttributes<HTMLTableElement>) => JSX.Element;
|
|
12
|
-
export declare const Td: ({ children, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
5
|
+
export declare const THead: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => React.JSX.Element;
|
|
6
|
+
export declare const TRow: ({ children, className, ...rest }: TableCommon & React.HTMLAttributes<HTMLTableRowElement>) => React.JSX.Element;
|
|
7
|
+
export declare const THeadCell: ({ children, className, ...rest }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => React.JSX.Element;
|
|
8
|
+
export declare const TRowHeader: ({ children, }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => React.JSX.Element;
|
|
9
|
+
export declare const TCell: ({ children, className, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => React.JSX.Element;
|
|
10
|
+
export declare const TFoot: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => React.JSX.Element;
|
|
11
|
+
export declare const Table: ({ children, className, ...rest }: TableCommon & TableHTMLAttributes<HTMLTableElement>) => React.JSX.Element;
|
|
12
|
+
export declare const Td: ({ children, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -7,8 +7,8 @@ interface TagProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Tag: {
|
|
9
9
|
Root: React.ForwardRefExoticComponent<Omit<TagProps & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Close: ({ onClick, className }: HTMLProps<HTMLButtonElement>) => JSX.Element;
|
|
11
|
-
Label: ({ children, className }: HTMLProps<HTMLParagraphElement>) => JSX.Element;
|
|
10
|
+
Close: ({ onClick, className }: HTMLProps<HTMLButtonElement>) => React.JSX.Element;
|
|
11
|
+
Label: ({ children, className }: HTMLProps<HTMLParagraphElement>) => React.JSX.Element;
|
|
12
12
|
Face: React.ForwardRefExoticComponent<Omit<Pick<TagProps, "variants"> & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TextArea: {
|
|
3
2
|
Root: import("react").ForwardRefExoticComponent<import("./types").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
4
3
|
Face: import("react").ForwardRefExoticComponent<import("./types").TextAreaFaceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const getValidChildren: (children: React.ReactNode) => React.ReactElement
|
|
2
|
+
export declare const getValidChildren: (children: React.ReactNode) => React.ReactElement[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AriaTimeFieldProps, TimeValue } from 'react-aria';
|
|
3
3
|
export interface TimeFieldProps extends AriaTimeFieldProps<TimeValue> {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const TimeField: ({ disabled, ...props }: TimeFieldProps) => JSX.Element;
|
|
6
|
+
export declare const TimeField: ({ disabled, ...props }: TimeFieldProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Time } from '@internationalized/date';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { InputPropsBase } from '../Input';
|
|
4
4
|
export interface TimeFieldInputProps extends InputPropsBase {
|
|
5
5
|
value?: Time;
|
|
@@ -8,4 +8,4 @@ export interface TimeFieldInputProps extends InputPropsBase {
|
|
|
8
8
|
granularity?: 'hour' | 'minute' | 'second';
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const TimeFieldInput: (props: TimeFieldInputProps) => JSX.Element;
|
|
11
|
+
export declare const TimeFieldInput: (props: TimeFieldInputProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DropzoneProps } from './types';
|
|
3
|
-
export declare const Dropzone: ({ dropzoneProps, selectFileText, dropText, buttonText, }: DropzoneProps) => JSX.Element;
|
|
3
|
+
export declare const Dropzone: ({ dropzoneProps, selectFileText, dropText, buttonText, }: DropzoneProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FilesProps } from './types';
|
|
3
|
-
export declare const Files: <T>({ files, onDelete, uploadProgressText, }: FilesProps<T>) => JSX.Element;
|
|
3
|
+
export declare const Files: <T>({ files, onDelete, uploadProgressText, }: FilesProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RootUploaderProps } from './types';
|
|
3
|
-
export declare const Root: <T>({ open, onClose, files, onDelete, dropzoneProps, selectFileText, dropText, buttonText, uploadProgressText, titleModal, }: RootUploaderProps<T>) => JSX.Element;
|
|
3
|
+
export declare const Root: <T>({ open, onClose, files, onDelete, dropzoneProps, selectFileText, dropText, buttonText, uploadProgressText, titleModal, }: RootUploaderProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FileProps } from './types';
|
|
3
|
-
export declare const File: <T>({ file, index, onDelete }: FileProps<T>) => JSX.Element;
|
|
3
|
+
export declare const File: <T>({ file, index, onDelete }: FileProps<T>) => React.JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export * from './Root';
|
|
3
2
|
export * from './types';
|
|
4
3
|
export declare const Uploader: {
|
|
5
|
-
Dropzone: ({ dropzoneProps, selectFileText, dropText, buttonText, }: import("./types").DropzoneProps) => JSX.Element;
|
|
6
|
-
Files: <T>({ files, onDelete, uploadProgressText, }: import("./types").FilesProps<T>) => JSX.Element;
|
|
4
|
+
Dropzone: ({ dropzoneProps, selectFileText, dropText, buttonText, }: import("./types").DropzoneProps) => import("react").JSX.Element;
|
|
5
|
+
Files: <T>({ files, onDelete, uploadProgressText, }: import("./types").FilesProps<T>) => import("react").JSX.Element;
|
|
7
6
|
Modal: ({ open, onClose, children, title, }: import("./types").ModalProps) => any;
|
|
8
|
-
Root: <
|
|
7
|
+
Root: <T>({ open, onClose, files, onDelete, dropzoneProps, selectFileText, dropText, buttonText, uploadProgressText, titleModal, }: import("./types").RootUploaderProps<T>) => import("react").JSX.Element;
|
|
9
8
|
};
|
|
@@ -21,7 +21,7 @@ export declare const useFloatingElement: ({ placement, trigger, delay, arrowRef,
|
|
|
21
21
|
strategy: import("@floating-ui/utils").Strategy;
|
|
22
22
|
refs: {
|
|
23
23
|
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
24
|
-
floating:
|
|
24
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
25
25
|
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
26
26
|
setFloating: (node: HTMLElement | null) => void;
|
|
27
27
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
@@ -33,11 +33,11 @@ export declare const useFloatingElement: ({ placement, trigger, delay, arrowRef,
|
|
|
33
33
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
34
34
|
isPositioned: boolean;
|
|
35
35
|
update: () => void;
|
|
36
|
-
floatingStyles:
|
|
36
|
+
floatingStyles: React.CSSProperties;
|
|
37
37
|
open: boolean;
|
|
38
|
-
onOpenChange: (open: boolean, event?: Event
|
|
38
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
39
39
|
events: import("@floating-ui/react").FloatingEvents;
|
|
40
|
-
dataRef:
|
|
40
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
41
41
|
nodeId: string | undefined;
|
|
42
42
|
floatingId: string;
|
|
43
43
|
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
@@ -47,6 +47,6 @@ export declare const useFloatingElement: ({ placement, trigger, delay, arrowRef,
|
|
|
47
47
|
triggerProps: {
|
|
48
48
|
ref: ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: import("@floating-ui/react").ReferenceType | null) => void);
|
|
49
49
|
};
|
|
50
|
-
getReferenceProps: (userProps?:
|
|
51
|
-
getFloatingProps: (userProps?:
|
|
50
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
51
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
52
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { type ExternalToast } from 'sonner';
|
|
3
3
|
import { SnackbarSonner } from '../service/SnackbarSonner';
|
|
4
4
|
interface SnackbarProviderProps {
|
|
@@ -7,6 +7,6 @@ interface SnackbarProviderProps {
|
|
|
7
7
|
export declare const SnackbarProvider: ({ children, options, }: {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
options?: ExternalToast;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
export declare const useSnackbar: () => SnackbarProviderProps;
|
|
12
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.22",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@floating-ui/react": "^0.26.18",
|
|
22
22
|
"@internationalized/date": "*",
|
|
23
|
-
"@tecsinapse/cortex-core": "0.4.
|
|
23
|
+
"@tecsinapse/cortex-core": "0.4.9",
|
|
24
24
|
"clsx": "*",
|
|
25
25
|
"currency.js": "~2.0.4",
|
|
26
26
|
"react-aria": "^3.33.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react-dom": ">=18.0.0",
|
|
49
49
|
"tailwind": ">=3.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "941332d969b026359a280f89fd7bc7ba81f94992"
|
|
52
52
|
}
|