@okam/stack-ui 1.44.4 → 1.44.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/components/AccordionItem.d.ts +2 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +2 -2
- package/components/Alerts/interface.d.ts +3 -3
- package/components/Box/index.d.ts +2 -2
- package/components/Box/interface.d.ts +2 -2
- package/components/Button/index.d.ts +3 -3
- package/components/Button/interface.d.ts +2 -3
- package/components/Carousel/index.d.ts +2 -2
- package/components/Carousel/navigation/LegacyCarouselNavigationButton.d.ts +2 -2
- package/components/Icon/interface.d.ts +3 -4
- package/components/Lightbox/interface.d.ts +3 -4
- package/components/Menu/interface.d.ts +10 -10
- package/components/Modal/interface.d.ts +3 -4
- package/components/Node/index.d.ts +2 -2
- package/components/PrintButton/interface.d.ts +2 -2
- package/components/ShareButton/interface.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +3 -4
- package/components/TabList/components/TabItem.d.ts +2 -2
- package/components/TabList/interface.d.ts +2 -3
- package/components/TagGroup/components/TagItem.d.ts +2 -2
- package/components/Typography/index.d.ts +2 -2
- package/components/Typography/interface.d.ts +2 -2
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -2
- package/components/fields/CheckboxGroup/interface.d.ts +2 -2
- package/components/fields/ComboBox/hooks/useComboBoxFiltering.d.ts +4 -4
- package/components/fields/DatePicker/interface.d.ts +1 -2
- package/components/fields/Radio/Radio.interface.d.ts +2 -2
- package/components/fields/RadioGroup/interface.d.ts +2 -2
- package/components/fields/SearchField/interface.d.ts +3 -3
- package/components/fields/Select/Select.interface.d.ts +2 -3
- package/components/fields/Select/components/Listbox.interface.d.ts +2 -2
- package/components/fields/Select/components/Popover.interface.d.ts +4 -4
- package/components/icons/ArrowDown.d.ts +3 -3
- package/components/icons/ArrowLeft.d.ts +3 -3
- package/components/icons/ArrowRight.d.ts +3 -3
- package/components/icons/Check.d.ts +3 -3
- package/components/icons/ChevronLeft.d.ts +3 -3
- package/components/icons/ChevronRight.d.ts +3 -3
- package/components/icons/CloseBtn.d.ts +3 -3
- package/components/icons/ErrorIcon.d.ts +3 -3
- package/components/icons/Facebook.d.ts +3 -3
- package/components/icons/FacebookColored.d.ts +3 -3
- package/components/icons/FacebookRounded.d.ts +3 -3
- package/components/icons/Globe.d.ts +3 -3
- package/components/icons/IconFallback.d.ts +3 -3
- package/components/icons/Instagram.d.ts +3 -3
- package/components/icons/InstagramColored.d.ts +3 -3
- package/components/icons/Link.d.ts +3 -3
- package/components/icons/LinkedIn.d.ts +3 -3
- package/components/icons/Mail.d.ts +3 -3
- package/components/icons/Plus.d.ts +3 -3
- package/components/icons/Print.d.ts +3 -3
- package/components/icons/Search.d.ts +3 -3
- package/components/icons/Share.d.ts +3 -3
- package/components/icons/Twitter.d.ts +3 -3
- package/components/icons/TwitterColored.d.ts +3 -3
- package/components/icons/Upload.d.ts +3 -3
- package/components/icons/X.d.ts +3 -3
- package/components/icons/YouTube.d.ts +3 -3
- package/components/icons/YouTubeColored.d.ts +3 -3
- package/index10.js +1 -1
- package/index100.js +1 -1
- package/index102.js +1 -1
- package/index103.js +1 -1
- package/index104.js +1 -1
- package/index107.js +1 -1
- package/index108.js +1 -1
- package/index109.js +1 -1
- package/index111.js +1 -1
- package/index116.js +1 -1
- package/index117.js +1 -1
- package/index119.js +1 -1
- package/index13.js +1 -1
- package/index131.js +1 -1
- package/index131.mjs +10 -10
- package/index132.js +1 -1
- package/index132.mjs +8 -8
- package/index141.js +1 -1
- package/index171.js +1 -1
- package/index29.js +1 -1
- package/index3.js +1 -1
- package/index3.mjs +8 -8
- package/index33.js +1 -1
- package/index33.mjs +6 -7
- package/index34.js +1 -1
- package/index35.js +1 -1
- package/index35.mjs +10 -10
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +1 -1
- package/index40.js +1 -1
- package/index43.js +1 -1
- package/index43.mjs +29 -30
- package/index44.js +1 -1
- package/index48.js +1 -1
- package/index48.mjs +4 -5
- package/index5.js +1 -1
- package/index50.js +1 -1
- package/index50.mjs +11 -12
- package/index56.js +1 -1
- package/index6.js +1 -1
- package/index6.mjs +15 -15
- package/index68.js +1 -1
- package/index69.js +1 -1
- package/index70.js +1 -1
- package/index70.mjs +11 -11
- package/index73.js +1 -1
- package/index73.mjs +11 -11
- package/index82.js +1 -1
- package/index83.js +1 -1
- package/index86.js +1 -1
- package/index87.js +1 -1
- package/index87.mjs +16 -17
- package/index9.js +1 -1
- package/index91.js +1 -1
- package/index91.mjs +18 -18
- package/index98.js +1 -1
- package/index99.js +1 -1
- package/package.json +2 -2
- package/providers/CheckboxGroup/interface.d.ts +2 -2
- package/providers/Client/interface.d.ts +2 -2
- package/providers/Menu/interface.d.ts +11 -11
- package/providers/SidePanel/interface.d.ts +5 -6
- package/providers/Theme/index.d.ts +3 -3
- package/providers/Theme/interface.d.ts +2 -2
- package/providers/UserSearchQuery/interface.d.ts +2 -3
- package/storybook/Menu/Menu.d.ts +6 -7
- package/theme/index.d.ts +2 -3
- package/types/components.d.ts +4 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { TAccordionItemProps } from '../interface';
|
|
2
|
-
|
|
3
|
-
declare const _AccordionItem: (_props: TAccordionItemProps) => React.JSX.Element;
|
|
3
|
+
declare const _AccordionItem: (_props: TAccordionItemProps) => JSX.Element;
|
|
4
4
|
export default _AccordionItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { TAnchorProps } from '../../Button/interface';
|
|
2
|
-
import type * as React from 'react';
|
|
3
3
|
interface AlertsCloseButtonProps extends TAnchorProps {
|
|
4
|
-
ref?:
|
|
4
|
+
ref?: Ref<HTMLElement>;
|
|
5
5
|
}
|
|
6
6
|
declare function AlertsCloseButton({ ref, ...props }: AlertsCloseButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare namespace AlertsCloseButton {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TDefaultComponent } from '../../types/components';
|
|
3
4
|
import { TButtonProps } from '../Button/interface';
|
|
4
5
|
import { TLegacyCarouselProps } from '../Carousel/interface';
|
|
5
6
|
import { TCarouselSlideProps } from '../Carousel/swiper/interface';
|
|
6
7
|
import { LightboxProps } from '../Lightbox/interface';
|
|
7
|
-
import type * as React from 'react';
|
|
8
8
|
export interface TAlertsItem extends TCarouselSlideProps {
|
|
9
9
|
id: string;
|
|
10
|
-
icon?:
|
|
10
|
+
icon?: ReactNode;
|
|
11
11
|
title?: string;
|
|
12
12
|
ariaLabel?: string;
|
|
13
|
-
content?:
|
|
13
|
+
content?: ReactNode;
|
|
14
14
|
button?: TButtonProps;
|
|
15
15
|
}
|
|
16
16
|
export type TAlertsItemProps<T extends TToken = TToken> = TAlertsItem & Omit<TDefaultComponent<T>, 'children'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TBoxProps } from './interface';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
export declare function Box<T extends TToken>({ as: Component, themeName, tokens, customTheme, children, className, ...rest }: TBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export interface TBoxWithForwardRefProps<T = TToken> extends TBoxProps<T> {
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: Ref<HTMLElement>;
|
|
7
7
|
}
|
|
8
8
|
export declare function BoxWithForwardRef<T extends TToken>({ ref, as: Component, tokens, themeName, customTheme, children, ...rest }: TBoxWithForwardRefProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare namespace BoxWithForwardRef {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DOMAttributes } from '@react-types/shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { TToken } from '../../providers/Theme/interface';
|
|
3
4
|
import { TDefaultComponent } from '../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export interface TBoxProps<T = TToken> extends TDefaultComponent<T>, DOMAttributes {
|
|
6
6
|
className?: string;
|
|
7
|
-
children?:
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
dangerouslySetInnerHTML?: {
|
|
9
9
|
__html: string | TrustedHTML;
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TAnchorProps, TButtonProps } from './interface';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
export declare function Anchor({ ref: forwardRef, ...props }: TAnchorProps & {
|
|
5
|
-
ref?:
|
|
5
|
+
ref?: Ref<HTMLElement>;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function ButtonWithForwardRef({ ref, ...props }: TAnchorProps & {
|
|
8
|
-
ref?:
|
|
8
|
+
ref?: Ref<HTMLElement>;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare namespace ButtonWithForwardRef {
|
|
11
11
|
var displayName: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Ref, RefAttributes } from 'react';
|
|
1
|
+
import { ReactNode, Ref, RefAttributes } from 'react';
|
|
2
2
|
import { PressEvent } from 'react-aria';
|
|
3
3
|
import { TToken } from '../../providers/Theme/interface';
|
|
4
4
|
import { TDefaultComponent } from '../../types/components';
|
|
5
5
|
import { NextLinkProps } from '../../types/next-link';
|
|
6
|
-
import type * as React from 'react';
|
|
7
6
|
export type TButtonAnchorElement = HTMLAnchorElement & HTMLButtonElement;
|
|
8
7
|
export interface TButtonProps<T = TToken> extends TDefaultComponent<T> {
|
|
9
|
-
children?:
|
|
8
|
+
children?: ReactNode;
|
|
10
9
|
id?: string;
|
|
11
10
|
href?: string;
|
|
12
11
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { TCarouselProps } from './interface';
|
|
2
|
-
|
|
3
|
-
declare function Carousel(props: TCarouselProps): React.JSX.Element;
|
|
3
|
+
declare function Carousel(props: TCarouselProps): JSX.Element;
|
|
4
4
|
export default Carousel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { TAnchorProps } from '../../Button/interface';
|
|
2
|
-
import type * as React from 'react';
|
|
3
3
|
interface LegacyCarouselNavigationButtonProps extends TAnchorProps {
|
|
4
|
-
ref?:
|
|
4
|
+
ref?: Ref<HTMLElement>;
|
|
5
5
|
onSubmit?: () => void;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
1
|
+
import { ReactNode, SVGProps } from 'react';
|
|
2
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
3
3
|
import { TDefaultComponent } from '../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
4
|
export interface TIconProps<T = TToken> extends TDefaultComponent<T>, SVGProps<SVGSVGElement> {
|
|
6
|
-
icon?: string |
|
|
7
|
-
children?:
|
|
5
|
+
icon?: string | ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
8
7
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { DOMAttributes } from '@react-types/shared';
|
|
2
|
-
import { Dispatch, FunctionComponent, SetStateAction } from 'react';
|
|
2
|
+
import { Dispatch, ForwardRefExoticComponent, FunctionComponent, ReactNode, RefAttributes, SetStateAction } from 'react';
|
|
3
3
|
import { OverlayTriggerProps as AriaOverlayTriggerProps } from 'react-aria';
|
|
4
4
|
import { OverlayTriggerProps } from 'react-stately';
|
|
5
5
|
import { TToken } from '../../providers/Theme/interface';
|
|
6
6
|
import { TDefaultComponent, TTransition } from '../../types/components';
|
|
7
7
|
import { TButtonProps } from '../Button/interface';
|
|
8
|
-
|
|
9
|
-
type TCloseButtonProps = React.ForwardRefExoticComponent<TButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>> | FunctionComponent<TButtonProps>;
|
|
8
|
+
type TCloseButtonProps = ForwardRefExoticComponent<TButtonProps & RefAttributes<HTMLButtonElement & HTMLAnchorElement>> | FunctionComponent<TButtonProps>;
|
|
10
9
|
export interface LightboxProps<T = TToken> extends TDefaultComponent<T>, OverlayTriggerProps, Omit<AriaOverlayTriggerProps, 'type'> {
|
|
11
10
|
closeButtonAriaLabel?: string;
|
|
12
11
|
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
@@ -17,7 +16,7 @@ export interface LightboxProps<T = TToken> extends TDefaultComponent<T>, Overlay
|
|
|
17
16
|
}
|
|
18
17
|
export interface TLightboxProps<T = TToken> extends LightboxProps<T> {
|
|
19
18
|
label: string;
|
|
20
|
-
thumbnailContent:
|
|
19
|
+
thumbnailContent: ReactNode;
|
|
21
20
|
}
|
|
22
21
|
export interface LightboxAria {
|
|
23
22
|
overlayProps: DOMAttributes & {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { AriaLabelingProps } from '@react-types/shared';
|
|
2
|
+
import { ElementType, JSX, ReactNode } from 'react';
|
|
2
3
|
import { AriaTabListProps } from 'react-aria';
|
|
3
4
|
import { TToken } from '../../providers/Theme/interface';
|
|
4
5
|
import { Maybe, TDefaultComponent, TTransition } from '../../types/components';
|
|
5
6
|
import { NextLinkProps } from '../../types/next-link';
|
|
6
|
-
import type * as React from 'react';
|
|
7
7
|
export interface MenuProps {
|
|
8
8
|
id: string;
|
|
9
|
-
children:
|
|
10
|
-
beforeTabContent?:
|
|
11
|
-
afterTabContent?:
|
|
12
|
-
PanelTransition?: (_props: TTransition) =>
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
beforeTabContent?: ReactNode;
|
|
11
|
+
afterTabContent?: ReactNode;
|
|
12
|
+
PanelTransition?: (_props: TTransition) => JSX.Element;
|
|
13
13
|
}
|
|
14
14
|
export type TMenuProps<T = TToken> = AriaTabListProps<MenuProps> & MenuProps & TDefaultComponent<T>;
|
|
15
15
|
export type TMenuSidePanelProps = TMenuProps & {
|
|
16
|
-
TransitionAnimation?: (_props: TTransition) =>
|
|
16
|
+
TransitionAnimation?: (_props: TTransition) => JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
export type PartialHtmlBaseElement = Omit<Partial<HTMLBaseElement>, 'id' | 'onClick' | 'target' | 'role' | 'children'>;
|
|
19
19
|
export interface IMenuItemProp {
|
|
@@ -23,7 +23,7 @@ export interface IMenuItemProp {
|
|
|
23
23
|
path?: string;
|
|
24
24
|
label?: string;
|
|
25
25
|
nextLinkProps?: NextLinkProps;
|
|
26
|
-
as?:
|
|
26
|
+
as?: ElementType;
|
|
27
27
|
onClick?: () => void;
|
|
28
28
|
}
|
|
29
29
|
export type TMenuItemProps = IMenuItemProp & TDefaultComponent & AriaLabelingProps & {
|
|
@@ -34,8 +34,8 @@ export type TMenuItemProps = IMenuItemProp & TDefaultComponent & AriaLabelingPro
|
|
|
34
34
|
};
|
|
35
35
|
export interface TMenuItemsProps extends TDefaultComponent {
|
|
36
36
|
menuItems?: TMenuItemProps[] | null;
|
|
37
|
-
menuLinkComponent?:
|
|
38
|
-
buttonLinkComponent?:
|
|
39
|
-
children?:
|
|
37
|
+
menuLinkComponent?: ElementType;
|
|
38
|
+
buttonLinkComponent?: ElementType;
|
|
39
|
+
children?: ReactNode;
|
|
40
40
|
}
|
|
41
41
|
export default TMenuProps;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { AriaModalOverlayProps } from 'react-aria';
|
|
3
3
|
import { OverlayTriggerState } from 'react-stately';
|
|
4
4
|
import { TToken } from '../../providers/Theme/interface';
|
|
5
5
|
import { TDefaultComponent, TTransition } from '../../types/components';
|
|
6
6
|
import { TDialogAria, TDialogProps } from '../Dialog/interface';
|
|
7
|
-
import type * as React from 'react';
|
|
8
7
|
export interface TModalAria extends TDialogAria, AriaModalOverlayProps {
|
|
9
8
|
}
|
|
10
9
|
export interface TModalProps<T = TToken> extends TModalAria, TDefaultComponent<T> {
|
|
11
10
|
state: OverlayTriggerState;
|
|
12
|
-
children:
|
|
11
|
+
children: ReactNode;
|
|
13
12
|
transitionComponent?: FunctionComponent<TTransition>;
|
|
14
13
|
}
|
|
15
14
|
export interface TModalOverlayProps extends AriaModalOverlayProps, TDefaultComponent {
|
|
16
|
-
children:
|
|
15
|
+
children: ReactNode;
|
|
17
16
|
state: OverlayTriggerState;
|
|
18
17
|
}
|
|
19
18
|
export interface TModalDialogProps extends TDialogProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { TNodeProps } from './interface';
|
|
2
|
-
|
|
3
|
-
declare const _Node: (_props: TNodeProps<object>) => React.JSX.Element;
|
|
3
|
+
declare const _Node: (_props: TNodeProps<object>) => JSX.Element;
|
|
4
4
|
export { _Node as Node };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TDefaultComponent } from '../../types/components';
|
|
3
|
-
import type * as React from 'react';
|
|
4
4
|
export interface TPrintButtonProps<T = TToken> extends TDefaultComponent<T> {
|
|
5
|
-
icon?:
|
|
5
|
+
icon?: ReactNode;
|
|
6
6
|
ariaLabel: string;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TDefaultComponent } from '../../types/components';
|
|
3
|
-
import type * as React from 'react';
|
|
4
4
|
export interface TShareButtonProps<T = TToken> extends TDefaultComponent<TShareButtonTokens & T> {
|
|
5
5
|
id: string;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: ReactNode;
|
|
7
7
|
ariaLabel: string;
|
|
8
8
|
sharingLinksList: TShareButtonLink[];
|
|
9
9
|
onShare?: (_sharingMedium: string) => void;
|
|
@@ -17,7 +17,7 @@ export interface TIconsContainerProps<T = TToken> extends Omit<TShareButtonProps
|
|
|
17
17
|
}
|
|
18
18
|
export interface TShareButtonLink {
|
|
19
19
|
ariaLabel: string;
|
|
20
|
-
icon?:
|
|
20
|
+
icon?: ReactNode;
|
|
21
21
|
key: string;
|
|
22
22
|
onClick?: (_linkKey: string) => void;
|
|
23
23
|
href?: string;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { JSX, ReactNode } from 'react';
|
|
2
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
3
3
|
import { TDefaultComponent, TTransition } from '../../types/components';
|
|
4
4
|
import { TModalAria } from '../Modal/interface';
|
|
5
|
-
import type * as React from 'react';
|
|
6
5
|
export interface TSidePanelProps<T extends TToken> extends TDefaultComponent<T>, TModalAria {
|
|
7
6
|
id: string;
|
|
8
7
|
children?: ReactNode;
|
|
9
8
|
closeBtnRender?: () => ReactNode;
|
|
10
|
-
TransitionAnimation?: (_props: TTransition) =>
|
|
11
|
-
PanelTransition?: (_props: TTransition) =>
|
|
9
|
+
TransitionAnimation?: (_props: TTransition) => JSX.Element;
|
|
10
|
+
PanelTransition?: (_props: TTransition) => JSX.Element;
|
|
12
11
|
/**
|
|
13
12
|
* @deprecated Use `onOpenChange` instead
|
|
14
13
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { TTabItemProps } from '../interface';
|
|
2
|
-
|
|
3
|
-
declare const _TabItem: <T extends object>(_props: TTabItemProps<T>) => React.JSX.Element;
|
|
3
|
+
declare const _TabItem: <T extends object>(_props: TTabItemProps<T>) => JSX.Element;
|
|
4
4
|
export { _TabItem as TabItem };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ComponentType, ReactElement } from 'react';
|
|
1
|
+
import { ComponentType, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { AriaTabListProps, AriaTabPanelProps, AriaTabProps } from 'react-aria';
|
|
3
3
|
import { TabListState } from 'react-stately';
|
|
4
4
|
import { TToken } from '../../providers/Theme/interface';
|
|
5
5
|
import { TDefaultComponent, TTransition } from '../../types/components';
|
|
6
6
|
import { TDefaultItemComponent, TDefaultNode } from '../../types/react-stately';
|
|
7
|
-
import type * as React from 'react';
|
|
8
7
|
export interface TTabItemProps<I extends object = object> extends TDefaultItemComponent<I> {
|
|
9
8
|
}
|
|
10
9
|
export type TTabElement<I extends object = object> = ReactElement<TTabItemProps<I>>;
|
|
@@ -17,6 +16,6 @@ export interface TTabPanelProps<I extends object, T extends TToken = TToken> ext
|
|
|
17
16
|
panelTransition?: ComponentType<TTransition>;
|
|
18
17
|
}
|
|
19
18
|
export interface TTabListProps<I extends object, T extends TToken = TToken> extends AriaTabListProps<I & TDefaultItemComponent<I, T>>, Omit<TDefaultComponent<T>, 'children'> {
|
|
20
|
-
label?:
|
|
19
|
+
label?: ReactNode;
|
|
21
20
|
panelTransition?: ComponentType<TTransition>;
|
|
22
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { TTagItemProps } from '../interface';
|
|
2
|
-
|
|
3
|
-
declare const _TagItem: <T extends object>(_props: TTagItemProps<T>) => React.JSX.Element;
|
|
3
|
+
declare const _TagItem: <T extends object>(_props: TTagItemProps<T>) => JSX.Element;
|
|
4
4
|
export { _TagItem as TagItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TTypographyProps } from './interface';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
export declare function Typography<T extends TToken>({ as: Component, themeName, tokens, customTheme, children, ...rest }: TTypographyProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function TypographyWithForwardRef({ ref, ...props }: TTypographyProps & {
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: Ref<HTMLElement>;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import { TDefaultComponent } from '../../types/components';
|
|
3
|
-
import type * as React from 'react';
|
|
4
4
|
export interface TTypographyProps<T = TToken> extends TDefaultComponent<T> {
|
|
5
|
-
children?:
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
dangerouslySetInnerHTML?: {
|
|
7
7
|
__html: string | TrustedHTML;
|
|
8
8
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { AriaCheckboxProps } from 'react-aria';
|
|
2
3
|
import { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import { TDefaultComponent } from '../../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export interface TCheckboxProps<T = TToken> extends TDefaultComponent<T>, AriaCheckboxProps {
|
|
6
6
|
label: string;
|
|
7
7
|
isError?: boolean;
|
|
8
8
|
errorMessage?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
10
|
-
icon?:
|
|
10
|
+
icon?: ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export interface TCheckboxLabelStyles {
|
|
13
13
|
isDisabled?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { AriaCheckboxGroupItemProps } from 'react-aria';
|
|
2
3
|
import { CheckboxGroupProps } from 'react-stately';
|
|
3
4
|
import { TToken } from '../../../providers/Theme/interface';
|
|
4
5
|
import { TDefaultComponent } from '../../../types/components';
|
|
5
6
|
import { TCheckboxProps } from '../Checkbox/Checkbox.interface';
|
|
6
|
-
import type * as React from 'react';
|
|
7
7
|
export interface TCheckboxGroupProps<T = TToken> extends TDefaultComponent<T>, CheckboxGroupProps {
|
|
8
|
-
children:
|
|
8
|
+
children: ReactNode;
|
|
9
9
|
isError?: boolean;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
errorMessage?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
import { TDefaultItemComponent } from '../../../../types/react-stately';
|
|
2
|
-
import * as React from 'react';
|
|
3
3
|
interface SimpleSectionData<T extends object = object> {
|
|
4
4
|
key: string;
|
|
5
5
|
title?: string;
|
|
@@ -18,13 +18,13 @@ export declare function useComboBoxFiltering<T extends object = object>(items: A
|
|
|
18
18
|
items: (SimpleSectionData<T> | FlatListItem<T>)[] | {
|
|
19
19
|
items: TDefaultItemComponent<T, import('../../../..').TToken>[] | undefined;
|
|
20
20
|
key: import('react-stately').Key;
|
|
21
|
-
as?:
|
|
21
|
+
as?: import('react').ElementType | undefined;
|
|
22
22
|
customTheme?: import('../../../..').TCustomTheme;
|
|
23
23
|
tokens?: import('../../../..').TToken | undefined;
|
|
24
24
|
themeName?: string | null | undefined;
|
|
25
|
-
title?:
|
|
25
|
+
title?: import('react').ReactNode;
|
|
26
26
|
'aria-label'?: string;
|
|
27
|
-
children: (import('@react-types/shared').ItemElement<T> | import('@react-types/shared').ItemElement<T>[] | import('@react-types/shared').ItemRenderer<T>) & (((_props: TDefaultItemComponent<T, import('../../../..').TToken>) =>
|
|
27
|
+
children: (import('@react-types/shared').ItemElement<T> | import('@react-types/shared').ItemElement<T>[] | import('@react-types/shared').ItemRenderer<T>) & (((_props: TDefaultItemComponent<T, import('../../../..').TToken>) => ReactElement) | undefined);
|
|
28
28
|
}[] | undefined;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
@@ -4,7 +4,6 @@ import { AriaDatePickerProps, AriaPopoverProps, DatePickerAria, DateRangePickerA
|
|
|
4
4
|
import { DateFieldState, DatePickerStateOptions, DateRangePickerStateOptions, DateSegment, OverlayTriggerState } from 'react-stately';
|
|
5
5
|
import { TToken } from '../../../providers/Theme/interface';
|
|
6
6
|
import { TDefaultComponent } from '../../../types/components';
|
|
7
|
-
import type * as React from 'react';
|
|
8
7
|
export interface TDateSegmentProps extends TDefaultComponent {
|
|
9
8
|
segment: DateSegment;
|
|
10
9
|
state: DateFieldState;
|
|
@@ -39,7 +38,7 @@ export interface TDateRangePickerProps<T = TToken> extends DateRangePickerStateO
|
|
|
39
38
|
outerDateFieldSeparator?: ReactNode;
|
|
40
39
|
}
|
|
41
40
|
export interface TCalendarPopoverProps extends Omit<AriaPopoverProps, 'popoverRef'>, TDefaultComponent {
|
|
42
|
-
children:
|
|
41
|
+
children: ReactNode;
|
|
43
42
|
state: OverlayTriggerState;
|
|
44
43
|
}
|
|
45
44
|
export interface TWrapperProps extends TDefaultComponent, Pick<DateRangePickerAria | DatePickerAria, 'groupProps' | 'buttonProps'>, Pick<TDatePickerBase, 'icon' | 'buttonLabel' | 'buttonContent'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { RefCallBack } from 'react-hook-form';
|
|
2
3
|
import { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import { TDefaultComponent, TReactHookForm } from '../../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export type TFieldReactHookForm<T> = TReactHookForm & TDefaultComponent<T>;
|
|
6
6
|
export interface TRadioProps<T = TToken> extends TFieldReactHookForm<T> {
|
|
7
7
|
id: string;
|
|
@@ -14,7 +14,7 @@ export interface TRadioProps<T = TToken> extends TFieldReactHookForm<T> {
|
|
|
14
14
|
ariaLabel?: string;
|
|
15
15
|
value: string;
|
|
16
16
|
inputRef?: RefCallBack;
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
export interface TRadioLabelStyles {
|
|
20
20
|
isDisabled?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TToken } from '../../../providers/Theme/interface';
|
|
2
3
|
import { TDefaultComponent } from '../../../types/components';
|
|
3
|
-
import type * as React from 'react';
|
|
4
4
|
export interface TRadioGroupProps<T = TToken> extends TDefaultComponent<T> {
|
|
5
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
isError?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
errorMessage?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { AriaSearchFieldProps } from 'react-aria';
|
|
2
3
|
import { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import { TDefaultComponent } from '../../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export default interface TSearchProps<T = TToken> extends AriaSearchFieldProps, TDefaultComponent<T> {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
ariaLabel?: string;
|
|
9
|
-
errorMessage?:
|
|
10
|
-
icon?:
|
|
9
|
+
errorMessage?: ReactNode;
|
|
10
|
+
icon?: ReactNode;
|
|
11
11
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { CollectionChildren } from '@react-types/shared';
|
|
2
|
-
import { Key } from 'react';
|
|
2
|
+
import { Key, ReactNode } from 'react';
|
|
3
3
|
import { RefCallBack } from 'react-hook-form';
|
|
4
4
|
import { TToken } from '../../../providers/Theme/interface';
|
|
5
5
|
import { Nullable, TDefaultComponent, TReactHookForm } from '../../../types/components';
|
|
6
|
-
import type * as React from 'react';
|
|
7
6
|
export type TFieldReactHookForm<T = TToken> = TReactHookForm & Omit<TDefaultComponent<T>, 'children'>;
|
|
8
7
|
export interface TSelectProps<T = TToken> extends TFieldReactHookForm<T> {
|
|
9
8
|
id: string;
|
|
10
|
-
icon?: string |
|
|
9
|
+
icon?: string | ReactNode;
|
|
11
10
|
label?: string;
|
|
12
11
|
children?: CollectionChildren<object> | undefined;
|
|
13
12
|
name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
1
2
|
import { AriaListBoxOptions, AriaOptionProps } from 'react-aria';
|
|
2
3
|
import { ListState, Node } from 'react-stately';
|
|
3
4
|
import { TDefaultComponent } from '../../../../types/components';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export interface TListBoxProps<T extends object = object> extends AriaListBoxOptions<T>, TDefaultComponent {
|
|
6
|
-
listBoxRef?:
|
|
6
|
+
listBoxRef?: RefObject<HTMLUListElement>;
|
|
7
7
|
state: ListState<T>;
|
|
8
8
|
optionsWithHeaders?: {
|
|
9
9
|
key: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
1
2
|
import { AriaPopoverProps } from 'react-aria';
|
|
2
3
|
import { OverlayTriggerState } from 'react-stately';
|
|
3
4
|
import { TToken } from '../../../../providers/Theme/interface';
|
|
4
5
|
import { TDefaultComponent } from '../../../../types/components';
|
|
5
|
-
import type * as React from 'react';
|
|
6
6
|
export interface TPopoverProps extends Omit<AriaPopoverProps, 'popoverRef'>, TDefaultComponent {
|
|
7
|
-
children:
|
|
7
|
+
children: ReactNode;
|
|
8
8
|
state: OverlayTriggerState;
|
|
9
9
|
variant?: string;
|
|
10
|
-
popoverRef?:
|
|
10
|
+
popoverRef?: RefObject<HTMLDivElement>;
|
|
11
11
|
tokens?: TToken;
|
|
12
|
-
style?:
|
|
12
|
+
style?: CSSProperties;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ArrowDown:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ArrowDown: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ArrowDown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ArrowLeft:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ArrowLeft: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ArrowLeft;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ArrowRight:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ArrowRight: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ArrowRight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const Check:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Check: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default Check;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ChevronLeft:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ChevronLeft: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ChevronLeft;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ChevronRight:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ChevronRight: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ChevronRight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const CloseBtn:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CloseBtn: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default CloseBtn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const ErrorIcon:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ErrorIcon: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default ErrorIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const Facebook:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Facebook: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default Facebook;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function SvgComponent(props:
|
|
3
|
-
declare const FacebookColored:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SvgComponent(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const FacebookColored: import('react').MemoExoticComponent<typeof SvgComponent>;
|
|
4
4
|
export default FacebookColored;
|