@okam/stack-ui 1.20.6 → 1.21.2

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.
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { TButtonProps } from '../../Button/interface';
3
+ declare const AlertsCloseButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
4
+ export default AlertsCloseButton;
@@ -0,0 +1,3 @@
1
+ import type { TAlertsItemProps } from '../interface';
2
+ declare const AlertsItem: (props: TAlertsItemProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default AlertsItem;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { TButtonProps } from '../../Button/interface';
3
+ declare const AlertsNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
4
+ export declare const AlertsNextNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
5
+ export declare const AlertsPrevNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
6
+ export default AlertsNavigationButton;
@@ -0,0 +1,3 @@
1
+ import type { TAlertsProps } from '../interface';
2
+ declare const AlertsSwiper: (props: TAlertsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertsSwiper;
@@ -0,0 +1,3 @@
1
+ import type { TAlertsProps } from './interface';
2
+ declare const Alerts: (props: TAlertsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Alerts;
@@ -0,0 +1,26 @@
1
+ import type React from 'react';
2
+ import type * as SwiperModules from 'swiper/modules';
3
+ import type { SwiperProps } from 'swiper/react';
4
+ import type { TDefaultComponent } from '../../types/components';
5
+ import type { TButtonProps } from '../Button/interface';
6
+ import type { LightboxProps } from '../Lightbox/interface';
7
+ type TAlertsNavigationProps = React.ForwardRefExoticComponent<TButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
8
+ export interface TAlertsItem {
9
+ id: string;
10
+ icon?: React.ReactNode;
11
+ title?: string;
12
+ ariaLabel?: string;
13
+ content?: React.ReactNode;
14
+ button?: TButtonProps;
15
+ }
16
+ export interface TAlertsComponentProps extends Omit<TDefaultComponent, 'children'>, Omit<SwiperProps, 'children' | 'modules'> {
17
+ alerts: TAlertsItem[];
18
+ children?: (props: TAlertsItemProps) => React.ReactNode;
19
+ modules?: (keyof typeof SwiperModules)[];
20
+ }
21
+ export type TAlertsItemProps = TAlertsItem & TDefaultComponent;
22
+ export interface TAlertsProps extends Omit<LightboxProps, 'children'>, TAlertsComponentProps {
23
+ prevButton?: TAlertsNavigationProps;
24
+ nextButton?: TAlertsNavigationProps;
25
+ }
26
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { TRangeCalendarProps } from './interface';
2
+ declare function RangeCalendar({ buttons, tokens, customTheme, themeName, ...rest }: TRangeCalendarProps): import("react/jsx-runtime").JSX.Element;
3
+ export default RangeCalendar;
@@ -3,16 +3,18 @@ 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 { TDefaultComponent } from '../../types/components';
6
+ import type { TDefaultComponent, TTransition } from '../../types/components';
7
7
  import type { TButtonProps } from '../Button/interface';
8
- export interface LightboxProps extends Omit<AriaOverlayTriggerProps, 'type'> {
8
+ type TCloseButtonProps = React.ForwardRefExoticComponent<TButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>> | FunctionComponent<TButtonProps>;
9
+ export interface LightboxProps extends TDefaultComponent, OverlayTriggerProps, Omit<AriaOverlayTriggerProps, 'type'> {
9
10
  closeButtonAriaLabel?: string;
10
11
  setOpen?: Dispatch<SetStateAction<boolean>>;
12
+ closeButton?: TCloseButtonProps;
13
+ transitionComponent?: FunctionComponent<TTransition>;
11
14
  }
12
- export interface TLightboxProps extends OverlayTriggerProps, LightboxProps, TDefaultComponent {
15
+ export interface TLightboxProps extends LightboxProps {
13
16
  label: string;
14
17
  thumbnailContent: React.ReactNode;
15
- closeButton?: FunctionComponent<TButtonProps>;
16
18
  }
17
19
  export interface LightboxAria {
18
20
  overlayProps: DOMAttributes & {
@@ -20,3 +22,4 @@ export interface LightboxAria {
20
22
  };
21
23
  labelProps: DOMAttributes;
22
24
  }
25
+ export {};
@@ -1,14 +1,12 @@
1
1
  import type { OverlayTriggerState } from '@react-stately/overlays';
2
2
  import type React from 'react';
3
+ import type { FunctionComponent } from 'react';
3
4
  import type { AriaDialogProps, AriaModalOverlayProps } from 'react-aria';
4
- import type { TDefaultComponent } from '../../types/components';
5
+ import type { TDefaultComponent, TTransition } from '../../types/components';
5
6
  export interface TModalProps extends AriaModalOverlayProps, TDefaultComponent {
6
7
  state: OverlayTriggerState;
7
8
  children: React.ReactNode;
8
- transitionComponent?: (props: {
9
- isVisible: boolean;
10
- children: React.ReactNode;
11
- }) => JSX.Element;
9
+ transitionComponent?: FunctionComponent<TTransition>;
12
10
  }
13
11
  export interface TModalOverlayProps extends AriaModalOverlayProps, TDefaultComponent {
14
12
  children: React.ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { TDateRangePickerProps } from './interface';
2
+ declare function DateRangePicker(props: TDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
3
+ export default DateRangePicker;
package/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export { default as CheckboxGroupItem } from './components/fields/CheckboxGroup/
17
17
  export { default as TextArea, ReactHookFormTextArea } from './components/fields/TextArea';
18
18
  export { default as TextInputField, ReactHookFormInput } from './components/fields/TextInputField';
19
19
  export { default as DatePicker } from './components/fields/DatePicker';
20
+ export { default as DateRangePicker } from './components/fields/DatePicker/DateRangePicker';
20
21
  export { default as Box, BoxWithForwardRef } from './components/Box';
21
22
  export { default as Calendar } from './components/Calendar';
22
23
  export { default as Modal } from './components/Modal';
@@ -27,6 +28,8 @@ export { default as Menu } from './components/Menu/Menu';
27
28
  export { default as MenuSidePanel } from './components/Menu/MenuSidePanel';
28
29
  export { default as MenuItems } from './components/Menu/components/MenuItems';
29
30
  export { default as TabContainer } from './components/Menu/components/TabContainer';
31
+ export { default as Alerts } from './components/Alerts';
32
+ export { default as AlertsItem } from './components/Alerts/components/AlertsItem';
30
33
  export { default as SelectItem } from './components/fields/SelectItem/SelectItem';
31
34
  export { default as DirectusImg } from './components/DirectusImg';
32
35
  export { default as Img } from './components/Img';