@okam/stack-ui 1.29.0 → 1.30.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/components/Accordion/components/AccordionItem.d.ts +1 -0
- package/components/Accordion/index.d.ts +2 -1
- package/components/Accordion/interface.d.ts +3 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
- package/components/Alerts/index.d.ts +2 -1
- package/components/Alerts/interface.d.ts +4 -3
- package/components/Box/index.d.ts +3 -2
- package/components/Button/index.d.ts +8 -4
- package/components/Button/interface.d.ts +3 -2
- package/components/Calendar/index.d.ts +5 -1
- package/components/Calendar/interface.d.ts +2 -1
- package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
- package/components/Date/index.d.ts +2 -1
- package/components/Date/interface.d.ts +2 -1
- package/components/Icon/index.d.ts +2 -1
- package/components/Icon/interface.d.ts +2 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
- package/components/Lightbox/index.d.ts +2 -1
- package/components/Lightbox/interface.d.ts +3 -2
- package/components/Menu/Menu.d.ts +2 -1
- package/components/Menu/interface.d.ts +5 -4
- package/components/Modal/index.d.ts +2 -1
- package/components/Modal/interface.d.ts +2 -1
- package/components/Popover/index.d.ts +2 -1
- package/components/Popover/interface.d.ts +3 -2
- package/components/ShareButton/index.d.ts +2 -1
- package/components/ShareButton/interface.d.ts +2 -2
- package/components/SidePanel/index.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +5 -4
- package/components/Typography/index.d.ts +3 -2
- package/components/Video/index.d.ts +2 -1
- package/components/Video/interface.d.ts +2 -1
- package/components/WysiwygBlock/attributes.d.ts +2 -0
- package/components/WysiwygBlock/index.d.ts +2 -1
- package/components/WysiwygBlock/interface.d.ts +2 -1
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
- package/components/fields/Checkbox/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/interface.d.ts +2 -1
- package/components/fields/DatePicker/index.d.ts +2 -1
- package/components/fields/DatePicker/interface.d.ts +2 -1
- package/components/fields/Radio/Radio.interface.d.ts +3 -2
- package/components/fields/Radio/index.d.ts +3 -2
- package/components/fields/RadioGroup/index.d.ts +2 -1
- package/components/fields/RadioGroup/interface.d.ts +2 -1
- package/components/fields/SearchField/index.d.ts +2 -1
- package/components/fields/SearchField/interface.d.ts +2 -1
- package/components/fields/Select/Select.d.ts +2 -1
- package/components/fields/Select/Select.interface.d.ts +3 -2
- package/components/fields/TextArea/index.d.ts +2 -1
- package/components/fields/TextInputField/interface.d.ts +3 -2
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +41 -38
- package/index100.js +1 -2
- package/index100.mjs +22 -21
- package/index101.js +2 -1
- package/index101.mjs +22 -63
- package/index102.js +1 -1
- package/index102.mjs +58 -24
- package/index103.js +1 -1
- package/index103.mjs +29 -4
- package/index104.js +1 -1
- package/index104.mjs +52 -11
- package/index105.js +1 -1
- package/index105.mjs +4 -14
- package/index106.js +1 -1
- package/index106.mjs +11 -23
- package/index107.js +1 -1
- package/index107.mjs +13 -22
- package/index108.js +1 -1
- package/index108.mjs +23 -39
- package/index109.js +1 -2
- package/index109.mjs +22 -12
- package/index11.js +1 -1
- package/index11.mjs +2 -2
- package/index110.js +1 -1
- package/index110.mjs +38 -7
- package/index111.js +2 -1
- package/index111.mjs +12 -21
- package/index112.js +1 -1
- package/index112.mjs +7 -38
- package/index113.js +1 -1
- package/index113.mjs +20 -48
- package/index114.js +1 -1
- package/index114.mjs +38 -40
- package/index115.js +1 -1
- package/index115.mjs +47 -11
- package/index116.js +1 -1
- package/index116.mjs +41 -26
- package/index117.js +1 -1
- package/index117.mjs +14 -20
- package/index118.js +1 -1
- package/index118.mjs +30 -8
- package/index119.js +1 -1
- package/index119.mjs +20 -30
- package/index120.js +1 -1
- package/index120.mjs +8 -14
- package/index121.js +1 -1
- package/index121.mjs +29 -16
- package/index122.js +1 -1
- package/index122.mjs +15 -21
- package/index123.js +1 -1
- package/index123.mjs +17 -11
- package/index124.js +1 -2
- package/index124.mjs +20 -21
- package/index125.js +1 -1
- package/index125.mjs +11 -12
- package/index126.js +2 -1
- package/index126.mjs +22 -46
- package/index127.js +1 -1
- package/index127.mjs +12 -241
- package/index128.js +1 -2
- package/index128.mjs +46 -13
- package/index129.js +1 -1
- package/index129.mjs +239 -28
- package/index13.js +1 -1
- package/index13.mjs +8 -5
- package/index130.js +2 -1
- package/index130.mjs +13 -51
- package/index131.js +1 -1
- package/index131.mjs +30 -27
- package/index132.js +1 -1
- package/index132.mjs +49 -19
- package/index133.js +1 -1
- package/index133.mjs +26 -61
- package/index134.js +1 -1
- package/index134.mjs +17 -91
- package/index135.js +1 -1
- package/index135.mjs +59 -29
- package/index136.js +1 -1
- package/index136.mjs +90 -117
- package/index137.js +1 -1
- package/index137.mjs +32 -26
- package/index138.js +1 -1
- package/index138.mjs +118 -121
- package/index139.js +1 -1
- package/index139.mjs +27 -134
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +122 -12
- package/index141.js +1 -1
- package/index141.mjs +131 -92
- package/index142.js +1 -1
- package/index142.mjs +12 -104
- package/index143.js +1 -1
- package/index143.mjs +95 -5
- package/index144.js +1 -1
- package/index144.mjs +106 -3
- package/index145.js +1 -1
- package/index145.mjs +5 -125
- package/index146.js +1 -1
- package/index146.mjs +3 -29
- package/index147.js +1 -1
- package/index147.mjs +113 -39
- package/index148.js +1 -1
- package/index148.mjs +19 -34
- package/index149.js +1 -1
- package/index149.mjs +40 -26
- package/index150.js +1 -1
- package/index150.mjs +29 -98
- package/index151.js +1 -1
- package/index151.mjs +28 -68
- package/index152.js +1 -1
- package/index152.mjs +90 -78
- package/index153.js +1 -1
- package/index153.mjs +78 -98
- package/index154.js +1 -1
- package/index154.mjs +101 -199
- package/index155.js +1 -1
- package/index155.mjs +98 -65
- package/index156.js +1 -1
- package/index156.mjs +185 -127
- package/index157.js +1 -1
- package/index157.mjs +54 -109
- package/index158.js +1 -1
- package/index158.mjs +126 -202
- package/index159.js +1 -1
- package/index159.mjs +104 -175
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +208 -60
- package/index161.js +1 -1
- package/index161.mjs +178 -246
- package/index162.js +1 -1
- package/index162.mjs +63 -91
- package/index163.js +1 -1
- package/index163.mjs +250 -166
- package/index164.js +1 -1
- package/index164.mjs +91 -78
- package/index165.js +1 -1
- package/index165.mjs +170 -54
- package/index166.js +1 -1
- package/index166.mjs +72 -114
- package/index167.js +1 -1
- package/index167.mjs +51 -109
- package/index168.js +1 -1
- package/index168.mjs +112 -108
- package/index169.js +1 -1
- package/index169.mjs +109 -65
- package/index170.js +1 -1
- package/index170.mjs +117 -105
- package/index171.js +1 -1
- package/index171.mjs +68 -48
- package/index172.js +1 -1
- package/index172.mjs +108 -91
- package/index173.js +1 -1
- package/index173.mjs +37 -55
- package/index174.js +1 -1
- package/index174.mjs +80 -43
- package/index175.js +1 -1
- package/index175.mjs +52 -81
- package/index176.js +1 -5
- package/index176.mjs +42 -66
- package/index177.js +1 -1
- package/index177.mjs +87 -1999
- package/index178.js +5 -1
- package/index178.mjs +79 -58
- package/index179.js +1 -1
- package/index179.mjs +1998 -175
- package/index18.js +1 -1
- package/index18.mjs +7 -7
- package/index180.js +1 -1
- package/index180.mjs +59 -5
- package/index181.js +1 -1
- package/index181.mjs +183 -125
- package/index182.js +1 -1
- package/index182.mjs +5 -179
- package/index183.js +1 -1
- package/index183.mjs +129 -8
- package/index184.js +1 -1
- package/index184.mjs +179 -3
- package/index185.js +1 -1
- package/index185.mjs +8 -35
- package/index186.js +1 -1
- package/index186.mjs +3 -5
- package/index187.js +1 -1
- package/index187.mjs +35 -28
- package/index188.js +1 -1
- package/index188.mjs +5 -6
- package/index189.js +1 -1
- package/index189.mjs +26 -310
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +6 -192
- package/index191.js +1 -1
- package/index191.mjs +339 -7
- package/index192.js +1 -1
- package/index192.mjs +180 -23
- package/index193.js +1 -1
- package/index193.mjs +6 -53
- package/index194.js +1 -1
- package/index194.mjs +24 -44
- package/index195.js +1 -1
- package/index195.mjs +55 -124
- package/index196.js +1 -1
- package/index196.mjs +46 -5
- package/index197.js +1 -1
- package/index197.mjs +108 -26
- package/index198.js +1 -1
- package/index198.mjs +32 -6
- package/index199.js +1 -1
- package/index199.mjs +5 -7
- package/index2.js +1 -1
- package/index2.mjs +19 -19
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +28 -7
- package/index201.js +1 -1
- package/index201.mjs +7 -5
- package/index202.js +1 -1
- package/index202.mjs +7 -5
- package/index203.js +1 -1
- package/index203.mjs +7 -9
- package/index204.js +1 -0
- package/index204.mjs +7 -0
- package/index205.js +1 -0
- package/index205.mjs +8 -0
- package/index206.js +1 -0
- package/index206.mjs +12 -0
- package/index21.js +1 -1
- package/index21.mjs +8 -8
- package/index22.js +1 -1
- package/index22.mjs +2 -2
- package/index23.js +1 -1
- package/index23.mjs +3 -3
- package/index24.js +1 -1
- package/index24.mjs +14 -14
- package/index26.js +1 -1
- package/index26.mjs +28 -21
- package/index27.js +1 -1
- package/index27.mjs +12 -12
- package/index28.js +1 -1
- package/index28.mjs +6 -6
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +14 -8
- package/index31.js +1 -1
- package/index31.mjs +18 -18
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.mjs +43 -43
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +3 -3
- package/index36.mjs +10 -10
- package/index4.js +1 -1
- package/index4.mjs +3 -3
- package/index6.js +1 -1
- package/index6.mjs +34 -33
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +2 -2
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index7.mjs +4 -4
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +2 -1
- package/index72.mjs +27 -2
- package/index73.js +1 -2
- package/index73.mjs +2 -9
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +1 -1
- package/index76.mjs +6 -6
- package/index77.js +2 -1
- package/index77.mjs +8 -25
- package/index78.js +1 -1
- package/index78.mjs +25 -2
- package/index79.js +1 -6
- package/index79.mjs +2 -94
- package/index8.js +1 -1
- package/index8.mjs +42 -23
- package/index80.js +6 -1
- package/index80.mjs +79 -54
- package/index81.js +1 -1
- package/index81.mjs +61 -33
- package/index82.js +1 -42
- package/index82.mjs +34 -67
- package/index83.js +42 -1
- package/index83.mjs +69 -154
- package/index84.js +1 -9
- package/index84.mjs +149 -47
- package/index85.js +9 -1
- package/index85.mjs +48 -36
- package/index86.js +1 -1
- package/index86.mjs +40 -8
- package/index87.js +1 -1
- package/index87.mjs +9 -31
- package/index88.js +1 -1
- package/index88.mjs +35 -6
- package/index89.js +1 -12
- package/index89.mjs +6 -40
- package/index9.js +1 -1
- package/index9.mjs +7 -7
- package/index90.js +12 -1
- package/index90.mjs +36 -25
- package/index91.js +1 -1
- package/index91.mjs +24 -8
- package/index92.js +1 -7
- package/index92.mjs +7 -13
- package/index93.js +6 -14
- package/index93.mjs +13 -65
- package/index94.js +15 -1
- package/index94.mjs +71 -7
- package/index95.js +1 -16
- package/index95.mjs +7 -25
- package/index96.js +16 -1
- package/index96.mjs +20 -37
- package/index97.js +1 -1
- package/index97.mjs +40 -43
- package/index98.js +1 -1
- package/index98.mjs +44 -47
- package/index99.js +1 -1
- package/index99.mjs +48 -17
- package/package.json +1 -1
- package/providers/Translation/index.d.ts +4 -0
- package/providers/Translation/interface.d.ts +16 -0
- package/theme/Accordion/index.d.ts +12 -12
- package/theme/Alerts/index.d.ts +22 -22
- package/theme/Box/index.d.ts +8 -8
- package/theme/Button/index.d.ts +2 -2
- package/theme/Calendar/index.d.ts +12 -12
- package/theme/Carousel/index.d.ts +11 -11
- package/theme/Checkbox/index.d.ts +8 -8
- package/theme/CheckboxGroup/index.d.ts +3 -3
- package/theme/DatePicker/index.d.ts +9 -9
- package/theme/Image/index.d.ts +1 -1
- package/theme/LightBox/index.d.ts +9 -9
- package/theme/Radio/index.d.ts +6 -6
- package/theme/RadioGroup/index.d.ts +3 -3
- package/theme/Search/index.d.ts +3 -3
- package/theme/ShareButton/index.d.ts +10 -10
- package/theme/SidePanel/index.d.ts +3 -3
- package/theme/TextArea/index.d.ts +2 -2
- package/theme/Typography/index.d.ts +2 -2
- package/transitions/ModalTransition.d.ts +3 -6
- package/transitions/RenderWithSlide.d.ts +3 -6
- package/transitions/SidePanelTransition.d.ts +3 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TAccordionProps } from './interface';
|
|
2
|
-
declare const Accordion: (props: TAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Accordion: <T extends TToken>(props: TAccordionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Accordion;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { AccordionItemAriaProps } from '@react-aria/accordion';
|
|
2
2
|
import type { ComponentType, ReactElement } from 'react';
|
|
3
3
|
import type { ItemProps, TreeProps } from 'react-stately';
|
|
4
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
4
5
|
import type { TDefaultComponent, TTransition } from '../../types/components';
|
|
5
|
-
type TAccordionDefaultComponent = Omit<TDefaultComponent
|
|
6
|
+
type TAccordionDefaultComponent<T = TToken> = Omit<TDefaultComponent<T>, 'children'>;
|
|
6
7
|
export interface AccordionProps extends TreeProps<TAccordionItemProps> {
|
|
7
8
|
children: ReactElement<TAccordionItemProps> | ReactElement<TAccordionItemProps>[];
|
|
8
9
|
}
|
|
9
|
-
export interface TAccordionProps extends TAccordionDefaultComponent
|
|
10
|
+
export interface TAccordionProps<T = TToken> extends TAccordionDefaultComponent<T>, AccordionProps {
|
|
10
11
|
id: string;
|
|
11
12
|
TransitionAnimation?: ComponentType<TTransition>;
|
|
12
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TButtonProps } from '../../Button/interface';
|
|
3
|
-
declare const AlertsCloseButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
3
|
+
declare const AlertsCloseButton: import("react").ForwardRefExoticComponent<TButtonProps<import("../../..").TToken> & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
4
4
|
export default AlertsCloseButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TAlertsProps } from './interface';
|
|
2
|
-
declare const Alerts: (props: TAlertsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Alerts: <T extends TToken>(props: TAlertsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Alerts;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TDefaultComponent } from '../../types/components';
|
|
3
4
|
import type { TButtonProps } from '../Button/interface';
|
|
4
5
|
import type { TCarouselComponentProps, TCarouselProps } from '../Carousel/interface';
|
|
@@ -11,6 +12,6 @@ export interface TAlertsItem {
|
|
|
11
12
|
content?: React.ReactNode;
|
|
12
13
|
button?: TButtonProps;
|
|
13
14
|
}
|
|
14
|
-
export type TAlertsComponentProps = TCarouselComponentProps<TAlertsItemProps
|
|
15
|
-
export type TAlertsItemProps = TAlertsItem & TDefaultComponent
|
|
16
|
-
export type TAlertsProps = TAlertsComponentProps & Omit<TCarouselProps<TAlertsItemProps>, 'slides'> & Omit<LightboxProps, 'children'>;
|
|
15
|
+
export type TAlertsComponentProps<T extends TToken = TToken> = TCarouselComponentProps<TAlertsItemProps<T>>;
|
|
16
|
+
export type TAlertsItemProps<T extends TToken = TToken> = TAlertsItem & TDefaultComponent<T>;
|
|
17
|
+
export type TAlertsProps<T extends TToken = TToken> = TAlertsComponentProps<T> & Omit<TCarouselProps<TAlertsItemProps>, 'slides'> & Omit<LightboxProps, 'children'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TBoxProps } from './interface';
|
|
3
|
-
declare const Box: ({ as: Component, themeName, tokens, customTheme, children, className, ...rest }: TBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const BoxWithForwardRef: React.ForwardRefExoticComponent<TBoxProps<
|
|
4
|
+
declare const Box: <T extends TToken>({ as: Component, themeName, tokens, customTheme, children, className, ...rest }: TBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const BoxWithForwardRef: React.ForwardRefExoticComponent<TBoxProps<TToken> & React.RefAttributes<HTMLElement>>;
|
|
5
6
|
export default Box;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TAnchorProps, TButtonProps } from './interface';
|
|
3
|
-
export declare const Anchor: React.ForwardRefExoticComponent<TAnchorProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
4
|
-
export declare const ButtonWithForwardRef: React.ForwardRefExoticComponent<TButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
5
|
-
declare const
|
|
6
|
-
|
|
4
|
+
export declare const Anchor: React.ForwardRefExoticComponent<TAnchorProps<TToken> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
5
|
+
export declare const ButtonWithForwardRef: React.ForwardRefExoticComponent<TButtonProps<TToken> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
6
|
+
declare const ButtonComponent: {
|
|
7
|
+
<T extends TToken>(props: TButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default ButtonComponent;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { PressEvent } from '@react-types/shared';
|
|
2
2
|
import type React from 'react';
|
|
3
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
3
4
|
import type { TDefaultComponent } from '../../types/components';
|
|
4
5
|
import type { NextLinkProps } from '../../types/next-link';
|
|
5
|
-
export interface TButtonProps extends TDefaultComponent {
|
|
6
|
+
export interface TButtonProps<T = TToken> extends TDefaultComponent<T> {
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
id?: string;
|
|
8
9
|
href?: string;
|
|
@@ -15,6 +16,6 @@ export interface TButtonProps extends TDefaultComponent {
|
|
|
15
16
|
role?: string;
|
|
16
17
|
isDisabled?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export interface TAnchorProps extends TButtonProps {
|
|
19
|
+
export interface TAnchorProps<T = TToken> extends TButtonProps<T> {
|
|
19
20
|
nextLinkProps?: NextLinkProps;
|
|
20
21
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TCalendarProps } from './interface';
|
|
2
|
-
declare function Calendar({ buttons, tokens, customTheme, themeName, ...rest }: TCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Calendar<T extends TToken>({ buttons, tokens, customTheme, themeName, ...rest }: TCalendarProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace Calendar {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
3
7
|
export default Calendar;
|
|
@@ -2,8 +2,9 @@ import type { CalendarDate, DateValue } from '@internationalized/date';
|
|
|
2
2
|
import type { CalendarProps, RangeCalendarProps } from '@react-aria/calendar';
|
|
3
3
|
import type { CalendarState, RangeCalendarState } from '@react-stately/calendar';
|
|
4
4
|
import type { AriaCalendarGridProps } from 'react-aria';
|
|
5
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
5
6
|
import type { TDefaultComponent } from '../../types/components';
|
|
6
|
-
export interface TCalendarProps extends CalendarProps<DateValue>, TDefaultComponent {
|
|
7
|
+
export interface TCalendarProps<T = TToken> extends CalendarProps<DateValue>, TDefaultComponent<T> {
|
|
7
8
|
buttons?: {
|
|
8
9
|
buttonPrev?: {
|
|
9
10
|
icon?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TButtonProps } from '../../Button/interface';
|
|
3
|
-
export declare const CarouselNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & {
|
|
3
|
+
export declare const CarouselNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps<import("../../..").TToken> & {
|
|
4
4
|
onSubmit?: (() => void) | undefined;
|
|
5
5
|
} & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
6
|
-
export declare const CarouselNextNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
7
|
-
export declare const CarouselPrevNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
6
|
+
export declare const CarouselNextNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps<import("../../..").TToken> & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
7
|
+
export declare const CarouselPrevNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps<import("../../..").TToken> & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
8
8
|
export default CarouselNavigationButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TDateProps } from './interface';
|
|
2
|
-
declare const DateComponent: (props: TDateProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare const DateComponent: <T extends TToken>(props: TDateProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
4
|
export default DateComponent;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DateFormatterOptions } from 'react-aria';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TDefaultComponent } from '../../types/components';
|
|
3
|
-
export interface TDateProps extends TDefaultComponent {
|
|
4
|
+
export interface TDateProps<T = TToken> extends TDefaultComponent<T> {
|
|
4
5
|
date: string;
|
|
5
6
|
dateFormatterOptions?: DateFormatterOptions;
|
|
6
7
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TIconProps } from './interface';
|
|
2
|
-
declare const IconDispatcher: (props: TIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const IconDispatcher: <T extends TToken>(props: TIconProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default IconDispatcher;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { SVGProps } from 'react';
|
|
3
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
3
4
|
import type { TDefaultComponent } from '../../types/components';
|
|
4
|
-
export interface TIconProps extends TDefaultComponent
|
|
5
|
+
export interface TIconProps<T = TToken> extends TDefaultComponent<T>, SVGProps<SVGSVGElement> {
|
|
5
6
|
icon?: string | React.ReactNode;
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { OverlayTriggerProps } from 'react-aria';
|
|
3
|
+
import type { OverlayTriggerState } from 'react-stately';
|
|
4
|
+
declare function useOverlayHook(props: OverlayTriggerProps, state: OverlayTriggerState, ref?: RefObject<Element>): {
|
|
5
|
+
openTriggerProps: {
|
|
6
|
+
isDisabled?: boolean | undefined;
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
9
|
+
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
10
|
+
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
11
|
+
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
12
|
+
autoFocus?: boolean | undefined;
|
|
13
|
+
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
14
|
+
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
15
|
+
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
16
|
+
onKeyDown?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
17
|
+
onKeyUp?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
18
|
+
href?: string | undefined;
|
|
19
|
+
target?: string | undefined;
|
|
20
|
+
rel?: string | undefined;
|
|
21
|
+
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
|
22
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
23
|
+
'aria-haspopup'?: boolean | "true" | "false" | "grid" | "menu" | "dialog" | "listbox" | "tree" | undefined;
|
|
24
|
+
'aria-controls'?: string | undefined;
|
|
25
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
26
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
27
|
+
preventFocusOnPress?: boolean | undefined;
|
|
28
|
+
excludeFromTabOrder?: boolean | undefined;
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
'aria-label'?: string | undefined;
|
|
31
|
+
'aria-labelledby': string;
|
|
32
|
+
'aria-describedby'?: string | undefined;
|
|
33
|
+
'aria-details'?: string | undefined;
|
|
34
|
+
handlePress: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
35
|
+
};
|
|
36
|
+
triggerProps: {
|
|
37
|
+
isDisabled?: boolean | undefined;
|
|
38
|
+
children?: import("react").ReactNode;
|
|
39
|
+
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
40
|
+
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
41
|
+
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
42
|
+
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
43
|
+
autoFocus?: boolean | undefined;
|
|
44
|
+
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
45
|
+
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
46
|
+
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
47
|
+
onKeyDown?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
48
|
+
onKeyUp?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
49
|
+
href?: string | undefined;
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
rel?: string | undefined;
|
|
52
|
+
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
|
53
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
54
|
+
'aria-haspopup'?: boolean | "true" | "false" | "grid" | "menu" | "dialog" | "listbox" | "tree" | undefined;
|
|
55
|
+
'aria-controls'?: string | undefined;
|
|
56
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
57
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
58
|
+
preventFocusOnPress?: boolean | undefined;
|
|
59
|
+
excludeFromTabOrder?: boolean | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
61
|
+
'aria-label'?: string | undefined;
|
|
62
|
+
'aria-labelledby'?: string | undefined;
|
|
63
|
+
'aria-describedby'?: string | undefined;
|
|
64
|
+
'aria-details'?: string | undefined;
|
|
65
|
+
handlePress: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
66
|
+
};
|
|
67
|
+
labelProps: {
|
|
68
|
+
id: string;
|
|
69
|
+
};
|
|
70
|
+
overlayProps: {
|
|
71
|
+
'aria-labelledby': string;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export default useOverlayHook;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TLightboxProps } from './interface';
|
|
2
|
-
declare const Lightbox: (props: TLightboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Lightbox: <T extends TToken>(props: TLightboxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Lightbox;
|
|
@@ -3,16 +3,17 @@ import type React from 'react';
|
|
|
3
3
|
import type { Dispatch, FunctionComponent, SetStateAction } from 'react';
|
|
4
4
|
import type { OverlayTriggerProps as AriaOverlayTriggerProps } from 'react-aria';
|
|
5
5
|
import type { OverlayTriggerProps } from 'react-stately';
|
|
6
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
6
7
|
import type { TDefaultComponent, TTransition } from '../../types/components';
|
|
7
8
|
import type { TButtonProps } from '../Button/interface';
|
|
8
9
|
type TCloseButtonProps = React.ForwardRefExoticComponent<TButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>> | FunctionComponent<TButtonProps>;
|
|
9
|
-
export interface LightboxProps extends TDefaultComponent
|
|
10
|
+
export interface LightboxProps<T = TToken> extends TDefaultComponent<T>, OverlayTriggerProps, Omit<AriaOverlayTriggerProps, 'type'> {
|
|
10
11
|
closeButtonAriaLabel?: string;
|
|
11
12
|
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
12
13
|
closeButton?: TCloseButtonProps;
|
|
13
14
|
transitionComponent?: FunctionComponent<TTransition>;
|
|
14
15
|
}
|
|
15
|
-
export interface TLightboxProps extends LightboxProps {
|
|
16
|
+
export interface TLightboxProps<T = TToken> extends LightboxProps<T> {
|
|
16
17
|
label: string;
|
|
17
18
|
thumbnailContent: React.ReactNode;
|
|
18
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type TMenuProps from './interface';
|
|
2
|
-
declare const Menu: (props: TMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Menu: <T extends TToken>(props: TMenuProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Menu;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { AriaTabListProps } from '@react-types/tabs';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
4
|
+
import type { Maybe, TDefaultComponent, TTransition } from '../../types/components';
|
|
4
5
|
import type { NextLinkProps } from '../../types/next-link';
|
|
5
6
|
export type MenuProps = {
|
|
6
7
|
id: string;
|
|
7
8
|
children: React.ReactNode;
|
|
8
9
|
beforeTabContent?: React.ReactNode;
|
|
9
10
|
afterTabContent?: React.ReactNode;
|
|
10
|
-
PanelTransition?: (props:
|
|
11
|
+
PanelTransition?: (props: TTransition) => JSX.Element;
|
|
11
12
|
};
|
|
12
|
-
export type TMenuProps = AriaTabListProps<MenuProps> & MenuProps & TDefaultComponent
|
|
13
|
+
export type TMenuProps<T = TToken> = AriaTabListProps<MenuProps> & MenuProps & TDefaultComponent<T>;
|
|
13
14
|
export type TMenuSidePanelProps = TMenuProps & {
|
|
14
|
-
TransitionAnimation?: (props:
|
|
15
|
+
TransitionAnimation?: (props: TTransition) => JSX.Element;
|
|
15
16
|
};
|
|
16
17
|
export type PartialHtmlBaseElement = Omit<Partial<HTMLBaseElement>, 'id' | 'onClick' | 'target' | 'role' | 'children'>;
|
|
17
18
|
export interface IMenuItemProp {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TModalProps } from './interface';
|
|
2
|
-
declare const Modal: (props: TModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Modal: <T extends TToken>(props: TModalProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Modal;
|
|
@@ -2,8 +2,9 @@ import type { OverlayTriggerState } from '@react-stately/overlays';
|
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { FunctionComponent } from 'react';
|
|
4
4
|
import type { AriaDialogProps, AriaModalOverlayProps } from 'react-aria';
|
|
5
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
5
6
|
import type { TDefaultComponent, TTransition } from '../../types/components';
|
|
6
|
-
export interface TModalProps extends AriaModalOverlayProps, TDefaultComponent {
|
|
7
|
+
export interface TModalProps<T = TToken> extends AriaModalOverlayProps, TDefaultComponent<T> {
|
|
7
8
|
state: OverlayTriggerState;
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
transitionComponent?: FunctionComponent<TTransition>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TPopoverButtonProps } from './interface';
|
|
2
|
-
declare function PopoverButton(props: TPopoverButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function PopoverButton<T extends TToken>(props: TPopoverButtonProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default PopoverButton;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DOMAttributes } from '@react-types/shared';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { Placement } from 'react-aria';
|
|
4
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
4
5
|
import type { TDefaultComponent } from '../../types/components';
|
|
5
6
|
import type { TButtonProps } from '../Button/interface';
|
|
6
|
-
export interface IPopoverProps extends TDefaultComponent {
|
|
7
|
+
export interface IPopoverProps<T = TToken> extends TDefaultComponent<T> {
|
|
7
8
|
isOpen?: boolean;
|
|
8
9
|
onClose?: () => void;
|
|
9
10
|
children: React.ReactElement | React.ReactElement[];
|
|
@@ -11,7 +12,7 @@ export interface IPopoverProps extends TDefaultComponent {
|
|
|
11
12
|
isDismissable?: boolean;
|
|
12
13
|
shouldCloseOnBlur?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export interface TPopoverButtonProps extends TDefaultComponent
|
|
15
|
+
export interface TPopoverButtonProps<T = TToken> extends TDefaultComponent<T>, IPopoverProps<T> {
|
|
15
16
|
offset?: number;
|
|
16
17
|
buttonProps: TButtonProps;
|
|
17
18
|
placement?: Placement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TIconsContainerProps, TShareButtonProps } from './interface';
|
|
2
|
-
export declare const IconsContainer: (props: TIconsContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const IconsContainer: <T extends TToken>(props: TIconsContainerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare const ShareButton: (props: TShareButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default ShareButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { TToken } from '../../providers/Theme/interface';
|
|
3
3
|
import type { TDefaultComponent } from '../../types/components';
|
|
4
|
-
export interface TShareButtonProps extends TDefaultComponent<TShareButtonTokens> {
|
|
4
|
+
export interface TShareButtonProps<T = TToken> extends TDefaultComponent<TShareButtonTokens & T> {
|
|
5
5
|
id: string;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
ariaLabel: string;
|
|
@@ -12,7 +12,7 @@ export interface TShareButtonProps extends TDefaultComponent<TShareButtonTokens>
|
|
|
12
12
|
interface TShareButtonTokens extends TToken {
|
|
13
13
|
listDirection: 'row' | 'column';
|
|
14
14
|
}
|
|
15
|
-
export interface TIconsContainerProps extends Omit<TShareButtonProps
|
|
15
|
+
export interface TIconsContainerProps<T = TToken> extends Omit<TShareButtonProps<T>, 'ariaLabel' | 'icon'> {
|
|
16
16
|
isOpen: boolean;
|
|
17
17
|
setIsOpen: (isOpen: boolean) => void;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
2
|
import type { TSidePanelProps } from './interface';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const SidePanel: <T extends TToken>(props: TSidePanelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default SidePanel;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
4
|
+
import type { TDefaultComponent, TTransition } from '../../types/components';
|
|
4
5
|
export interface ISidePanelProps extends HTMLAttributes<HTMLElement> {
|
|
5
6
|
id: string;
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
closeBtnRender?: () => React.ReactNode;
|
|
8
|
-
TransitionAnimation?: (props:
|
|
9
|
-
PanelTransition?: (props:
|
|
9
|
+
TransitionAnimation?: (props: TTransition) => JSX.Element;
|
|
10
|
+
PanelTransition?: (props: TTransition) => JSX.Element;
|
|
10
11
|
onCloseCallBack?: () => void;
|
|
11
12
|
}
|
|
12
|
-
export type TSidePanelProps = ISidePanelProps & TDefaultComponent
|
|
13
|
+
export type TSidePanelProps<T = TToken> = ISidePanelProps & TDefaultComponent<T>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TTypographyProps } from './interface';
|
|
3
|
-
declare const Typography: ({ as: Component, themeName, tokens, customTheme, children, ...rest }: TTypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const TypographyWithForwardRef: React.ForwardRefExoticComponent<TTypographyProps<
|
|
4
|
+
declare const Typography: <T extends TToken>({ as: Component, themeName, tokens, customTheme, children, ...rest }: TTypographyProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const TypographyWithForwardRef: React.ForwardRefExoticComponent<TTypographyProps<TToken> & React.RefAttributes<HTMLElement>>;
|
|
5
6
|
export default Typography;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TVideoProps } from './interface';
|
|
2
|
-
declare const Video: (props: TVideoProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Video: <T extends TToken>(props: TVideoProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Video;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { VideoHTMLAttributes } from 'react';
|
|
2
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
3
|
import type { TDefaultComponent } from '../../types/components';
|
|
3
|
-
export interface TVideoProps extends TDefaultComponent
|
|
4
|
+
export interface TVideoProps<T = TToken> extends TDefaultComponent<T>, VideoHTMLAttributes<HTMLVideoElement> {
|
|
4
5
|
src: string;
|
|
5
6
|
type?: string;
|
|
6
7
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type TWysiwygBlockProps from './interface';
|
|
2
|
-
declare const WysiwygBlock: ({ content, themeName, ...rest }: TWysiwygBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const WysiwygBlock: <T extends TToken>({ content, themeName, ...rest }: TWysiwygBlockProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default WysiwygBlock;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
1
2
|
import type { TDefaultComponent } from '../../types/components';
|
|
2
|
-
interface TWysiwygBlockProps extends TDefaultComponent {
|
|
3
|
+
interface TWysiwygBlockProps<T = TToken> extends TDefaultComponent<T> {
|
|
3
4
|
content: string;
|
|
4
5
|
}
|
|
5
6
|
export default TWysiwygBlockProps;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { AriaCheckboxProps } from 'react-aria';
|
|
3
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import type { TDefaultComponent } from '../../../types/components';
|
|
4
|
-
export interface TCheckboxProps extends TDefaultComponent
|
|
5
|
+
export interface TCheckboxProps<T = TToken> extends TDefaultComponent<T>, AriaCheckboxProps {
|
|
5
6
|
label: string;
|
|
6
7
|
isError?: boolean;
|
|
7
8
|
errorMessage?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TCheckboxProps } from './Checkbox.interface';
|
|
2
|
-
declare const Checkbox: (props: TCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Checkbox: <T extends TToken>(props: TCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Checkbox;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TCheckboxGroupProps } from './interface';
|
|
2
|
-
declare const CheckboxGroup: (props: TCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CheckboxGroup: <T extends TToken>(props: TCheckboxGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default CheckboxGroup;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { AriaCheckboxGroupItemProps } from 'react-aria';
|
|
3
3
|
import type { CheckboxGroupProps } from 'react-stately';
|
|
4
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
4
5
|
import type { TDefaultComponent } from '../../../types/components';
|
|
5
6
|
import type { TCheckboxProps } from '../Checkbox/Checkbox.interface';
|
|
6
|
-
export interface TCheckboxGroupProps extends TDefaultComponent
|
|
7
|
+
export interface TCheckboxGroupProps<T = TToken> extends TDefaultComponent<T>, CheckboxGroupProps {
|
|
7
8
|
children: React.ReactNode;
|
|
8
9
|
isError?: boolean;
|
|
9
10
|
isDisabled?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TDatePickerProps } from './interface';
|
|
2
|
-
declare function DatePicker({ popoverPlacement, tokens, customTheme, themeName, icon, description, buttonLabel, ...rest }: TDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function DatePicker<T extends TToken>({ popoverPlacement, tokens, customTheme, themeName, icon, description, buttonLabel, ...rest }: TDatePickerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default DatePicker;
|
|
@@ -4,13 +4,14 @@ import type { RangeValue } from '@react-types/shared';
|
|
|
4
4
|
import type React from 'react';
|
|
5
5
|
import type { AriaPopoverProps } from 'react-aria';
|
|
6
6
|
import type { OverlayTriggerState } from 'react-stately';
|
|
7
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
7
8
|
import type { TDefaultComponent } from '../../../types/components';
|
|
8
9
|
export interface TDateSegmentProps {
|
|
9
10
|
segment: DateSegment;
|
|
10
11
|
state: DateFieldState;
|
|
11
12
|
}
|
|
12
13
|
type PopoverPlacement = 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' | 'right' | 'right top' | 'right bottom' | 'end' | 'end top' | 'end bottom';
|
|
13
|
-
export interface TDatePickerProps extends DatePickerStateOptions<DateValue>, TDefaultComponent {
|
|
14
|
+
export interface TDatePickerProps<T = TToken> extends DatePickerStateOptions<DateValue>, TDefaultComponent<T> {
|
|
14
15
|
label?: string;
|
|
15
16
|
popoverPlacement?: PopoverPlacement;
|
|
16
17
|
icon?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { ChangeHandler, RefCallBack } from 'react-hook-form';
|
|
3
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import type { TDefaultComponent, TReactHookForm } from '../../../types/components';
|
|
4
|
-
export type TFieldReactHookForm = TReactHookForm & TDefaultComponent
|
|
5
|
-
export interface TRadioProps extends TFieldReactHookForm {
|
|
5
|
+
export type TFieldReactHookForm<T> = TReactHookForm & TDefaultComponent<T>;
|
|
6
|
+
export interface TRadioProps<T = TToken> extends TFieldReactHookForm<T> {
|
|
6
7
|
id: string;
|
|
7
8
|
label: string;
|
|
8
9
|
name: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TRadioProps } from './Radio.interface';
|
|
2
|
-
declare const Radio: (props: TRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const ReactHookFormRadio: (props: TRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Radio: <T extends TToken>(props: TRadioProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ReactHookFormRadio: <T extends TToken>(props: TRadioProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default Radio;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TRadioGroupProps } from './interface';
|
|
2
|
-
declare const RadioGroup: (props: TRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const RadioGroup: <T extends TToken>(props: TRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default RadioGroup;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
2
3
|
import type { TDefaultComponent } from '../../../types/components';
|
|
3
|
-
export interface TRadioGroupProps extends TDefaultComponent {
|
|
4
|
+
export interface TRadioGroupProps<T = TToken> extends TDefaultComponent<T> {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
isError?: boolean;
|
|
6
7
|
isDisabled?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type TSearchProps from './interface';
|
|
2
|
-
declare const SearchField: (props: TSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const SearchField: <T extends TToken>(props: TSearchProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default SearchField;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { AriaSearchFieldProps } from 'react-aria';
|
|
3
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
3
4
|
import type { TDefaultComponent } from '../../../types/components';
|
|
4
|
-
export default interface TSearchProps extends AriaSearchFieldProps, TDefaultComponent {
|
|
5
|
+
export default interface TSearchProps<T = TToken> extends AriaSearchFieldProps, TDefaultComponent<T> {
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
ariaLabel?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { TToken } from '../../../providers/Theme/interface';
|
|
1
2
|
import type { TSelectProps } from './Select.interface';
|
|
2
|
-
declare const Select: (props: TSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Select: <T extends TToken>(props: TSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare const ReactHookFormSelect: (props: TSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default Select;
|