@mindly/ui-components 4.8.1 → 4.9.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.
Files changed (102) hide show
  1. package/dist/cjs/index.js +4 -4
  2. package/dist/cjs/lib2/features/CardModal/CardModal.d.ts +3 -2
  3. package/dist/cjs/lib2/features/SlotsGrid/SlotsGrid.d.ts +4 -0
  4. package/dist/cjs/lib2/features/SlotsGrid/SlotsGrid.stories.d.ts +6 -0
  5. package/dist/cjs/lib2/features/SlotsGrid/SlotsGridItem.d.ts +4 -0
  6. package/dist/cjs/lib2/features/SlotsGrid/index.d.ts +1 -0
  7. package/dist/cjs/lib2/features/SlotsGrid/styles.d.ts +59 -0
  8. package/dist/cjs/lib2/features/SlotsGrid/types.d.ts +15 -0
  9. package/dist/cjs/lib2/features/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/assets/icons/IconArrowLeft.d.ts +7 -0
  11. package/dist/cjs/lib2/shared/assets/icons/IconArrowRight.d.ts +7 -0
  12. package/dist/cjs/lib2/shared/assets/icons/IconBeachAccess.d.ts +7 -0
  13. package/dist/cjs/lib2/shared/assets/icons/IconCalendar.d.ts +7 -0
  14. package/dist/cjs/lib2/shared/assets/icons/IconCalendarMonth.d.ts +7 -0
  15. package/dist/cjs/lib2/shared/assets/icons/IconChatOutline.d.ts +7 -0
  16. package/dist/cjs/lib2/shared/assets/icons/IconEditCalendar.d.ts +7 -0
  17. package/dist/cjs/lib2/shared/assets/icons/IconInvisible.d.ts +7 -0
  18. package/dist/cjs/lib2/shared/assets/icons/IconLogout.d.ts +7 -0
  19. package/dist/cjs/lib2/shared/assets/icons/IconPlus.d.ts +4 -0
  20. package/dist/cjs/lib2/shared/assets/icons/IconProfileChecked.d.ts +7 -0
  21. package/dist/cjs/lib2/shared/assets/icons/IconProfileCircle.d.ts +7 -0
  22. package/dist/cjs/lib2/shared/assets/icons/IconProfileSetting.d.ts +7 -0
  23. package/dist/cjs/lib2/shared/assets/icons/IconProfileUnderReview.d.ts +7 -0
  24. package/dist/cjs/lib2/shared/assets/icons/IconSettings.d.ts +7 -0
  25. package/dist/cjs/lib2/shared/assets/icons/IconTime.d.ts +7 -0
  26. package/dist/cjs/lib2/shared/assets/icons/IconVerifiedUser.d.ts +7 -0
  27. package/dist/cjs/lib2/shared/assets/icons/IconVisible.d.ts +7 -0
  28. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +28 -10
  29. package/dist/cjs/lib2/shared/ui/Calendar/Calendar.d.ts +2 -0
  30. package/dist/cjs/lib2/shared/ui/Calendar/CalendarButton.d.ts +5 -0
  31. package/dist/cjs/lib2/shared/ui/Calendar/CalendarCell.d.ts +18 -0
  32. package/dist/cjs/lib2/shared/ui/Calendar/CalendarGrid.d.ts +5 -0
  33. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +2 -0
  34. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +5 -0
  35. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +1 -0
  36. package/dist/cjs/lib2/shared/ui/Calendar/index.d.ts +4 -0
  37. package/dist/cjs/lib2/shared/ui/Calendar/styles.d.ts +140 -0
  38. package/dist/cjs/lib2/shared/ui/Calendar/types.d.ts +37 -0
  39. package/dist/cjs/lib2/shared/ui/Calendar/utils/getWeekDayNames.d.ts +1 -0
  40. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  41. package/dist/esm/index.js +4 -4
  42. package/dist/esm/lib2/features/CardModal/CardModal.d.ts +3 -2
  43. package/dist/esm/lib2/features/SlotsGrid/SlotsGrid.d.ts +4 -0
  44. package/dist/esm/lib2/features/SlotsGrid/SlotsGrid.stories.d.ts +6 -0
  45. package/dist/esm/lib2/features/SlotsGrid/SlotsGridItem.d.ts +4 -0
  46. package/dist/esm/lib2/features/SlotsGrid/index.d.ts +1 -0
  47. package/dist/esm/lib2/features/SlotsGrid/styles.d.ts +59 -0
  48. package/dist/esm/lib2/features/SlotsGrid/types.d.ts +15 -0
  49. package/dist/esm/lib2/features/index.d.ts +1 -0
  50. package/dist/esm/lib2/shared/assets/icons/IconArrowLeft.d.ts +7 -0
  51. package/dist/esm/lib2/shared/assets/icons/IconArrowRight.d.ts +7 -0
  52. package/dist/esm/lib2/shared/assets/icons/IconBeachAccess.d.ts +7 -0
  53. package/dist/esm/lib2/shared/assets/icons/IconCalendar.d.ts +7 -0
  54. package/dist/esm/lib2/shared/assets/icons/IconCalendarMonth.d.ts +7 -0
  55. package/dist/esm/lib2/shared/assets/icons/IconChatOutline.d.ts +7 -0
  56. package/dist/esm/lib2/shared/assets/icons/IconEditCalendar.d.ts +7 -0
  57. package/dist/esm/lib2/shared/assets/icons/IconInvisible.d.ts +7 -0
  58. package/dist/esm/lib2/shared/assets/icons/IconLogout.d.ts +7 -0
  59. package/dist/esm/lib2/shared/assets/icons/IconPlus.d.ts +4 -0
  60. package/dist/esm/lib2/shared/assets/icons/IconProfileChecked.d.ts +7 -0
  61. package/dist/esm/lib2/shared/assets/icons/IconProfileCircle.d.ts +7 -0
  62. package/dist/esm/lib2/shared/assets/icons/IconProfileSetting.d.ts +7 -0
  63. package/dist/esm/lib2/shared/assets/icons/IconProfileUnderReview.d.ts +7 -0
  64. package/dist/esm/lib2/shared/assets/icons/IconSettings.d.ts +7 -0
  65. package/dist/esm/lib2/shared/assets/icons/IconTime.d.ts +7 -0
  66. package/dist/esm/lib2/shared/assets/icons/IconVerifiedUser.d.ts +7 -0
  67. package/dist/esm/lib2/shared/assets/icons/IconVisible.d.ts +7 -0
  68. package/dist/esm/lib2/shared/assets/icons/index.d.ts +28 -10
  69. package/dist/esm/lib2/shared/ui/Calendar/Calendar.d.ts +2 -0
  70. package/dist/esm/lib2/shared/ui/Calendar/CalendarButton.d.ts +5 -0
  71. package/dist/esm/lib2/shared/ui/Calendar/CalendarCell.d.ts +18 -0
  72. package/dist/esm/lib2/shared/ui/Calendar/CalendarGrid.d.ts +5 -0
  73. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +2 -0
  74. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +5 -0
  75. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +1 -0
  76. package/dist/esm/lib2/shared/ui/Calendar/index.d.ts +4 -0
  77. package/dist/esm/lib2/shared/ui/Calendar/styles.d.ts +140 -0
  78. package/dist/esm/lib2/shared/ui/Calendar/types.d.ts +37 -0
  79. package/dist/esm/lib2/shared/ui/Calendar/utils/getWeekDayNames.d.ts +1 -0
  80. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  81. package/dist/index.d.ts +207 -62
  82. package/package.json +1 -1
  83. /package/dist/cjs/lib2/shared/assets/icons/{iconCheckboxChecked.d.ts → IconCheckboxChecked.d.ts} +0 -0
  84. /package/dist/cjs/lib2/shared/assets/icons/{iconCheckboxUnchecked.d.ts → IconCheckboxUnchecked.d.ts} +0 -0
  85. /package/dist/cjs/lib2/shared/assets/icons/{iconClose.d.ts → IconClose.d.ts} +0 -0
  86. /package/dist/cjs/lib2/shared/assets/icons/{iconLanguage.d.ts → IconLanguage.d.ts} +0 -0
  87. /package/dist/cjs/lib2/shared/assets/icons/{iconLeftArrow.d.ts → IconLeftArrow.d.ts} +0 -0
  88. /package/dist/cjs/lib2/shared/assets/icons/{iconPause.d.ts → IconPause.d.ts} +0 -0
  89. /package/dist/cjs/lib2/shared/assets/icons/{iconResume.d.ts → IconResume.d.ts} +0 -0
  90. /package/dist/cjs/lib2/shared/assets/icons/{iconStar.d.ts → IconStar.d.ts} +0 -0
  91. /package/dist/cjs/lib2/shared/assets/icons/{iconStarFilled.d.ts → IconStarFilled.d.ts} +0 -0
  92. /package/dist/cjs/lib2/shared/assets/icons/{iconSuccess.d.ts → IconSuccess.d.ts} +0 -0
  93. /package/dist/esm/lib2/shared/assets/icons/{iconCheckboxChecked.d.ts → IconCheckboxChecked.d.ts} +0 -0
  94. /package/dist/esm/lib2/shared/assets/icons/{iconCheckboxUnchecked.d.ts → IconCheckboxUnchecked.d.ts} +0 -0
  95. /package/dist/esm/lib2/shared/assets/icons/{iconClose.d.ts → IconClose.d.ts} +0 -0
  96. /package/dist/esm/lib2/shared/assets/icons/{iconLanguage.d.ts → IconLanguage.d.ts} +0 -0
  97. /package/dist/esm/lib2/shared/assets/icons/{iconLeftArrow.d.ts → IconLeftArrow.d.ts} +0 -0
  98. /package/dist/esm/lib2/shared/assets/icons/{iconPause.d.ts → IconPause.d.ts} +0 -0
  99. /package/dist/esm/lib2/shared/assets/icons/{iconResume.d.ts → IconResume.d.ts} +0 -0
  100. /package/dist/esm/lib2/shared/assets/icons/{iconStar.d.ts → IconStar.d.ts} +0 -0
  101. /package/dist/esm/lib2/shared/assets/icons/{iconStarFilled.d.ts → IconStarFilled.d.ts} +0 -0
  102. /package/dist/esm/lib2/shared/assets/icons/{iconSuccess.d.ts → IconSuccess.d.ts} +0 -0
@@ -1,13 +1,14 @@
1
- import React, { FC } from 'react';
1
+ import React from 'react';
2
2
  type CardModalProps = {
3
3
  isOpen: boolean;
4
4
  presentingElement?: HTMLElement;
5
5
  onDidDismiss?: () => void;
6
6
  backButton?: boolean;
7
+ canDismiss?: boolean;
7
8
  renderHeader?: (props: {
8
9
  backButton?: boolean;
9
10
  onClose: () => void;
10
11
  }) => React.ReactNode;
11
12
  };
12
- declare const CardModal: FC<CardModalProps>;
13
+ declare const CardModal: React.ForwardRefExoticComponent<CardModalProps & React.RefAttributes<HTMLIonModalElement>>;
13
14
  export default CardModal;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SlotsGridProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<SlotsGridProps>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SlotsGrid from './SlotsGrid';
3
+ declare const meta: Meta<typeof SlotsGrid>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SlotsGrid>;
6
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { SlotsGridItemProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<SlotsGridItemProps>;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as SlotsGrid } from './SlotsGrid';
@@ -0,0 +1,59 @@
1
+ export declare const slotsStyles: import("tailwind-variants").TVReturnType<{
2
+ isSelected: {
3
+ true: {};
4
+ };
5
+ isDisabled: {
6
+ true: {};
7
+ };
8
+ }, {
9
+ list: string;
10
+ listItem: string;
11
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
12
+ isSelected: {
13
+ true: {};
14
+ };
15
+ isDisabled: {
16
+ true: {};
17
+ };
18
+ }, {
19
+ isSelected: {
20
+ true: {};
21
+ };
22
+ isDisabled: {
23
+ true: {};
24
+ };
25
+ }>, {
26
+ isSelected: {
27
+ true: {};
28
+ };
29
+ isDisabled: {
30
+ true: {};
31
+ };
32
+ }, {
33
+ list: string;
34
+ listItem: string;
35
+ }, import("tailwind-variants").TVReturnType<{
36
+ isSelected: {
37
+ true: {};
38
+ };
39
+ isDisabled: {
40
+ true: {};
41
+ };
42
+ }, {
43
+ list: string;
44
+ listItem: string;
45
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
46
+ isSelected: {
47
+ true: {};
48
+ };
49
+ isDisabled: {
50
+ true: {};
51
+ };
52
+ }, {
53
+ isSelected: {
54
+ true: {};
55
+ };
56
+ isDisabled: {
57
+ true: {};
58
+ };
59
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,15 @@
1
+ export type SlotsGridProps = {
2
+ times: string[];
3
+ selectedKeys: Set<string>;
4
+ onSelectionChange: (time: string) => void;
5
+ classNameList?: string;
6
+ classNameSlot?: string;
7
+ isDisabled?: boolean;
8
+ };
9
+ export type SlotsGridItemProps = {
10
+ isSelected: boolean;
11
+ isDisabled: boolean;
12
+ time: string;
13
+ className?: string;
14
+ onSelectionChange: () => void;
15
+ };
@@ -1,3 +1,4 @@
1
1
  export * from './CountryOfOriginModal';
2
2
  export * from './ChangeLanguageModal';
3
3
  export * from './CardModal';
4
+ export * from './SlotsGrid';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconArrowLeft({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconArrowRight({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconBeachAccess({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconCalendar({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconCalendarMonth({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconChatOutline({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconEditCalendar({ color, size, ...props }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconInvisible({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconLogout({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ type IconPlusProps = React.SVGProps<any>;
3
+ export declare function IconPlus({ color, ...props }: IconPlusProps): JSX.Element;
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconProfileChecked({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconProfileCircle({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconProfileSetting({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconProfileUnderReview({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconSettings({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconTime({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconVerifiedUser({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ size?: number | string;
4
+ color?: string;
5
+ }
6
+ export declare function IconVisible({ color, size, ...other }: IconProps): JSX.Element;
7
+ export {};
@@ -1,10 +1,28 @@
1
- export * from './iconCheckboxChecked';
2
- export * from './iconCheckboxUnchecked';
3
- export * from './iconLanguage';
4
- export * from './iconStar';
5
- export * from './iconStarFilled';
6
- export * from './iconClose';
7
- export * from './iconLeftArrow';
8
- export * from './iconSuccess';
9
- export * from './iconPause';
10
- export * from './iconResume';
1
+ export * from './IconArrowLeft';
2
+ export * from './IconArrowRight';
3
+ export * from './IconBeachAccess';
4
+ export * from './IconCalendar';
5
+ export * from './IconCalendarMonth';
6
+ export * from './IconChatOutline';
7
+ export * from './IconCheckboxChecked';
8
+ export * from './IconCheckboxUnchecked';
9
+ export * from './IconClose';
10
+ export * from './IconEditCalendar';
11
+ export * from './IconInvisible';
12
+ export * from './IconLanguage';
13
+ export * from './IconLeftArrow';
14
+ export * from './IconLogout';
15
+ export * from './IconPause';
16
+ export * from './IconPlus';
17
+ export * from './IconProfileChecked';
18
+ export * from './IconProfileCircle';
19
+ export * from './IconProfileSetting';
20
+ export * from './IconProfileUnderReview';
21
+ export * from './IconResume';
22
+ export * from "./IconSettings";
23
+ export * from './IconStar';
24
+ export * from './IconStarFilled';
25
+ export * from './IconSuccess';
26
+ export * from './IconTime';
27
+ export * from './IconVerifiedUser';
28
+ export * from './IconVisible';
@@ -0,0 +1,2 @@
1
+ import { CalendarProps } from './types';
2
+ export declare function Calendar({ maxValue, defaultValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, ...props }: CalendarProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AriaButtonProps } from 'react-aria';
3
+ export declare const CalendarButton: React.ForwardRefExoticComponent<AriaButtonProps<"button"> & {
4
+ className?: string | undefined;
5
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { CalendarCellProps } from './types';
3
+ export declare const CalendarCell: React.ForwardRefExoticComponent<{
4
+ onDatePress?: ((date: Date, evt: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
5
+ locale: string;
6
+ timeZone?: string | undefined;
7
+ selectionMode?: import("react-stately").SelectionMode | undefined;
8
+ renderCustomDateContent?: ((date: Date, formattedDate: string, isSelected: boolean, isToday: boolean) => React.ReactNode) | undefined;
9
+ } & {
10
+ state: import("react-stately").CalendarState;
11
+ selectionState: Map<string, Date>;
12
+ currentMonth: import("@internationalized/date").CalendarDate;
13
+ slots?: Record<string, any[]> | undefined;
14
+ handleSelectionDateChange: (dateKey: string, date: Date) => void;
15
+ date: import("@internationalized/date").CalendarDate;
16
+ } & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const _default: React.NamedExoticComponent<CalendarCellProps>;
18
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { CalendarGridProps } from './types';
3
+ export declare function CalendarGrid({ state, selectionState, locale, isShowWeekNames, weekdayStyle, handleSelectionDateChange, selectionMode, onDatePress, offset, slots, renderCustomDateContent, ...props }: CalendarGridProps): JSX.Element;
4
+ declare const _default: React.NamedExoticComponent<CalendarGridProps>;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { CalendarProps } from './types';
2
+ export declare function VerticalCalendar({ maxValue, defaultValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ type VerticalCalendarMonthSkeletonProps = {
2
+ days: number;
3
+ };
4
+ export declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function VerticalCalendarSkeleton(): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './Calendar';
2
+ export * from './VerticalCalendar';
3
+ export * from './VerticalCalendarMonthSkeleton';
4
+ export * from './VerticalCalendarSkeleton';
@@ -0,0 +1,140 @@
1
+ export declare const calendarStyles: import("tailwind-variants").TVReturnType<{
2
+ isDisabled: {
3
+ true: {};
4
+ };
5
+ isToday: {
6
+ true: {};
7
+ };
8
+ isSelected: {
9
+ true: {};
10
+ };
11
+ isUnavailable: {
12
+ true: {};
13
+ };
14
+ fullWidth: {
15
+ true: {};
16
+ };
17
+ }, {
18
+ header: string;
19
+ title: string;
20
+ week: string;
21
+ weekday: string;
22
+ daysOfWeek: string;
23
+ day: string;
24
+ navigation: string;
25
+ navigationButton: string;
26
+ }, "flex-1 max-w-xs", import("tailwind-variants/dist/config").TVConfig<{
27
+ isDisabled: {
28
+ true: {};
29
+ };
30
+ isToday: {
31
+ true: {};
32
+ };
33
+ isSelected: {
34
+ true: {};
35
+ };
36
+ isUnavailable: {
37
+ true: {};
38
+ };
39
+ fullWidth: {
40
+ true: {};
41
+ };
42
+ }, {
43
+ isDisabled: {
44
+ true: {};
45
+ };
46
+ isToday: {
47
+ true: {};
48
+ };
49
+ isSelected: {
50
+ true: {};
51
+ };
52
+ isUnavailable: {
53
+ true: {};
54
+ };
55
+ fullWidth: {
56
+ true: {};
57
+ };
58
+ }>, {
59
+ isDisabled: {
60
+ true: {};
61
+ };
62
+ isToday: {
63
+ true: {};
64
+ };
65
+ isSelected: {
66
+ true: {};
67
+ };
68
+ isUnavailable: {
69
+ true: {};
70
+ };
71
+ fullWidth: {
72
+ true: {};
73
+ };
74
+ }, {
75
+ header: string;
76
+ title: string;
77
+ week: string;
78
+ weekday: string;
79
+ daysOfWeek: string;
80
+ day: string;
81
+ navigation: string;
82
+ navigationButton: string;
83
+ }, import("tailwind-variants").TVReturnType<{
84
+ isDisabled: {
85
+ true: {};
86
+ };
87
+ isToday: {
88
+ true: {};
89
+ };
90
+ isSelected: {
91
+ true: {};
92
+ };
93
+ isUnavailable: {
94
+ true: {};
95
+ };
96
+ fullWidth: {
97
+ true: {};
98
+ };
99
+ }, {
100
+ header: string;
101
+ title: string;
102
+ week: string;
103
+ weekday: string;
104
+ daysOfWeek: string;
105
+ day: string;
106
+ navigation: string;
107
+ navigationButton: string;
108
+ }, "flex-1 max-w-xs", import("tailwind-variants/dist/config").TVConfig<{
109
+ isDisabled: {
110
+ true: {};
111
+ };
112
+ isToday: {
113
+ true: {};
114
+ };
115
+ isSelected: {
116
+ true: {};
117
+ };
118
+ isUnavailable: {
119
+ true: {};
120
+ };
121
+ fullWidth: {
122
+ true: {};
123
+ };
124
+ }, {
125
+ isDisabled: {
126
+ true: {};
127
+ };
128
+ isToday: {
129
+ true: {};
130
+ };
131
+ isSelected: {
132
+ true: {};
133
+ };
134
+ isUnavailable: {
135
+ true: {};
136
+ };
137
+ fullWidth: {
138
+ true: {};
139
+ };
140
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import { AriaCalendarGridProps, AriaCalendarProps, DateValue } from 'react-aria';
3
+ import { CalendarState, SelectionBehavior, SelectionMode } from 'react-stately';
4
+ import { CalendarDate } from '@internationalized/date';
5
+ type BaseTypeProps = {
6
+ onDatePress?: (date: Date, evt: React.MouseEvent<HTMLButtonElement>) => void;
7
+ locale: string;
8
+ timeZone?: string;
9
+ selectionMode?: SelectionMode;
10
+ renderCustomDateContent?: (date: Date, formattedDate: string, isSelected: boolean, isToday: boolean) => React.ReactNode;
11
+ };
12
+ export type CalendarProps = AriaCalendarProps<DateValue> & BaseTypeProps & {
13
+ slots?: Record<string, any[]>;
14
+ fullWidth?: boolean;
15
+ isShowWeekNames?: boolean;
16
+ isShowMonthNavigation?: boolean;
17
+ defaultSelectDates: Date[];
18
+ selectionBehavior?: SelectionBehavior;
19
+ onSelectionChange: (dates: Date[]) => void;
20
+ };
21
+ export type CalendarGridProps = AriaCalendarGridProps & BaseTypeProps & {
22
+ state: CalendarState;
23
+ selectionState: Map<string, Date>;
24
+ slots?: Record<string, any[]>;
25
+ handleSelectionDateChange: (dateKey: string, date: Date) => void;
26
+ isShowWeekNames: boolean;
27
+ offset?: Record<string, any>;
28
+ };
29
+ export type CalendarCellProps = BaseTypeProps & {
30
+ state: CalendarState;
31
+ selectionState: Map<string, Date>;
32
+ currentMonth: CalendarDate;
33
+ slots?: Record<string, any[]>;
34
+ handleSelectionDateChange: (dateKey: string, date: Date) => void;
35
+ date: CalendarDate;
36
+ };
37
+ export {};
@@ -0,0 +1 @@
1
+ export declare function getWeekDates(locale: string, timeZone?: string): string[];
@@ -10,6 +10,7 @@ export * from './Badge';
10
10
  export * from './AppHeader_v2';
11
11
  export * from './ListBoxItem';
12
12
  export * from './ListBox';
13
+ export * from './Calendar';
13
14
  export * from './Textarea_v2';
14
15
  export * from './Rating';
15
16
  export * from './IconButton';