@tecsinapse/cortex-react 1.2.2-beta.1 → 1.2.2-beta.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.
Files changed (53) hide show
  1. package/dist/cjs/components/Calendar.js +22 -0
  2. package/dist/cjs/components/CalendarCell.js +51 -0
  3. package/dist/cjs/components/CalendarGrid.js +23 -0
  4. package/dist/cjs/components/CalendarGridBodyRows.js +12 -0
  5. package/dist/cjs/components/CalendarGridHeaderRow.js +12 -0
  6. package/dist/cjs/components/CalendarHeader.js +40 -0
  7. package/dist/cjs/components/GroupButton.js +2 -1
  8. package/dist/cjs/components/ProgressBar.js +2 -1
  9. package/dist/cjs/components/RangeCalendar.js +44 -0
  10. package/dist/cjs/components/SearchInput.js +17 -11
  11. package/dist/cjs/hooks/useCalendar.js +27 -0
  12. package/dist/cjs/hooks/useCalendarCell.js +35 -0
  13. package/dist/cjs/hooks/useCalendarGrid.js +14 -0
  14. package/dist/cjs/index.js +31 -21
  15. package/dist/cjs/service/SnackbarSonner.js +16 -10
  16. package/dist/cjs/styles/calendar-cell.js +40 -0
  17. package/dist/esm/components/Calendar.js +20 -0
  18. package/dist/esm/components/CalendarCell.js +49 -0
  19. package/dist/esm/components/CalendarGrid.js +21 -0
  20. package/dist/esm/components/CalendarGridBodyRows.js +10 -0
  21. package/dist/esm/components/CalendarGridHeaderRow.js +10 -0
  22. package/dist/esm/components/CalendarHeader.js +38 -0
  23. package/dist/esm/components/GroupButton.js +2 -1
  24. package/dist/esm/components/ProgressBar.js +2 -1
  25. package/dist/esm/components/RangeCalendar.js +42 -0
  26. package/dist/esm/components/SearchInput.js +17 -11
  27. package/dist/esm/hooks/useCalendar.js +25 -0
  28. package/dist/esm/hooks/useCalendarCell.js +33 -0
  29. package/dist/esm/hooks/useCalendarGrid.js +12 -0
  30. package/dist/esm/index.js +15 -10
  31. package/dist/esm/service/SnackbarSonner.js +16 -10
  32. package/dist/esm/styles/calendar-cell.js +38 -0
  33. package/dist/types/components/Calendar.d.ts +6 -0
  34. package/dist/types/components/CalendarCell.d.ts +8 -0
  35. package/dist/types/components/CalendarGrid.d.ts +6 -0
  36. package/dist/types/components/CalendarGridBodyRows.d.ts +6 -0
  37. package/dist/types/components/CalendarGridHeaderRow.d.ts +5 -0
  38. package/dist/types/components/CalendarHeader.d.ts +6 -0
  39. package/dist/types/components/RangeCalendar.d.ts +10 -0
  40. package/dist/types/components/index.d.ts +12 -10
  41. package/dist/types/hooks/index.d.ts +3 -0
  42. package/dist/types/hooks/useCalendar.d.ts +10 -0
  43. package/dist/types/hooks/useCalendarCell.d.ts +18 -0
  44. package/dist/types/hooks/useCalendarGrid.d.ts +10 -0
  45. package/dist/types/styles/calendar-cell.d.ts +199 -0
  46. package/dist/types/styles/index.d.ts +2 -1
  47. package/dist/types/tests/Calendar.test.d.ts +1 -0
  48. package/dist/types/tests/CalendarCell.test.d.ts +1 -0
  49. package/dist/types/tests/CalendarGridBodyRows.test.d.ts +1 -0
  50. package/dist/types/tests/CalendarGridHeaderRow.test.d.ts +1 -0
  51. package/dist/types/tests/CalendarHeader.test.d.ts +1 -0
  52. package/dist/types/tests/useCalendarCell.test.d.ts +1 -0
  53. package/package.json +4 -2
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { FaChevronLeft, FaChevronRight } from 'react-icons/fa';
3
+ import { Button } from './Button.js';
4
+
5
+ const CalendarHeader = ({
6
+ onClickPrevButton,
7
+ onClickNextButton,
8
+ title
9
+ }) => {
10
+ return /* @__PURE__ */ React.createElement(
11
+ "div",
12
+ {
13
+ className: "flex flex-row justify-between items-center gap-x-deca bg-miscellaneous-body p-mili",
14
+ "data-testid": "calendar-header"
15
+ },
16
+ /* @__PURE__ */ React.createElement(
17
+ Button,
18
+ {
19
+ onClick: onClickPrevButton,
20
+ variants: { variant: "text", intent: "secondary", size: "small" },
21
+ "data-testid": "calendar-header-prev-button"
22
+ },
23
+ /* @__PURE__ */ React.createElement(FaChevronLeft, null)
24
+ ),
25
+ /* @__PURE__ */ React.createElement("span", { className: "font-bold capitalize" }, title),
26
+ /* @__PURE__ */ React.createElement(
27
+ Button,
28
+ {
29
+ onClick: onClickNextButton,
30
+ variants: { variant: "text", intent: "secondary", size: "small" },
31
+ "data-testid": "calendar-header-next-button"
32
+ },
33
+ /* @__PURE__ */ React.createElement(FaChevronRight, null)
34
+ )
35
+ );
36
+ };
37
+
38
+ export { CalendarHeader };
@@ -1,7 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React from 'react';
3
- import '../styles/progressBar.js';
3
+ import '../styles/calendar-cell.js';
4
4
  import { groupButton } from '../styles/groupButton.js';
5
+ import '../styles/progressBar.js';
5
6
 
6
7
  const { button, container, active, inactive, firstButton, lastButton } = groupButton();
7
8
  const GroupButton = (props) => {
@@ -1,7 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React, { useState, useEffect, useCallback } from 'react';
3
- import { progressBarFilled } from '../styles/progressBar.js';
3
+ import '../styles/calendar-cell.js';
4
4
  import '../styles/groupButton.js';
5
+ import { progressBarFilled } from '../styles/progressBar.js';
5
6
 
6
7
  const ProgressBar = ({
7
8
  segments: _segments = 1,
@@ -0,0 +1,42 @@
1
+ import { createCalendar, CalendarDate, getLocalTimeZone } from '@internationalized/date';
2
+ import React from 'react';
3
+ import { useLocale, useRangeCalendar } from 'react-aria';
4
+ import { useRangeCalendarState } from 'react-stately';
5
+ import { CalendarGrid } from './CalendarGrid.js';
6
+ import { CalendarHeader } from './CalendarHeader.js';
7
+
8
+ const RangeCalendar = ({ value, onChange }) => {
9
+ const { locale } = useLocale();
10
+ const state = useRangeCalendarState({
11
+ locale,
12
+ createCalendar,
13
+ defaultValue: {
14
+ start: new CalendarDate(
15
+ value.start.getFullYear(),
16
+ value.start.getMonth(),
17
+ value.start.getDate()
18
+ ),
19
+ end: new CalendarDate(
20
+ value.end.getFullYear(),
21
+ value.end.getMonth(),
22
+ value.end.getDate()
23
+ )
24
+ },
25
+ onChange: (value2) => onChange({
26
+ start: value2.start.toDate(getLocalTimeZone()),
27
+ end: value2.end.toDate(getLocalTimeZone())
28
+ })
29
+ });
30
+ const ref = React.useRef(null);
31
+ const { calendarProps, title } = useRangeCalendar({}, state, ref);
32
+ return /* @__PURE__ */ React.createElement("div", { ...calendarProps, className: "calendar", ref }, /* @__PURE__ */ React.createElement(
33
+ CalendarHeader,
34
+ {
35
+ onClickPrevButton: () => state.focusPreviousPage(),
36
+ onClickNextButton: () => state.focusNextPage(),
37
+ title
38
+ }
39
+ ), /* @__PURE__ */ React.createElement(CalendarGrid, { state }));
40
+ };
41
+
42
+ export { RangeCalendar };
@@ -1,25 +1,31 @@
1
1
  import React, { useState, useEffect } from 'react';
2
+ import 'clsx';
2
3
  import './Badge.js';
3
- import { Button } from './Button.js';
4
+ import './BaseSnackbar.js';
5
+ import 'react-icons/md';
4
6
  import './Card.js';
7
+ import { Button } from './Button.js';
8
+ import '@internationalized/date';
9
+ import 'react-aria';
10
+ import 'react-stately';
11
+ import { useDebouncedState } from '../hooks/useDebouncedState.js';
12
+ import './CalendarCell.js';
13
+ import '@tecsinapse/cortex-core';
14
+ import 'react-icons/fa';
15
+ import 'react-icons/io';
16
+ import './GroupButton.js';
5
17
  import './Hint.js';
6
18
  import { Input } from './Input.js';
7
19
  import './Modal.js';
20
+ import '../styles/calendar-cell.js';
21
+ import '../styles/groupButton.js';
22
+ import '../styles/progressBar.js';
8
23
  import './Select.js';
9
- import './BaseSnackbar.js';
10
24
  import './Tag.js';
11
- import './Toggle.js';
12
25
  import './TextArea.js';
13
- import '@tecsinapse/cortex-core';
14
- import 'react-icons/md';
15
- import 'clsx';
16
- import '../styles/progressBar.js';
17
- import '../styles/groupButton.js';
18
- import './GroupButton.js';
19
- import 'react-icons/io';
26
+ import './Toggle.js';
20
27
  import { AiOutlineLoading } from 'react-icons/ai';
21
28
  import { IoSearchOutline } from 'react-icons/io5';
22
- import { useDebouncedState } from '../hooks/useDebouncedState.js';
23
29
 
24
30
  const inputFace = "bg-white w-full";
25
31
  const inputLeft = "flex items-center";
@@ -0,0 +1,25 @@
1
+ import { createCalendar, CalendarDate, getLocalTimeZone } from '@internationalized/date';
2
+ import { useLocale, useCalendar as useCalendar$1 } from 'react-aria';
3
+ import { useCalendarState } from 'react-stately';
4
+
5
+ const useCalendar = ({ value, onChange }) => {
6
+ const { locale } = useLocale();
7
+ const state = useCalendarState({
8
+ locale,
9
+ createCalendar,
10
+ defaultValue: new CalendarDate(
11
+ value.getFullYear(),
12
+ value.getMonth(),
13
+ value.getDate()
14
+ ),
15
+ onChange: (value2) => onChange(value2.toDate(getLocalTimeZone()))
16
+ });
17
+ const { calendarProps, title } = useCalendar$1({}, state);
18
+ return {
19
+ calendarProps,
20
+ title,
21
+ state
22
+ };
23
+ };
24
+
25
+ export { useCalendar };
@@ -0,0 +1,33 @@
1
+ import { isSameDay } from '@internationalized/date';
2
+ import { useRef } from 'react';
3
+ import { useCalendarCell as useCalendarCell$1 } from 'react-aria';
4
+
5
+ const useCalendarCell = ({ state, date }) => {
6
+ const ref = useRef(null);
7
+ const {
8
+ cellProps,
9
+ buttonProps,
10
+ isSelected,
11
+ isOutsideVisibleRange,
12
+ formattedDate
13
+ } = useCalendarCell$1({ date }, state, ref);
14
+ const rangeStateHighlitedRange = state?.highlightedRange;
15
+ const isSameDayStart = rangeStateHighlitedRange ? isSameDay(date, state?.highlightedRange?.start) : void 0;
16
+ const isSameDayEnd = rangeStateHighlitedRange ? isSameDay(date, state?.highlightedRange?.end) : void 0;
17
+ const isSelectionStart = isSameDayStart && !isSameDayEnd;
18
+ const isSelectionEnd = isSameDayEnd && !isSameDayStart;
19
+ const inRange = date > rangeStateHighlitedRange?.start && date < rangeStateHighlitedRange?.end;
20
+ return {
21
+ ref,
22
+ cellProps,
23
+ buttonProps,
24
+ isSelected,
25
+ isOutsideVisibleRange,
26
+ formattedDate,
27
+ isSelectionStart,
28
+ isSelectionEnd,
29
+ inRange
30
+ };
31
+ };
32
+
33
+ export { useCalendarCell };
@@ -0,0 +1,12 @@
1
+ import { useCalendarGrid as useCalendarGrid$1 } from 'react-aria';
2
+
3
+ const useCalendarGrid = ({ state }) => {
4
+ const { gridProps, headerProps, weekDays } = useCalendarGrid$1({}, state);
5
+ return {
6
+ gridProps,
7
+ headerProps,
8
+ weekDays
9
+ };
10
+ };
11
+
12
+ export { useCalendarGrid };
package/dist/esm/index.js CHANGED
@@ -1,21 +1,26 @@
1
+ export { Avatar } from './components/Avatar.js';
1
2
  export { Badge, BadgeAnchor } from './components/Badge.js';
3
+ export { BaseSnackbar } from './components/BaseSnackbar.js';
4
+ export { Breadcrumbs } from './components/Breadcrumbs.js';
2
5
  export { Button } from './components/Button.js';
6
+ export { Calendar } from './components/Calendar.js';
3
7
  export { Card } from './components/Card.js';
8
+ export { DefaultSnack } from './components/DefaultSnack.js';
9
+ export { Drawer } from './components/Drawer.js';
10
+ export { GroupButton } from './components/GroupButton.js';
4
11
  export { Hint } from './components/Hint.js';
5
12
  export { Box, Face, Input, Left, Right, Root } from './components/Input.js';
6
13
  export { Modal } from './components/Modal.js';
14
+ export { ProgressBar } from './components/ProgressBar.js';
15
+ export { RangeCalendar } from './components/RangeCalendar.js';
7
16
  export { Select } from './components/Select.js';
8
- export { BaseSnackbar } from './components/BaseSnackbar.js';
17
+ export { Skeleton } from './components/Skeleton.js';
18
+ export { TCell, TFoot, THead, THeadCell, TRow, TRowHeader, Table, Td } from './components/Table.js';
9
19
  export { Tag } from './components/Tag.js';
10
- export { Toggle } from './components/Toggle.js';
11
20
  export { TextArea } from './components/TextArea.js';
12
- export { TCell, TFoot, THead, THeadCell, TRow, TRowHeader, Table, Td } from './components/Table.js';
13
- export { Drawer } from './components/Drawer.js';
14
- export { Breadcrumbs } from './components/Breadcrumbs.js';
15
- export { Avatar } from './components/Avatar.js';
16
- export { Skeleton } from './components/Skeleton.js';
17
- export { ProgressBar } from './components/ProgressBar.js';
18
- export { GroupButton } from './components/GroupButton.js';
19
- export { DefaultSnack } from './components/DefaultSnack.js';
21
+ export { Toggle } from './components/Toggle.js';
20
22
  export { SnackbarSonner } from './service/SnackbarSonner.js';
23
+ export { useCalendar } from './hooks/useCalendar.js';
24
+ export { useCalendarCell } from './hooks/useCalendarCell.js';
25
+ export { useCalendarGrid } from './hooks/useCalendarGrid.js';
21
26
  export { useDebouncedState } from './hooks/useDebouncedState.js';
@@ -1,23 +1,29 @@
1
1
  import { toast } from 'sonner';
2
2
  import React from 'react';
3
+ import 'clsx';
3
4
  import '../components/Badge.js';
4
- import '../components/Button.js';
5
+ import '../components/BaseSnackbar.js';
6
+ import 'react-icons/md';
5
7
  import '../components/Card.js';
8
+ import '../components/Button.js';
9
+ import '@internationalized/date';
10
+ import 'react-aria';
11
+ import 'react-stately';
12
+ import '../components/CalendarCell.js';
13
+ import '@tecsinapse/cortex-core';
14
+ import 'react-icons/fa';
15
+ import { DefaultSnack } from '../components/DefaultSnack.js';
16
+ import '../components/GroupButton.js';
6
17
  import '../components/Hint.js';
7
18
  import '../components/Input.js';
8
19
  import '../components/Modal.js';
20
+ import '../styles/calendar-cell.js';
21
+ import '../styles/groupButton.js';
22
+ import '../styles/progressBar.js';
9
23
  import '../components/Select.js';
10
- import '../components/BaseSnackbar.js';
11
24
  import '../components/Tag.js';
12
- import '../components/Toggle.js';
13
25
  import '../components/TextArea.js';
14
- import '@tecsinapse/cortex-core';
15
- import 'react-icons/md';
16
- import 'clsx';
17
- import '../styles/progressBar.js';
18
- import '../styles/groupButton.js';
19
- import '../components/GroupButton.js';
20
- import { DefaultSnack } from '../components/DefaultSnack.js';
26
+ import '../components/Toggle.js';
21
27
 
22
28
  class SnackbarSonner {
23
29
  custom(Component, options) {
@@ -0,0 +1,38 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const calendarCell = tv({
4
+ slots: {
5
+ cell: "text-center rounded-mili text-black",
6
+ button: "flex aspect-square items-center justify-center"
7
+ },
8
+ variants: {
9
+ isSelected: {
10
+ true: {
11
+ cell: "bg-primary-medium text-white"
12
+ }
13
+ },
14
+ isSelectionStart: {
15
+ true: {
16
+ cell: "bg-primary-medium rounded-r-none text-white"
17
+ }
18
+ },
19
+ isSelectionEnd: {
20
+ true: {
21
+ cell: "bg-primary-medium rounded-l-none text-white"
22
+ }
23
+ },
24
+ inRange: {
25
+ true: {
26
+ cell: "bg-primary-light rounded-none text-black"
27
+ }
28
+ },
29
+ isOutsideVisibleRange: {
30
+ true: {
31
+ cell: "text-secondary-light cursor-default",
32
+ button: "cursor-default"
33
+ }
34
+ }
35
+ }
36
+ });
37
+
38
+ export { calendarCell };
@@ -0,0 +1,6 @@
1
+ interface CalendarProps {
2
+ value: Date;
3
+ onChange: (value: Date) => void;
4
+ }
5
+ export declare const Calendar: ({ value, onChange }: CalendarProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { CalendarDate } from '@internationalized/date';
2
+ import { CalendarState, RangeCalendarState } from 'react-stately';
3
+ interface CalendarCellProps {
4
+ state: CalendarState | RangeCalendarState;
5
+ date: CalendarDate;
6
+ }
7
+ export declare const CalendarCell: ({ state, date }: CalendarCellProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { CalendarState, RangeCalendarState } from 'react-stately';
2
+ interface CalendarGridProps {
3
+ state: CalendarState | RangeCalendarState;
4
+ }
5
+ export declare const CalendarGrid: ({ state }: CalendarGridProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { CalendarState, RangeCalendarState } from 'react-stately';
2
+ interface CalendarGridBodyRowsProps {
3
+ state: CalendarState | RangeCalendarState;
4
+ }
5
+ export declare const CalendarGridBodyRows: ({ state }: CalendarGridBodyRowsProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface CalendarGridHeaderRowProps {
2
+ weekDays: string[];
3
+ }
4
+ export declare const CalendarGridHeaderRow: ({ weekDays, }: CalendarGridHeaderRowProps) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CalendarHeaderProps {
2
+ onClickPrevButton: () => void;
3
+ onClickNextButton: () => void;
4
+ title: string;
5
+ }
6
+ export declare const CalendarHeader: ({ onClickPrevButton, onClickNextButton, title, }: CalendarHeaderProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ export type DateRange = {
2
+ start: Date;
3
+ end: Date;
4
+ };
5
+ interface RangeCalendarProps {
6
+ onChange: (value: DateRange) => void;
7
+ value: DateRange;
8
+ }
9
+ export declare const RangeCalendar: ({ value, onChange }: RangeCalendarProps) => JSX.Element;
10
+ export {};
@@ -1,19 +1,21 @@
1
+ export * from './Avatar';
1
2
  export * from './Badge';
3
+ export * from './BaseSnackbar';
4
+ export * from './Breadcrumbs';
2
5
  export * from './Button';
6
+ export * from './Calendar';
3
7
  export * from './Card';
8
+ export * from './DefaultSnack';
9
+ export * from './Drawer';
10
+ export * from './GroupButton';
4
11
  export * from './Hint';
5
12
  export * from './Input';
6
13
  export * from './Modal';
14
+ export * from './ProgressBar';
15
+ export * from './RangeCalendar';
7
16
  export { default as Select } from './Select';
8
- export * from './BaseSnackbar';
17
+ export * from './Skeleton';
18
+ export * from './Table';
9
19
  export * from './Tag';
10
- export * from './Toggle';
11
20
  export * from './TextArea';
12
- export * from './Table';
13
- export * from './Drawer';
14
- export * from './Breadcrumbs';
15
- export * from './Avatar';
16
- export * from './Skeleton';
17
- export * from './ProgressBar';
18
- export * from './GroupButton';
19
- export * from './DefaultSnack';
21
+ export * from './Toggle';
@@ -1 +1,4 @@
1
+ export * from './useCalendar';
2
+ export * from './useCalendarCell';
3
+ export * from './useCalendarGrid';
1
4
  export * from './useDebouncedState';
@@ -0,0 +1,10 @@
1
+ interface useCalendarProps {
2
+ value: Date;
3
+ onChange: (value: Date) => void;
4
+ }
5
+ export declare const useCalendar: ({ value, onChange }: useCalendarProps) => {
6
+ calendarProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
7
+ title: string;
8
+ state: import("react-stately").CalendarState;
9
+ };
10
+ export {};
@@ -0,0 +1,18 @@
1
+ import { CalendarDate } from '@internationalized/date';
2
+ import { CalendarState, RangeCalendarState } from 'react-stately';
3
+ interface useCalendarCellProps {
4
+ state: CalendarState | RangeCalendarState;
5
+ date: CalendarDate;
6
+ }
7
+ export declare const useCalendarCell: ({ state, date }: useCalendarCellProps) => {
8
+ ref: import("react").MutableRefObject<null>;
9
+ cellProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
10
+ buttonProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
11
+ isSelected: boolean;
12
+ isOutsideVisibleRange: boolean;
13
+ formattedDate: string;
14
+ isSelectionStart: boolean | undefined;
15
+ isSelectionEnd: boolean | undefined;
16
+ inRange: boolean;
17
+ };
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import { CalendarState, RangeCalendarState } from 'react-stately';
2
+ interface useCalendarGridProps {
3
+ state: CalendarState | RangeCalendarState;
4
+ }
5
+ export declare const useCalendarGrid: ({ state }: useCalendarGridProps) => {
6
+ gridProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
7
+ headerProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
8
+ weekDays: string[];
9
+ };
10
+ export {};
@@ -0,0 +1,199 @@
1
+ export declare const calendarCell: import("tailwind-variants").TVReturnType<{
2
+ isSelected: {
3
+ true: {
4
+ cell: string;
5
+ };
6
+ };
7
+ isSelectionStart: {
8
+ true: {
9
+ cell: string;
10
+ };
11
+ };
12
+ isSelectionEnd: {
13
+ true: {
14
+ cell: string;
15
+ };
16
+ };
17
+ inRange: {
18
+ true: {
19
+ cell: string;
20
+ };
21
+ };
22
+ isOutsideVisibleRange: {
23
+ true: {
24
+ cell: string;
25
+ button: string;
26
+ };
27
+ };
28
+ }, {
29
+ cell: string;
30
+ button: string;
31
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
32
+ isSelected: {
33
+ true: {
34
+ cell: string;
35
+ };
36
+ };
37
+ isSelectionStart: {
38
+ true: {
39
+ cell: string;
40
+ };
41
+ };
42
+ isSelectionEnd: {
43
+ true: {
44
+ cell: string;
45
+ };
46
+ };
47
+ inRange: {
48
+ true: {
49
+ cell: string;
50
+ };
51
+ };
52
+ isOutsideVisibleRange: {
53
+ true: {
54
+ cell: string;
55
+ button: string;
56
+ };
57
+ };
58
+ }, {
59
+ isSelected: {
60
+ true: {
61
+ cell: string;
62
+ };
63
+ };
64
+ isSelectionStart: {
65
+ true: {
66
+ cell: string;
67
+ };
68
+ };
69
+ isSelectionEnd: {
70
+ true: {
71
+ cell: string;
72
+ };
73
+ };
74
+ inRange: {
75
+ true: {
76
+ cell: string;
77
+ };
78
+ };
79
+ isOutsideVisibleRange: {
80
+ true: {
81
+ cell: string;
82
+ button: string;
83
+ };
84
+ };
85
+ }>, {
86
+ isSelected: {
87
+ true: {
88
+ cell: string;
89
+ };
90
+ };
91
+ isSelectionStart: {
92
+ true: {
93
+ cell: string;
94
+ };
95
+ };
96
+ isSelectionEnd: {
97
+ true: {
98
+ cell: string;
99
+ };
100
+ };
101
+ inRange: {
102
+ true: {
103
+ cell: string;
104
+ };
105
+ };
106
+ isOutsideVisibleRange: {
107
+ true: {
108
+ cell: string;
109
+ button: string;
110
+ };
111
+ };
112
+ }, {
113
+ cell: string;
114
+ button: string;
115
+ }, import("tailwind-variants").TVReturnType<{
116
+ isSelected: {
117
+ true: {
118
+ cell: string;
119
+ };
120
+ };
121
+ isSelectionStart: {
122
+ true: {
123
+ cell: string;
124
+ };
125
+ };
126
+ isSelectionEnd: {
127
+ true: {
128
+ cell: string;
129
+ };
130
+ };
131
+ inRange: {
132
+ true: {
133
+ cell: string;
134
+ };
135
+ };
136
+ isOutsideVisibleRange: {
137
+ true: {
138
+ cell: string;
139
+ button: string;
140
+ };
141
+ };
142
+ }, {
143
+ cell: string;
144
+ button: string;
145
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
146
+ isSelected: {
147
+ true: {
148
+ cell: string;
149
+ };
150
+ };
151
+ isSelectionStart: {
152
+ true: {
153
+ cell: string;
154
+ };
155
+ };
156
+ isSelectionEnd: {
157
+ true: {
158
+ cell: string;
159
+ };
160
+ };
161
+ inRange: {
162
+ true: {
163
+ cell: string;
164
+ };
165
+ };
166
+ isOutsideVisibleRange: {
167
+ true: {
168
+ cell: string;
169
+ button: string;
170
+ };
171
+ };
172
+ }, {
173
+ isSelected: {
174
+ true: {
175
+ cell: string;
176
+ };
177
+ };
178
+ isSelectionStart: {
179
+ true: {
180
+ cell: string;
181
+ };
182
+ };
183
+ isSelectionEnd: {
184
+ true: {
185
+ cell: string;
186
+ };
187
+ };
188
+ inRange: {
189
+ true: {
190
+ cell: string;
191
+ };
192
+ };
193
+ isOutsideVisibleRange: {
194
+ true: {
195
+ cell: string;
196
+ button: string;
197
+ };
198
+ };
199
+ }>, unknown, unknown, undefined>>;