rupoui 1.3.2 → 1.3.3
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/README.md +13 -13
- package/dist/components/button/Button.d.ts +6 -3
- package/dist/components/button/button.styles.d.ts +176 -162
- package/dist/components/button/button.types.d.ts +14 -14
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/calendar/Calendar.d.ts +3 -2
- package/dist/components/calendar/calendar.grid.d.ts +5 -2
- package/dist/components/calendar/calendar.navigation.d.ts +1 -1
- package/dist/components/calendar/calendar.selection.d.ts +6 -2
- package/dist/components/calendar/calendar.state.d.ts +1 -1
- package/dist/components/calendar/calendar.styles.d.ts +106 -83
- package/dist/components/calendar/calendar.types.d.ts +39 -39
- package/dist/components/calendar/index.d.ts +3 -3
- package/dist/components/checkbox/Checkbox.d.ts +4 -2
- package/dist/components/checkbox/CheckboxGroup.d.ts +4 -2
- package/dist/components/checkbox/checkbox-group-context.d.ts +12 -12
- package/dist/components/checkbox/checkbox.styles.d.ts +313 -285
- package/dist/components/checkbox/checkbox.types.d.ts +161 -154
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/useCheckbox.d.ts +389 -311
- package/dist/components/checkbox/useCheckboxGroup.d.ts +353 -280
- package/dist/components/chip/Chip.d.ts +4 -2
- package/dist/components/chip/ChipGroup.d.ts +4 -2
- package/dist/components/chip/chip-group-context.d.ts +9 -6
- package/dist/components/chip/chip.styles.d.ts +206 -192
- package/dist/components/chip/chip.types.d.ts +155 -149
- package/dist/components/chip/index.d.ts +5 -5
- package/dist/components/chip/useChip.d.ts +22 -20
- package/dist/components/chip/useChipGroup.d.ts +350 -277
- package/dist/components/datepicker/DatePart.d.ts +16 -14
- package/dist/components/datepicker/DatePicker.d.ts +17 -16
- package/dist/components/datepicker/DatePickerCalendar.d.ts +8 -7
- package/dist/components/datepicker/DatePickerDay.d.ts +11 -9
- package/dist/components/datepicker/DatePickerInput.d.ts +16 -15
- package/dist/components/datepicker/DatePickerPopover.d.ts +7 -6
- package/dist/components/datepicker/SegmentedDatePickerInput.d.ts +9 -8
- package/dist/components/datepicker/datepicker.controller.d.ts +6 -2
- package/dist/components/datepicker/datepicker.input.logic.d.ts +16 -6
- package/dist/components/datepicker/datepicker.input.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.input.types.d.ts +20 -20
- package/dist/components/datepicker/datepicker.keyboard.d.ts +6 -2
- package/dist/components/datepicker/datepicker.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.styles.d.ts +118 -95
- package/dist/components/datepicker/datepicker.types.d.ts +52 -52
- package/dist/components/datepicker/index.d.ts +5 -5
- package/dist/components/dropdown/Dropdown.d.ts +3 -2
- package/dist/components/dropdown/DropdownContent.d.ts +3 -2
- package/dist/components/dropdown/DropdownItem.d.ts +3 -2
- package/dist/components/dropdown/DropdownSection.d.ts +3 -2
- package/dist/components/dropdown/DropdownSeparator.d.ts +3 -2
- package/dist/components/dropdown/DropdownTrigger.d.ts +3 -2
- package/dist/components/dropdown/context.d.ts +22 -21
- package/dist/components/dropdown/dropdown.styles.d.ts +180 -166
- package/dist/components/dropdown/dropdown.types.d.ts +97 -85
- package/dist/components/dropdown/index.d.ts +9 -9
- package/dist/components/dropdown/useDropdown.d.ts +15 -15
- package/dist/components/input/Input.d.ts +9 -4
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.styles.d.ts +239 -225
- package/dist/components/input/input.types.d.ts +60 -58
- package/dist/components/input-number/InputNumber.d.ts +24 -5
- package/dist/components/input-number/index.d.ts +2 -2
- package/dist/components/input-number/input-number.styles.d.ts +331 -317
- package/dist/components/input-number/input-number.types.d.ts +132 -116
- package/dist/components/input-number/utils.d.ts +11 -3
- package/dist/components/modal/Modal.d.ts +4 -3
- package/dist/components/modal/ModalContent.d.ts +7 -3
- package/dist/components/modal/ModalLayout.d.ts +16 -4
- package/dist/components/modal/ModalTrigger.d.ts +5 -3
- package/dist/components/modal/context.d.ts +8 -8
- package/dist/components/modal/index.d.ts +6 -6
- package/dist/components/modal/modal.styles.d.ts +233 -219
- package/dist/components/modal/modal.types.d.ts +35 -34
- package/dist/components/modal/useModal.d.ts +7 -7
- package/dist/components/pagination/Pagination.d.ts +6 -3
- package/dist/components/pagination/PaginationContent.d.ts +6 -3
- package/dist/components/pagination/PaginationContext.d.ts +54 -54
- package/dist/components/pagination/PaginationEllipsis.d.ts +6 -3
- package/dist/components/pagination/PaginationItem.d.ts +6 -3
- package/dist/components/pagination/PaginationItems.d.ts +2 -2
- package/dist/components/pagination/PaginationNext.d.ts +6 -3
- package/dist/components/pagination/PaginationPrevious.d.ts +6 -3
- package/dist/components/pagination/index.d.ts +18 -9
- package/dist/components/pagination/pagination.styles.d.ts +147 -133
- package/dist/components/pagination/pagination.types.d.ts +125 -121
- package/dist/components/pagination/usePagination.d.ts +25 -20
- package/dist/components/popover/Popover.d.ts +3 -2
- package/dist/components/popover/PopoverContent.d.ts +3 -2
- package/dist/components/popover/PopoverContext.d.ts +103 -83
- package/dist/components/popover/PopoverTrigger.d.ts +3 -2
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/popover.styles.d.ts +122 -108
- package/dist/components/popover/popover.types.d.ts +96 -95
- package/dist/components/popover/usePopover.d.ts +52 -42
- package/dist/components/radio/Radio.d.ts +4 -2
- package/dist/components/radio/RadioGroup.d.ts +4 -2
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/radio-group-context.d.ts +12 -12
- package/dist/components/radio/radio.styles.d.ts +306 -278
- package/dist/components/radio/radio.types.d.ts +145 -138
- package/dist/components/radio/useRadio.d.ts +391 -311
- package/dist/components/radio/useRadioGroup.d.ts +354 -281
- package/dist/components/ripple/Ripple.d.ts +9 -9
- package/dist/components/select/Select.d.ts +6 -3
- package/dist/components/select/SelectItem.d.ts +15 -4
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/select.styles.d.ts +224 -210
- package/dist/components/select/select.types.d.ts +51 -50
- package/dist/components/select/useSelect.d.ts +16 -16
- package/dist/components/spinner/Spinner.d.ts +9 -3
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/spinner.styles.d.ts +91 -77
- package/dist/components/spinner/spinner.types.d.ts +4 -4
- package/dist/components/switch/Switch.d.ts +4 -2
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.styles.d.ts +147 -133
- package/dist/components/switch/switch.types.d.ts +84 -80
- package/dist/components/switch/useSwitch.d.ts +389 -311
- package/dist/components/tabs/Tab.d.ts +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +4 -4
- package/dist/components/tabs/tabs.styles.d.ts +341 -327
- package/dist/components/tabs/tabs.types.d.ts +67 -66
- package/dist/components/tabs/useTabs.d.ts +4 -4
- package/dist/components/textarea/Textarea.d.ts +9 -4
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.styles.d.ts +276 -262
- package/dist/components/textarea/textarea.types.d.ts +57 -55
- package/dist/components/toast/Toast.d.ts +8 -4
- package/dist/components/toast/ToastProvider.d.ts +8 -4
- package/dist/components/toast/ToastViewport.d.ts +14 -4
- package/dist/components/toast/Toaster.d.ts +4 -2
- package/dist/components/toast/index.d.ts +7 -7
- package/dist/components/toast/toast-store.d.ts +10 -10
- package/dist/components/toast/toast-subcomponents.d.ts +10 -4
- package/dist/components/toast/toast.types.d.ts +18 -18
- package/dist/components/toast/use-toast-internal.d.ts +1 -1
- package/dist/components/toast/utils.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/tooltip.styles.d.ts +187 -173
- package/dist/components/tooltip/tooltip.types.d.ts +85 -72
- package/dist/components/tooltip/useTooltip.d.ts +25 -25
- package/dist/components/tooltip/utils.d.ts +24 -13
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useDisclosure.d.ts +10 -10
- package/dist/hooks/useFocusTrap.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +24 -25
- package/dist/index.js +1697 -1632
- package/dist/motion/focus.d.ts +6 -6
- package/dist/motion/hover.d.ts +8 -8
- package/dist/motion/index.d.ts +5 -5
- package/dist/motion/press.d.ts +7 -7
- package/dist/motion/reveal.d.ts +16 -16
- package/dist/motion/tokens.d.ts +9 -9
- package/dist/provider/RupoUIContext.d.ts +2 -2
- package/dist/provider/RupoUIProvider.d.ts +9 -5
- package/dist/provider/types.d.ts +46 -25
- package/dist/provider/useRupoUI.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/tokens/colors.d.ts +24 -24
- package/dist/styles/tokens/index.d.ts +5 -5
- package/dist/styles/tokens/motion.d.ts +9 -9
- package/dist/styles/tokens/radius.d.ts +6 -6
- package/dist/styles/tokens/spacing.d.ts +11 -11
- package/dist/styles/tokens/typography.d.ts +64 -32
- package/dist/tailwind/index.d.ts +7 -7
- package/dist/tailwind/plugin-utils.d.ts +1 -1
- package/dist/tailwind/theme.d.ts +1 -1
- package/package.json +11 -2
- package/dist/components/toast/ToastDemo.d.ts +0 -1
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ A modern, accessible, and highly customizable React UI library built with **Tail
|
|
|
14
14
|
## 📦 Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install rupoui framer-motion
|
|
17
|
+
npm install rupoui framer-motion
|
|
18
18
|
# or
|
|
19
|
-
pnpm add rupoui framer-motion
|
|
19
|
+
pnpm add rupoui framer-motion
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 🛠 Setup
|
|
@@ -248,9 +248,9 @@ import { DatePicker } from "rupoui";
|
|
|
248
248
|
A pure renderer component for displaying a calendar grid with full keyboard navigation and accessibility support. It uses an external engine for state management, giving you complete control over the calendar's behavior.
|
|
249
249
|
|
|
250
250
|
```tsx
|
|
251
|
+
import { addMonths, startOfMonth, subMonths } from "date-fns";
|
|
252
|
+
import { useMemo, useState } from "react";
|
|
251
253
|
import { Calendar, CalendarEngine, getMonthGrid } from "rupoui";
|
|
252
|
-
import { useState, useMemo } from "react";
|
|
253
|
-
import { startOfMonth, addMonths, subMonths } from "date-fns";
|
|
254
254
|
|
|
255
255
|
// Basic Calendar
|
|
256
256
|
function useCalendarEngine() {
|
|
@@ -461,7 +461,7 @@ import { Switch } from "rupoui";
|
|
|
461
461
|
A floating menu that displays a list of actions or options.
|
|
462
462
|
|
|
463
463
|
```tsx
|
|
464
|
-
import { Dropdown,
|
|
464
|
+
import { Dropdown, DropdownContent, DropdownItem, DropdownTrigger } from "rupoui";
|
|
465
465
|
|
|
466
466
|
<Dropdown>
|
|
467
467
|
<DropdownTrigger>
|
|
@@ -490,13 +490,13 @@ A dialog that focuses the user's attention exclusively on an information or an a
|
|
|
490
490
|
|
|
491
491
|
```tsx
|
|
492
492
|
import {
|
|
493
|
+
Button,
|
|
493
494
|
Modal,
|
|
494
|
-
ModalTrigger,
|
|
495
|
-
ModalContent,
|
|
496
|
-
ModalHeader,
|
|
497
495
|
ModalBody,
|
|
496
|
+
ModalContent,
|
|
498
497
|
ModalFooter,
|
|
499
|
-
|
|
498
|
+
ModalHeader,
|
|
499
|
+
ModalTrigger,
|
|
500
500
|
} from "rupoui";
|
|
501
501
|
|
|
502
502
|
<Modal>
|
|
@@ -536,7 +536,7 @@ import {
|
|
|
536
536
|
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
|
|
537
537
|
|
|
538
538
|
```tsx
|
|
539
|
-
import {
|
|
539
|
+
import { Button, Tooltip } from "rupoui";
|
|
540
540
|
|
|
541
541
|
<Tooltip content="I am a tooltip">
|
|
542
542
|
<Button>Hover me</Button>
|
|
@@ -556,7 +556,7 @@ import { Tooltip, Button } from "rupoui";
|
|
|
556
556
|
A non-modal dialog that floats around a trigger. It is used to display rich content behind a trigger element.
|
|
557
557
|
|
|
558
558
|
```tsx
|
|
559
|
-
import {
|
|
559
|
+
import { Button, Popover, PopoverContent, PopoverTrigger } from "rupoui";
|
|
560
560
|
|
|
561
561
|
<Popover placement="bottom">
|
|
562
562
|
<PopoverTrigger>
|
|
@@ -663,10 +663,10 @@ For full control over the pagination layout, use the composable API:
|
|
|
663
663
|
import {
|
|
664
664
|
Pagination,
|
|
665
665
|
PaginationContent,
|
|
666
|
+
PaginationEllipsis,
|
|
666
667
|
PaginationItem,
|
|
667
|
-
PaginationPrevious,
|
|
668
668
|
PaginationNext,
|
|
669
|
-
|
|
669
|
+
PaginationPrevious,
|
|
670
670
|
usePagination,
|
|
671
671
|
} from "rupoui";
|
|
672
672
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { default as React } from
|
|
1
|
+
import { default as React } from "react";
|
|
2
2
|
|
|
3
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const Button: React.ForwardRefExoticComponent<
|
|
4
|
+
{
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
size?: "sm" | "md" | "lg";
|
|
6
7
|
variant?: "solid" | "flat" | "ghost" | "bordered";
|
|
@@ -14,4 +15,6 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
14
15
|
as?: any;
|
|
15
16
|
href?: string;
|
|
16
17
|
classNames?: Partial<Record<"base" | "content" | "spinner", string>>;
|
|
17
|
-
} & Omit<import(
|
|
18
|
+
} & Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> &
|
|
19
|
+
React.RefAttributes<HTMLButtonElement>
|
|
20
|
+
>;
|
|
@@ -1,235 +1,249 @@
|
|
|
1
|
-
export declare const button: import(
|
|
1
|
+
export declare const button: import("tailwind-variants").TVReturnType<
|
|
2
|
+
{
|
|
2
3
|
variant: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
solid: {};
|
|
5
|
+
flat: {};
|
|
6
|
+
bordered: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
ghost: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
11
12
|
};
|
|
12
13
|
color: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
default: {
|
|
15
|
+
base: string;
|
|
16
|
+
};
|
|
17
|
+
primary: {
|
|
18
|
+
base: string;
|
|
19
|
+
};
|
|
20
|
+
secondary: {
|
|
21
|
+
base: string;
|
|
22
|
+
};
|
|
23
|
+
success: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
warning: {
|
|
27
|
+
base: string;
|
|
28
|
+
};
|
|
29
|
+
danger: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
31
32
|
};
|
|
32
33
|
size: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
sm: {
|
|
35
|
+
base: string;
|
|
36
|
+
};
|
|
37
|
+
md: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
lg: {
|
|
41
|
+
base: string;
|
|
42
|
+
};
|
|
42
43
|
};
|
|
43
44
|
radius: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
sm: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
md: {
|
|
49
|
+
base: string;
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
base: string;
|
|
53
|
+
};
|
|
54
|
+
xl: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
full: {
|
|
58
|
+
base: string;
|
|
59
|
+
};
|
|
59
60
|
};
|
|
60
61
|
fullWidth: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
true: {
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
64
65
|
};
|
|
65
66
|
isDisabled: {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
true: {
|
|
68
|
+
base: string;
|
|
69
|
+
};
|
|
69
70
|
};
|
|
70
71
|
isLoading: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
true: {
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
74
75
|
};
|
|
75
|
-
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
76
78
|
base: string;
|
|
77
79
|
content: string;
|
|
78
80
|
spinner: string;
|
|
79
|
-
},
|
|
81
|
+
},
|
|
82
|
+
undefined,
|
|
83
|
+
{
|
|
80
84
|
variant: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
solid: {};
|
|
86
|
+
flat: {};
|
|
87
|
+
bordered: {
|
|
88
|
+
base: string;
|
|
89
|
+
};
|
|
90
|
+
ghost: {
|
|
91
|
+
base: string;
|
|
92
|
+
};
|
|
89
93
|
};
|
|
90
94
|
color: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
default: {
|
|
96
|
+
base: string;
|
|
97
|
+
};
|
|
98
|
+
primary: {
|
|
99
|
+
base: string;
|
|
100
|
+
};
|
|
101
|
+
secondary: {
|
|
102
|
+
base: string;
|
|
103
|
+
};
|
|
104
|
+
success: {
|
|
105
|
+
base: string;
|
|
106
|
+
};
|
|
107
|
+
warning: {
|
|
108
|
+
base: string;
|
|
109
|
+
};
|
|
110
|
+
danger: {
|
|
111
|
+
base: string;
|
|
112
|
+
};
|
|
109
113
|
};
|
|
110
114
|
size: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
sm: {
|
|
116
|
+
base: string;
|
|
117
|
+
};
|
|
118
|
+
md: {
|
|
119
|
+
base: string;
|
|
120
|
+
};
|
|
121
|
+
lg: {
|
|
122
|
+
base: string;
|
|
123
|
+
};
|
|
120
124
|
};
|
|
121
125
|
radius: {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
126
|
+
sm: {
|
|
127
|
+
base: string;
|
|
128
|
+
};
|
|
129
|
+
md: {
|
|
130
|
+
base: string;
|
|
131
|
+
};
|
|
132
|
+
lg: {
|
|
133
|
+
base: string;
|
|
134
|
+
};
|
|
135
|
+
xl: {
|
|
136
|
+
base: string;
|
|
137
|
+
};
|
|
138
|
+
full: {
|
|
139
|
+
base: string;
|
|
140
|
+
};
|
|
137
141
|
};
|
|
138
142
|
fullWidth: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
true: {
|
|
144
|
+
base: string;
|
|
145
|
+
};
|
|
142
146
|
};
|
|
143
147
|
isDisabled: {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
true: {
|
|
149
|
+
base: string;
|
|
150
|
+
};
|
|
147
151
|
};
|
|
148
152
|
isLoading: {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
true: {
|
|
154
|
+
base: string;
|
|
155
|
+
};
|
|
152
156
|
};
|
|
153
|
-
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
154
159
|
base: string;
|
|
155
160
|
content: string;
|
|
156
161
|
spinner: string;
|
|
157
|
-
},
|
|
158
|
-
|
|
162
|
+
},
|
|
163
|
+
import("tailwind-variants").TVReturnType<
|
|
164
|
+
{
|
|
165
|
+
variant: {
|
|
159
166
|
solid: {};
|
|
160
167
|
flat: {};
|
|
161
168
|
bordered: {
|
|
162
|
-
|
|
169
|
+
base: string;
|
|
163
170
|
};
|
|
164
171
|
ghost: {
|
|
165
|
-
|
|
172
|
+
base: string;
|
|
166
173
|
};
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
};
|
|
175
|
+
color: {
|
|
169
176
|
default: {
|
|
170
|
-
|
|
177
|
+
base: string;
|
|
171
178
|
};
|
|
172
179
|
primary: {
|
|
173
|
-
|
|
180
|
+
base: string;
|
|
174
181
|
};
|
|
175
182
|
secondary: {
|
|
176
|
-
|
|
183
|
+
base: string;
|
|
177
184
|
};
|
|
178
185
|
success: {
|
|
179
|
-
|
|
186
|
+
base: string;
|
|
180
187
|
};
|
|
181
188
|
warning: {
|
|
182
|
-
|
|
189
|
+
base: string;
|
|
183
190
|
};
|
|
184
191
|
danger: {
|
|
185
|
-
|
|
192
|
+
base: string;
|
|
186
193
|
};
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
};
|
|
195
|
+
size: {
|
|
189
196
|
sm: {
|
|
190
|
-
|
|
197
|
+
base: string;
|
|
191
198
|
};
|
|
192
199
|
md: {
|
|
193
|
-
|
|
200
|
+
base: string;
|
|
194
201
|
};
|
|
195
202
|
lg: {
|
|
196
|
-
|
|
203
|
+
base: string;
|
|
197
204
|
};
|
|
198
|
-
|
|
199
|
-
|
|
205
|
+
};
|
|
206
|
+
radius: {
|
|
200
207
|
sm: {
|
|
201
|
-
|
|
208
|
+
base: string;
|
|
202
209
|
};
|
|
203
210
|
md: {
|
|
204
|
-
|
|
211
|
+
base: string;
|
|
205
212
|
};
|
|
206
213
|
lg: {
|
|
207
|
-
|
|
214
|
+
base: string;
|
|
208
215
|
};
|
|
209
216
|
xl: {
|
|
210
|
-
|
|
217
|
+
base: string;
|
|
211
218
|
};
|
|
212
219
|
full: {
|
|
213
|
-
|
|
220
|
+
base: string;
|
|
214
221
|
};
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
};
|
|
223
|
+
fullWidth: {
|
|
217
224
|
true: {
|
|
218
|
-
|
|
225
|
+
base: string;
|
|
219
226
|
};
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
};
|
|
228
|
+
isDisabled: {
|
|
222
229
|
true: {
|
|
223
|
-
|
|
230
|
+
base: string;
|
|
224
231
|
};
|
|
225
|
-
|
|
226
|
-
|
|
232
|
+
};
|
|
233
|
+
isLoading: {
|
|
227
234
|
true: {
|
|
228
|
-
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
base: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
base: string;
|
|
241
|
+
content: string;
|
|
242
|
+
spinner: string;
|
|
243
|
+
},
|
|
244
|
+
undefined,
|
|
245
|
+
unknown,
|
|
246
|
+
unknown,
|
|
247
|
+
undefined
|
|
248
|
+
>
|
|
249
|
+
>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { HTMLMotionProps } from
|
|
1
|
+
import { HTMLMotionProps } from "framer-motion";
|
|
2
2
|
|
|
3
3
|
export type ButtonProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
variant?: "solid" | "flat" | "ghost" | "bordered";
|
|
7
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger";
|
|
8
|
+
radius?: "sm" | "md" | "lg" | "xl" | "full";
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
startContent?: React.ReactNode;
|
|
13
|
+
endContent?: React.ReactNode;
|
|
14
|
+
as?: any;
|
|
15
|
+
href?: string;
|
|
16
|
+
classNames?: Partial<Record<"base" | "content" | "spinner", string>>;
|
|
17
17
|
} & Omit<HTMLMotionProps<"button">, "ref">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./Button";
|
|
2
|
+
export * from "./button.types";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { CalendarCell, CalendarConfig, CalendarState } from
|
|
1
|
+
import { CalendarCell, CalendarConfig, CalendarState } from "./calendar.types";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Generates a 6x7 grid of calendar cells for the current viewDate.
|
|
5
5
|
*/
|
|
6
|
-
export declare function getMonthGrid(
|
|
6
|
+
export declare function getMonthGrid(
|
|
7
|
+
state: CalendarState,
|
|
8
|
+
config?: CalendarConfig,
|
|
9
|
+
): CalendarCell[][];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarConfig, CalendarState } from
|
|
1
|
+
import { CalendarConfig, CalendarState } from "./calendar.types";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checks if a date is disabled based on the config.
|
|
@@ -9,4 +9,8 @@ export declare function isDateDisabled(date: Date, config?: CalendarConfig): boo
|
|
|
9
9
|
* Updates both selectedDate and viewDate (if the selected date is in a different month).
|
|
10
10
|
* Respects disabled constraints.
|
|
11
11
|
*/
|
|
12
|
-
export declare function selectDate(
|
|
12
|
+
export declare function selectDate(
|
|
13
|
+
state: CalendarState,
|
|
14
|
+
date: Date,
|
|
15
|
+
config?: CalendarConfig,
|
|
16
|
+
): CalendarState;
|