@tecsinapse/cortex-react 1.2.2 → 1.3.0-beta.1
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/dist/cjs/components/Avatar.js +3 -2
- package/dist/cjs/components/BaseSnackbar.js +13 -0
- package/dist/cjs/components/BreadcrumbItem.js +2 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +10 -1
- package/dist/cjs/components/Calendar.js +23 -0
- package/dist/cjs/components/CalendarCell.js +51 -0
- package/dist/cjs/components/CalendarGrid.js +23 -0
- package/dist/cjs/components/CalendarGridBodyRows.js +12 -0
- package/dist/cjs/components/CalendarGridHeaderRow.js +12 -0
- package/dist/cjs/components/CalendarHeader.js +40 -0
- package/dist/cjs/components/Card.js +1 -1
- package/dist/cjs/components/DateField.js +25 -0
- package/dist/cjs/components/DatePickerInput.js +48 -0
- package/dist/cjs/components/DatePickerInputBase.js +24 -0
- package/dist/cjs/components/DateRangePickerInput.js +62 -0
- package/dist/cjs/components/DateSegment.js +20 -0
- package/dist/cjs/components/DefaultSnack.js +27 -0
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/GroupButton.js +43 -0
- package/dist/cjs/components/Input.js +5 -3
- package/dist/cjs/components/Modal.js +6 -13
- package/dist/cjs/components/ProgressBar.js +71 -0
- package/dist/cjs/components/RangeCalendar.js +36 -0
- package/dist/cjs/components/SearchInput.js +21 -10
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Skeleton.js +4 -1
- package/dist/cjs/components/Table.js +9 -15
- package/dist/cjs/components/TextArea.js +2 -0
- package/dist/cjs/components/TimeField.js +12 -0
- package/dist/cjs/components/TimeFieldInput.js +22 -0
- package/dist/cjs/components/Toggle.js +17 -9
- package/dist/cjs/components/utils.js +19 -4
- package/dist/cjs/hooks/useCalendar.js +24 -0
- package/dist/cjs/hooks/useCalendarCell.js +35 -0
- package/dist/cjs/hooks/useCalendarGrid.js +14 -0
- package/dist/cjs/hooks/useDatePickerInput.js +31 -0
- package/dist/cjs/hooks/useDateRangePickerInput.js +33 -0
- package/dist/cjs/hooks/useRangeCalendar.js +36 -0
- package/dist/cjs/hooks/useTimeField.js +32 -0
- package/dist/cjs/index.js +47 -16
- package/dist/cjs/service/SnackbarSonner.js +55 -0
- package/dist/cjs/styles/calendar-cell.js +40 -0
- package/dist/cjs/styles/groupButton.js +16 -0
- package/dist/cjs/styles/progressBar.js +21 -0
- package/dist/esm/components/Avatar.js +4 -3
- package/dist/esm/components/BaseSnackbar.js +11 -0
- package/dist/esm/components/BreadcrumbItem.js +2 -1
- package/dist/esm/components/Breadcrumbs.js +1 -1
- package/dist/esm/components/Button.js +10 -1
- package/dist/esm/components/Calendar.js +21 -0
- package/dist/esm/components/CalendarCell.js +49 -0
- package/dist/esm/components/CalendarGrid.js +21 -0
- package/dist/esm/components/CalendarGridBodyRows.js +10 -0
- package/dist/esm/components/CalendarGridHeaderRow.js +10 -0
- package/dist/esm/components/CalendarHeader.js +38 -0
- package/dist/esm/components/Card.js +1 -1
- package/dist/esm/components/DateField.js +23 -0
- package/dist/esm/components/DatePickerInput.js +46 -0
- package/dist/esm/components/DatePickerInputBase.js +22 -0
- package/dist/esm/components/DateRangePickerInput.js +60 -0
- package/dist/esm/components/DateSegment.js +18 -0
- package/dist/esm/components/DefaultSnack.js +25 -0
- package/dist/esm/components/Drawer.js +3 -1
- package/dist/esm/components/GroupButton.js +41 -0
- package/dist/esm/components/Input.js +5 -3
- package/dist/esm/components/Modal.js +6 -13
- package/dist/esm/components/ProgressBar.js +69 -0
- package/dist/esm/components/RangeCalendar.js +34 -0
- package/dist/esm/components/SearchInput.js +21 -10
- package/dist/esm/components/Select.js +4 -4
- package/dist/esm/components/Skeleton.js +4 -1
- package/dist/esm/components/Table.js +10 -15
- package/dist/esm/components/TextArea.js +2 -0
- package/dist/esm/components/TimeField.js +10 -0
- package/dist/esm/components/TimeFieldInput.js +20 -0
- package/dist/esm/components/Toggle.js +17 -9
- package/dist/esm/components/utils.js +17 -4
- package/dist/esm/hooks/useCalendar.js +22 -0
- package/dist/esm/hooks/useCalendarCell.js +33 -0
- package/dist/esm/hooks/useCalendarGrid.js +12 -0
- package/dist/esm/hooks/useDatePickerInput.js +29 -0
- package/dist/esm/hooks/useDateRangePickerInput.js +31 -0
- package/dist/esm/hooks/useRangeCalendar.js +34 -0
- package/dist/esm/hooks/useTimeField.js +30 -0
- package/dist/esm/index.js +23 -7
- package/dist/esm/service/SnackbarSonner.js +53 -0
- package/dist/esm/styles/calendar-cell.js +38 -0
- package/dist/esm/styles/groupButton.js +14 -0
- package/dist/esm/styles/progressBar.js +19 -0
- package/dist/types/components/BaseSnackbar.d.ts +9 -0
- package/dist/types/components/BreadcrumbItem.d.ts +1 -3
- package/dist/types/components/Calendar.d.ts +6 -0
- package/dist/types/components/CalendarCell.d.ts +8 -0
- package/dist/types/components/CalendarGrid.d.ts +6 -0
- package/dist/types/components/CalendarGridBodyRows.d.ts +6 -0
- package/dist/types/components/CalendarGridHeaderRow.d.ts +5 -0
- package/dist/types/components/CalendarHeader.d.ts +6 -0
- package/dist/types/components/DateField.d.ts +5 -0
- package/dist/types/components/DatePickerInput.d.ts +6 -0
- package/dist/types/components/DatePickerInputBase.d.ts +8 -0
- package/dist/types/components/DateRangePickerInput.d.ts +7 -0
- package/dist/types/components/DateSegment.d.ts +7 -0
- package/dist/types/components/DefaultSnack.d.ts +6 -0
- package/dist/types/components/Drawer.d.ts +1 -1
- package/dist/types/components/GroupButton.d.ts +19 -0
- package/dist/types/components/Input.d.ts +2 -2
- package/dist/types/components/Modal.d.ts +2 -2
- package/dist/types/components/ProgressBar.d.ts +9 -0
- package/dist/types/components/RangeCalendar.d.ts +10 -0
- package/dist/types/components/SearchInput.d.ts +0 -1
- package/dist/types/components/Select.d.ts +0 -1
- package/dist/types/components/Skeleton.d.ts +4 -2
- package/dist/types/components/Table.d.ts +0 -1
- package/dist/types/components/TimeField.d.ts +7 -0
- package/dist/types/components/TimeFieldInput.d.ts +10 -0
- package/dist/types/components/index.d.ts +15 -7
- package/dist/types/components/utils.d.ts +4 -1
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/useCalendar.d.ts +10 -0
- package/dist/types/hooks/useCalendarCell.d.ts +18 -0
- package/dist/types/hooks/useCalendarGrid.d.ts +10 -0
- package/dist/types/hooks/useDatePickerInput.d.ts +10 -0
- package/dist/types/hooks/useDateRangePickerInput.d.ts +12 -0
- package/dist/types/hooks/useRangeCalendar.d.ts +12 -0
- package/dist/types/hooks/useTimeField.d.ts +7 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/provider/SnackbarProvider.d.ts +10 -0
- package/dist/types/service/ISnackbar.d.ts +7 -0
- package/dist/types/service/SnackbarSonner.d.ts +7 -0
- package/dist/types/service/index.d.ts +2 -0
- package/dist/types/styles/calendar-cell.d.ts +199 -0
- package/dist/types/styles/groupButton.d.ts +77 -0
- package/dist/types/styles/index.d.ts +3 -0
- package/dist/types/styles/progressBar.d.ts +78 -0
- package/dist/types/tests/Avatar.test.d.ts +1 -0
- package/dist/types/tests/Badge.test.d.ts +1 -0
- package/dist/types/tests/BreadcrumbItem.test.d.ts +1 -0
- package/dist/types/tests/Breadcrumbs.test.d.ts +1 -0
- package/dist/types/tests/Button.test.d.ts +1 -0
- package/dist/types/tests/Calendar.test.d.ts +1 -0
- package/dist/types/tests/CalendarCell.test.d.ts +1 -0
- package/dist/types/tests/CalendarGridBodyRows.test.d.ts +1 -0
- package/dist/types/tests/CalendarGridHeaderRow.test.d.ts +1 -0
- package/dist/types/tests/CalendarHeader.test.d.ts +1 -0
- package/dist/types/tests/Card.test.d.ts +1 -0
- package/dist/types/tests/DateField.test.d.ts +1 -0
- package/dist/types/tests/DatePickerInput.test.d.ts +1 -0
- package/dist/types/tests/DatePickerInputBase.test.d.ts +1 -0
- package/dist/types/tests/DateRangePickerInput.test.d.ts +1 -0
- package/dist/types/tests/DateSegment.test.d.ts +1 -0
- package/dist/types/tests/DefaultSnack.test.d.ts +1 -0
- package/dist/types/tests/Drawer.test.d.ts +1 -0
- package/dist/types/tests/GroupButton.test.d.ts +1 -0
- package/dist/types/tests/Hint.test.d.ts +1 -0
- package/dist/types/tests/Input.test.d.ts +1 -0
- package/dist/types/tests/Modal.test.d.ts +1 -0
- package/dist/types/tests/ProgressBar.test.d.ts +1 -0
- package/dist/types/tests/RangeCalendar.test.d.ts +1 -0
- package/dist/types/tests/SearchInput.test.d.ts +1 -0
- package/dist/types/tests/Select.test.d.ts +1 -0
- package/dist/types/tests/Skeleton.test.d.ts +1 -0
- package/dist/types/tests/Snackbar.test.d.ts +1 -0
- package/dist/types/tests/Table.test.d.ts +1 -0
- package/dist/types/tests/Tag.test.d.ts +1 -0
- package/dist/types/tests/TextArea.test.d.ts +1 -0
- package/dist/types/tests/TimeField.test.d.ts +1 -0
- package/dist/types/tests/TimeFieldInput.test.d.ts +1 -0
- package/dist/types/tests/Toggle.test.d.ts +1 -0
- package/dist/types/tests/useCalendarCell.test.d.ts +1 -0
- package/dist/types/tests/useDebouncedState.test.d.ts +1 -0
- package/dist/types/tests/utils.test.d.ts +1 -0
- package/package.json +10 -5
- package/dist/cjs/components/Snackbar.js +0 -18
- package/dist/esm/components/Snackbar.js +0 -16
- package/dist/types/components/Snackbar.d.ts +0 -9
|
@@ -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>>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const groupButton: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
15
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
20
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {}, {
|
|
24
|
+
button: string;
|
|
25
|
+
inactive: string;
|
|
26
|
+
firstButton: string;
|
|
27
|
+
lastButton: string;
|
|
28
|
+
container: string;
|
|
29
|
+
active: string;
|
|
30
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
33
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
36
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {}>, {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
44
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
45
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
48
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}, {
|
|
53
|
+
button: string;
|
|
54
|
+
inactive: string;
|
|
55
|
+
firstButton: string;
|
|
56
|
+
lastButton: string;
|
|
57
|
+
container: string;
|
|
58
|
+
active: string;
|
|
59
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
60
|
+
button: string;
|
|
61
|
+
inactive: string;
|
|
62
|
+
firstButton: string;
|
|
63
|
+
lastButton: string;
|
|
64
|
+
container: string;
|
|
65
|
+
active: string;
|
|
66
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
67
|
+
[key: string]: {
|
|
68
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
69
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
70
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
71
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
72
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
73
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
74
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const progressBarFilled: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
intentProgress: {
|
|
3
|
+
default: string;
|
|
4
|
+
error: string;
|
|
5
|
+
info: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
success: string;
|
|
8
|
+
};
|
|
9
|
+
showAnimation: {
|
|
10
|
+
true: string;
|
|
11
|
+
};
|
|
12
|
+
}, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
|
|
13
|
+
intentProgress: {
|
|
14
|
+
default: string;
|
|
15
|
+
error: string;
|
|
16
|
+
info: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
success: string;
|
|
19
|
+
};
|
|
20
|
+
showAnimation: {
|
|
21
|
+
true: string;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
intentProgress: {
|
|
25
|
+
default: string;
|
|
26
|
+
error: string;
|
|
27
|
+
info: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
success: string;
|
|
30
|
+
};
|
|
31
|
+
showAnimation: {
|
|
32
|
+
true: string;
|
|
33
|
+
};
|
|
34
|
+
}>, {
|
|
35
|
+
intentProgress: {
|
|
36
|
+
default: string;
|
|
37
|
+
error: string;
|
|
38
|
+
info: string;
|
|
39
|
+
warning: string;
|
|
40
|
+
success: string;
|
|
41
|
+
};
|
|
42
|
+
showAnimation: {
|
|
43
|
+
true: string;
|
|
44
|
+
};
|
|
45
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
46
|
+
intentProgress: {
|
|
47
|
+
default: string;
|
|
48
|
+
error: string;
|
|
49
|
+
info: string;
|
|
50
|
+
warning: string;
|
|
51
|
+
success: string;
|
|
52
|
+
};
|
|
53
|
+
showAnimation: {
|
|
54
|
+
true: string;
|
|
55
|
+
};
|
|
56
|
+
}, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
|
|
57
|
+
intentProgress: {
|
|
58
|
+
default: string;
|
|
59
|
+
error: string;
|
|
60
|
+
info: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
success: string;
|
|
63
|
+
};
|
|
64
|
+
showAnimation: {
|
|
65
|
+
true: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
intentProgress: {
|
|
69
|
+
default: string;
|
|
70
|
+
error: string;
|
|
71
|
+
info: string;
|
|
72
|
+
warning: string;
|
|
73
|
+
success: string;
|
|
74
|
+
};
|
|
75
|
+
showAnimation: {
|
|
76
|
+
true: string;
|
|
77
|
+
};
|
|
78
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta.1",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
"dev": "rollup --config --watch",
|
|
14
14
|
"dev:dts": "tsc --project tsconfig.build.json --watch",
|
|
15
15
|
"build:es": "rollup --config",
|
|
16
|
-
"build:dts": "tsc --project tsconfig.build.json"
|
|
16
|
+
"build:dts": "tsc --project tsconfig.build.json",
|
|
17
|
+
"test": "jest",
|
|
18
|
+
"test:watch": "jest --watch"
|
|
17
19
|
},
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@tecsinapse/cortex-core": "0.2.
|
|
21
|
+
"@tecsinapse/cortex-core": "0.2.2-beta.2",
|
|
20
22
|
"clsx": "*",
|
|
21
|
-
"react-
|
|
23
|
+
"react-aria": "^3.33.1",
|
|
24
|
+
"react-icons": "^5.2.1",
|
|
25
|
+
"react-stately": "^3.31.1",
|
|
26
|
+
"sonner": "^1.5.0"
|
|
22
27
|
},
|
|
23
28
|
"repository": {
|
|
24
29
|
"type": "git",
|
|
@@ -34,5 +39,5 @@
|
|
|
34
39
|
"react-dom": ">=18.0.0",
|
|
35
40
|
"tailwind": ">=3.3.0"
|
|
36
41
|
},
|
|
37
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "db686bfbca61f00d03a355fbb00cfa88646b68ed"
|
|
38
43
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var cortexCore = require('@tecsinapse/cortex-core');
|
|
5
|
-
|
|
6
|
-
const Snackbar = React.forwardRef((props, ref) => {
|
|
7
|
-
const { children, show, variants } = props;
|
|
8
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? /* @__PURE__ */ React.createElement(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
className: cortexCore.snackbar(variants),
|
|
12
|
-
ref
|
|
13
|
-
},
|
|
14
|
-
children
|
|
15
|
-
) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
exports.Snackbar = Snackbar;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { snackbar } from '@tecsinapse/cortex-core';
|
|
3
|
-
|
|
4
|
-
const Snackbar = forwardRef((props, ref) => {
|
|
5
|
-
const { children, show, variants } = props;
|
|
6
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? /* @__PURE__ */ React.createElement(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
className: snackbar(variants),
|
|
10
|
-
ref
|
|
11
|
-
},
|
|
12
|
-
children
|
|
13
|
-
) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export { Snackbar };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SnackbarVariants } from '@tecsinapse/cortex-core';
|
|
3
|
-
interface SnackbarProps {
|
|
4
|
-
variants?: SnackbarVariants;
|
|
5
|
-
children: JSX.Element;
|
|
6
|
-
show: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export {};
|