@mlw-packages/react-components 1.7.20 → 1.7.22
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/index.css +61 -0
- package/dist/index.d.mts +101 -58
- package/dist/index.d.ts +101 -58
- package/dist/index.js +1485 -1237
- package/dist/index.mjs +1810 -1562
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1021,6 +1021,9 @@ body {
|
|
|
1021
1021
|
.max-h-56 {
|
|
1022
1022
|
max-height: 14rem;
|
|
1023
1023
|
}
|
|
1024
|
+
.max-h-9 {
|
|
1025
|
+
max-height: 2.25rem;
|
|
1026
|
+
}
|
|
1024
1027
|
.max-h-96 {
|
|
1025
1028
|
max-height: 24rem;
|
|
1026
1029
|
}
|
|
@@ -1048,6 +1051,9 @@ body {
|
|
|
1048
1051
|
.min-h-0 {
|
|
1049
1052
|
min-height: 0px;
|
|
1050
1053
|
}
|
|
1054
|
+
.min-h-9 {
|
|
1055
|
+
min-height: 2.25rem;
|
|
1056
|
+
}
|
|
1051
1057
|
.min-h-\[2\.25rem\] {
|
|
1052
1058
|
min-height: 2.25rem;
|
|
1053
1059
|
}
|
|
@@ -1324,6 +1330,9 @@ body {
|
|
|
1324
1330
|
.max-w-7xl {
|
|
1325
1331
|
max-width: 80rem;
|
|
1326
1332
|
}
|
|
1333
|
+
.max-w-80 {
|
|
1334
|
+
max-width: 20rem;
|
|
1335
|
+
}
|
|
1327
1336
|
.max-w-\[--skeleton-width\] {
|
|
1328
1337
|
max-width: var(--skeleton-width);
|
|
1329
1338
|
}
|
|
@@ -1370,6 +1379,9 @@ body {
|
|
|
1370
1379
|
.max-w-md {
|
|
1371
1380
|
max-width: 28rem;
|
|
1372
1381
|
}
|
|
1382
|
+
.max-w-prose {
|
|
1383
|
+
max-width: 65ch;
|
|
1384
|
+
}
|
|
1373
1385
|
.max-w-sm {
|
|
1374
1386
|
max-width: 24rem;
|
|
1375
1387
|
}
|
|
@@ -1415,6 +1427,10 @@ body {
|
|
|
1415
1427
|
--tw-translate-x: -1px;
|
|
1416
1428
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1417
1429
|
}
|
|
1430
|
+
.-translate-y-1 {
|
|
1431
|
+
--tw-translate-y: -0.25rem;
|
|
1432
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1433
|
+
}
|
|
1418
1434
|
.-translate-y-1\/2 {
|
|
1419
1435
|
--tw-translate-y: -50%;
|
|
1420
1436
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1924,6 +1940,9 @@ body {
|
|
|
1924
1940
|
.border-l {
|
|
1925
1941
|
border-left-width: 1px;
|
|
1926
1942
|
}
|
|
1943
|
+
.border-l-2 {
|
|
1944
|
+
border-left-width: 2px;
|
|
1945
|
+
}
|
|
1927
1946
|
.border-l-4 {
|
|
1928
1947
|
border-left-width: 4px;
|
|
1929
1948
|
}
|
|
@@ -2819,6 +2838,9 @@ body {
|
|
|
2819
2838
|
.text-\[11px\] {
|
|
2820
2839
|
font-size: 11px;
|
|
2821
2840
|
}
|
|
2841
|
+
.text-\[12px\] {
|
|
2842
|
+
font-size: 12px;
|
|
2843
|
+
}
|
|
2822
2844
|
.text-\[28\.5px\] {
|
|
2823
2845
|
font-size: 28.5px;
|
|
2824
2846
|
}
|
|
@@ -4862,6 +4884,9 @@ body {
|
|
|
4862
4884
|
.data-\[active\=true\]\:text-accent-foreground[data-active=true] {
|
|
4863
4885
|
color: hsl(var(--accent-foreground));
|
|
4864
4886
|
}
|
|
4887
|
+
.data-\[placeholder\]\:text-muted-foreground[data-placeholder] {
|
|
4888
|
+
color: hsl(var(--muted-foreground));
|
|
4889
|
+
}
|
|
4865
4890
|
.data-\[selected\=true\]\:text-primary[data-selected=true] {
|
|
4866
4891
|
color: hsl(var(--primary));
|
|
4867
4892
|
}
|
|
@@ -5406,6 +5431,10 @@ body {
|
|
|
5406
5431
|
--tw-bg-opacity: 1;
|
|
5407
5432
|
background-color: rgb(51 65 85 / var(--tw-bg-opacity, 1));
|
|
5408
5433
|
}
|
|
5434
|
+
.dark\:bg-slate-800:is(.dark *) {
|
|
5435
|
+
--tw-bg-opacity: 1;
|
|
5436
|
+
background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
|
|
5437
|
+
}
|
|
5409
5438
|
.dark\:bg-slate-800\/60:is(.dark *) {
|
|
5410
5439
|
background-color: rgb(30 41 59 / 0.6);
|
|
5411
5440
|
}
|
|
@@ -5547,6 +5576,9 @@ body {
|
|
|
5547
5576
|
.dark\:hover\:bg-emerald-400\/20:hover:is(.dark *) {
|
|
5548
5577
|
background-color: rgb(52 211 153 / 0.2);
|
|
5549
5578
|
}
|
|
5579
|
+
.dark\:hover\:bg-input\/50:hover:is(.dark *) {
|
|
5580
|
+
background-color: hsl(var(--input) / 0.5);
|
|
5581
|
+
}
|
|
5550
5582
|
.dark\:hover\:bg-orange-400\/20:hover:is(.dark *) {
|
|
5551
5583
|
background-color: rgb(251 146 60 / 0.2);
|
|
5552
5584
|
}
|
|
@@ -5707,6 +5739,9 @@ body {
|
|
|
5707
5739
|
.sm\:h-6 {
|
|
5708
5740
|
height: 1.5rem;
|
|
5709
5741
|
}
|
|
5742
|
+
.sm\:h-7 {
|
|
5743
|
+
height: 1.75rem;
|
|
5744
|
+
}
|
|
5710
5745
|
.sm\:h-9 {
|
|
5711
5746
|
height: 2.25rem;
|
|
5712
5747
|
}
|
|
@@ -5731,6 +5766,9 @@ body {
|
|
|
5731
5766
|
.sm\:w-6 {
|
|
5732
5767
|
width: 1.5rem;
|
|
5733
5768
|
}
|
|
5769
|
+
.sm\:w-7 {
|
|
5770
|
+
width: 1.75rem;
|
|
5771
|
+
}
|
|
5734
5772
|
.sm\:w-9 {
|
|
5735
5773
|
width: 2.25rem;
|
|
5736
5774
|
}
|
|
@@ -5806,9 +5844,15 @@ body {
|
|
|
5806
5844
|
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
|
5807
5845
|
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
|
5808
5846
|
}
|
|
5847
|
+
.sm\:whitespace-normal {
|
|
5848
|
+
white-space: normal;
|
|
5849
|
+
}
|
|
5809
5850
|
.sm\:rounded-lg {
|
|
5810
5851
|
border-radius: var(--radius);
|
|
5811
5852
|
}
|
|
5853
|
+
.sm\:p-2 {
|
|
5854
|
+
padding: 0.5rem;
|
|
5855
|
+
}
|
|
5812
5856
|
.sm\:p-3 {
|
|
5813
5857
|
padding: 0.75rem;
|
|
5814
5858
|
}
|
|
@@ -5827,6 +5871,10 @@ body {
|
|
|
5827
5871
|
padding-left: 1.5rem;
|
|
5828
5872
|
padding-right: 1.5rem;
|
|
5829
5873
|
}
|
|
5874
|
+
.sm\:py-1 {
|
|
5875
|
+
padding-top: 0.25rem;
|
|
5876
|
+
padding-bottom: 0.25rem;
|
|
5877
|
+
}
|
|
5830
5878
|
.sm\:pe-4 {
|
|
5831
5879
|
padding-inline-end: 1rem;
|
|
5832
5880
|
}
|
|
@@ -5872,6 +5920,9 @@ body {
|
|
|
5872
5920
|
font-size: 0.75rem;
|
|
5873
5921
|
line-height: 1rem;
|
|
5874
5922
|
}
|
|
5923
|
+
.sm\:tracking-wide {
|
|
5924
|
+
letter-spacing: 0.025em;
|
|
5925
|
+
}
|
|
5875
5926
|
.data-\[vaul-drawer-direction\=left\]\:sm\:max-w-sm[data-vaul-drawer-direction=left] {
|
|
5876
5927
|
max-width: 24rem;
|
|
5877
5928
|
}
|
|
@@ -6041,6 +6092,16 @@ body {
|
|
|
6041
6092
|
padding-left: 2rem;
|
|
6042
6093
|
padding-right: 2rem;
|
|
6043
6094
|
}
|
|
6095
|
+
.lg\:text-xl {
|
|
6096
|
+
font-size: 1.25rem;
|
|
6097
|
+
line-height: 1.75rem;
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
@media (min-width: 1280px) {
|
|
6101
|
+
.xl\:text-2xl {
|
|
6102
|
+
font-size: 1.5rem;
|
|
6103
|
+
line-height: 2rem;
|
|
6104
|
+
}
|
|
6044
6105
|
}
|
|
6045
6106
|
.\[\&\:has\(\[aria-selected\]\)\]\:bg-muted:has([aria-selected]) {
|
|
6046
6107
|
background-color: hsl(var(--muted));
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentPropsWithoutRef, ComponentType } from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -125,7 +125,7 @@ interface SelectItem<T extends string> {
|
|
|
125
125
|
label: string;
|
|
126
126
|
value: T;
|
|
127
127
|
}
|
|
128
|
-
interface SelectTestIds
|
|
128
|
+
interface SelectTestIds {
|
|
129
129
|
root?: string;
|
|
130
130
|
base?: string;
|
|
131
131
|
trigger?: string;
|
|
@@ -135,8 +135,11 @@ interface SelectTestIds$1 {
|
|
|
135
135
|
group?: string;
|
|
136
136
|
label?: string;
|
|
137
137
|
item?: (value: string) => string;
|
|
138
|
+
paginationPrev?: string;
|
|
139
|
+
paginationNext?: string;
|
|
140
|
+
paginationPage?: (page: number) => string;
|
|
138
141
|
}
|
|
139
|
-
interface DefaultSelectProps
|
|
142
|
+
interface DefaultSelectProps<T extends string> extends ErrorMessageProps {
|
|
140
143
|
selected: T | null;
|
|
141
144
|
onChange: (value: T) => void;
|
|
142
145
|
placeholder?: string;
|
|
@@ -144,64 +147,22 @@ interface DefaultSelectProps$1<T extends string> extends ErrorMessageProps {
|
|
|
144
147
|
className?: string;
|
|
145
148
|
label?: string;
|
|
146
149
|
labelClassname?: string;
|
|
150
|
+
pagination?: number;
|
|
147
151
|
}
|
|
148
|
-
interface SelectPropsWithItems
|
|
152
|
+
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps<T> {
|
|
149
153
|
items: SelectItem<T>[];
|
|
150
154
|
groupItems?: never;
|
|
151
|
-
testIds?: SelectTestIds$1;
|
|
152
|
-
}
|
|
153
|
-
interface SelectPropsWithGroupItems$1<T extends string> extends DefaultSelectProps$1<T> {
|
|
154
|
-
items?: never;
|
|
155
|
-
groupItems: {
|
|
156
|
-
[key: string]: SelectItem<T>[];
|
|
157
|
-
};
|
|
158
|
-
testIds?: SelectTestIds$1;
|
|
159
|
-
}
|
|
160
|
-
type NewSelectProps<T extends string> = SelectPropsWithItems$1<T> | SelectPropsWithGroupItems$1<T>;
|
|
161
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
162
|
-
|
|
163
|
-
interface AvatarComboboxItem<T extends string> {
|
|
164
|
-
label: string;
|
|
165
|
-
value: T;
|
|
166
|
-
avatar?: ReactNode;
|
|
167
|
-
avatarClassName?: string;
|
|
168
|
-
}
|
|
169
|
-
interface SelectTestIds {
|
|
170
|
-
root?: string;
|
|
171
|
-
base?: string;
|
|
172
|
-
trigger?: string;
|
|
173
|
-
value?: string;
|
|
174
|
-
scrollarea?: string;
|
|
175
|
-
content?: string;
|
|
176
|
-
group?: string;
|
|
177
|
-
label?: string;
|
|
178
|
-
item?: (value: string) => string;
|
|
179
|
-
}
|
|
180
|
-
interface DefaultSelectProps extends ErrorMessageProps {
|
|
181
|
-
placeholder?: string;
|
|
182
|
-
onChange: (value: string) => void;
|
|
183
|
-
disabled?: boolean;
|
|
184
|
-
className?: string;
|
|
185
|
-
colors?: string[];
|
|
186
|
-
}
|
|
187
|
-
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps {
|
|
188
|
-
items: AvatarComboboxItem<T>[];
|
|
189
|
-
groupItems?: never;
|
|
190
155
|
testIds?: SelectTestIds;
|
|
191
156
|
}
|
|
192
|
-
interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps {
|
|
157
|
+
interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps<T> {
|
|
193
158
|
items?: never;
|
|
194
159
|
groupItems: {
|
|
195
|
-
[key: string]:
|
|
160
|
+
[key: string]: SelectItem<T>[];
|
|
196
161
|
};
|
|
197
162
|
testIds?: SelectTestIds;
|
|
198
163
|
}
|
|
199
|
-
type
|
|
200
|
-
declare function
|
|
201
|
-
selected?: T | null;
|
|
202
|
-
label?: string;
|
|
203
|
-
labelClassname?: string;
|
|
204
|
-
}): react_jsx_runtime.JSX.Element;
|
|
164
|
+
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
165
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
205
166
|
|
|
206
167
|
declare const formatFieldName: (fieldName: string) => string;
|
|
207
168
|
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
@@ -1645,6 +1606,17 @@ interface CheckboxTreeProps {
|
|
|
1645
1606
|
}
|
|
1646
1607
|
declare function CheckboxTree({ tree, renderNode }: CheckboxTreeProps): React__default.ReactNode;
|
|
1647
1608
|
|
|
1609
|
+
type MultiSelectContextType = {
|
|
1610
|
+
open: boolean;
|
|
1611
|
+
setOpen: (open: boolean) => void;
|
|
1612
|
+
selectedValues: Set<string>;
|
|
1613
|
+
toggleValue: (value: string) => void;
|
|
1614
|
+
items: Map<string, ReactNode>;
|
|
1615
|
+
onItemAdded: (value: string, label: ReactNode) => void;
|
|
1616
|
+
disabled?: boolean;
|
|
1617
|
+
emptyMessage?: ReactNode;
|
|
1618
|
+
error?: string;
|
|
1619
|
+
};
|
|
1648
1620
|
declare function MultiSelectBase({ children, values, defaultValues, onValuesChange, disabled, empty, error, }: {
|
|
1649
1621
|
children: ReactNode;
|
|
1650
1622
|
values?: string[];
|
|
@@ -1680,7 +1652,7 @@ declare function MultiSelectSeparatorBase(props: ComponentPropsWithoutRef<typeof
|
|
|
1680
1652
|
interface AgendaViewProps {
|
|
1681
1653
|
currentDate: Date;
|
|
1682
1654
|
events: CalendarEventAgenda[];
|
|
1683
|
-
onEventSelect?: (event: CalendarEventAgenda) => void;
|
|
1655
|
+
onEventSelect?: (event: CalendarEventAgenda, e?: React.MouseEvent) => void;
|
|
1684
1656
|
showUndatedEvents?: boolean;
|
|
1685
1657
|
}
|
|
1686
1658
|
declare function Agenda({ currentDate, events, onEventSelect, showUndatedEvents, }: AgendaViewProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1736,7 +1708,7 @@ type EventColorAgenda = "sky" | "amber" | "violet" | "rose" | "emerald" | "orang
|
|
|
1736
1708
|
interface DayViewProps {
|
|
1737
1709
|
currentDate: Date;
|
|
1738
1710
|
events: CalendarEventAgenda[];
|
|
1739
|
-
onEventSelect: (event: CalendarEventAgenda) => void;
|
|
1711
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1740
1712
|
showUndatedEvents?: boolean;
|
|
1741
1713
|
}
|
|
1742
1714
|
declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, }: DayViewProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1757,8 +1729,14 @@ interface EventCalendarProps {
|
|
|
1757
1729
|
className?: string;
|
|
1758
1730
|
initialView?: CalendarViewAgenda;
|
|
1759
1731
|
initialDate?: Date;
|
|
1732
|
+
onClick?: ((event: CalendarEventAgenda, e?: React__default.MouseEvent) => void) | React__default.ReactElement<ModalLikeProps>;
|
|
1733
|
+
}
|
|
1734
|
+
interface ModalLikeProps {
|
|
1735
|
+
event?: CalendarEventAgenda;
|
|
1736
|
+
onClose?: () => void;
|
|
1737
|
+
[key: string]: unknown;
|
|
1760
1738
|
}
|
|
1761
|
-
declare function EventAgenda({ events, onEventUpdate, className, initialView, initialDate, }: EventCalendarProps): react_jsx_runtime.JSX.Element;
|
|
1739
|
+
declare function EventAgenda({ events, onEventUpdate, className, initialView, initialDate, onClick, }: EventCalendarProps): react_jsx_runtime.JSX.Element;
|
|
1762
1740
|
|
|
1763
1741
|
interface EventItemProps {
|
|
1764
1742
|
event: CalendarEventAgenda;
|
|
@@ -1781,7 +1759,7 @@ declare function EventItemAgenda({ event, view, onClick, showTime, currentTime,
|
|
|
1781
1759
|
|
|
1782
1760
|
interface UndatedEventsProps {
|
|
1783
1761
|
events: CalendarEventAgenda[];
|
|
1784
|
-
onEventSelect?: (event: CalendarEventAgenda) => void;
|
|
1762
|
+
onEventSelect?: (event: CalendarEventAgenda, e?: React.MouseEvent) => void;
|
|
1785
1763
|
className?: string;
|
|
1786
1764
|
title?: string;
|
|
1787
1765
|
show?: boolean;
|
|
@@ -1811,7 +1789,7 @@ declare function useEventVisibilityAgenda({ eventHeight, eventGap, }: EventVisib
|
|
|
1811
1789
|
interface MonthViewProps {
|
|
1812
1790
|
currentDate: Date;
|
|
1813
1791
|
events: CalendarEventAgenda[];
|
|
1814
|
-
onEventSelect: (event: CalendarEventAgenda) => void;
|
|
1792
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1815
1793
|
showUndatedEvents?: boolean;
|
|
1816
1794
|
}
|
|
1817
1795
|
declare function MonthViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, }: MonthViewProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1842,21 +1820,86 @@ declare function getAllEventsForDayAgenda(events: CalendarEventAgenda[], day: Da
|
|
|
1842
1820
|
* Get all events for a day (for agenda view)
|
|
1843
1821
|
*/
|
|
1844
1822
|
declare function getAgendaEventsForDayAgenda(events: CalendarEventAgenda[], day: Date): CalendarEventAgenda[];
|
|
1823
|
+
/**
|
|
1824
|
+
* Return the event start as a Date if possible
|
|
1825
|
+
*/
|
|
1826
|
+
declare function getEventStartDate(event: CalendarEventAgenda): Date | undefined;
|
|
1827
|
+
/**
|
|
1828
|
+
* Return the event end as a Date. If `end` is not provided but `duration` (minutes) is,
|
|
1829
|
+
* compute end = start + duration minutes.
|
|
1830
|
+
*/
|
|
1831
|
+
declare function getEventEndDate(event: CalendarEventAgenda): Date | undefined;
|
|
1845
1832
|
declare function normalizeAttendDate(d?: unknown): Date | undefined;
|
|
1846
1833
|
/**
|
|
1847
1834
|
* Add hours to a date
|
|
1848
1835
|
*/
|
|
1836
|
+
declare function addMinutesToDateAgenda(date: Date, minutes: number): Date;
|
|
1849
1837
|
declare function addHoursToDateAgenda(date: Date, hours: number): Date;
|
|
1850
1838
|
|
|
1851
1839
|
interface WeekViewProps {
|
|
1852
1840
|
currentDate: Date;
|
|
1853
1841
|
events: CalendarEventAgenda[];
|
|
1854
|
-
onEventSelect: (event: CalendarEventAgenda) => void;
|
|
1842
|
+
onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
|
|
1855
1843
|
onEventCreate?: (startTime: Date) => void;
|
|
1856
1844
|
showUndatedEvents?: boolean;
|
|
1857
1845
|
}
|
|
1858
1846
|
declare function WeekViewAgenda({ currentDate, events, onEventSelect, onEventCreate, showUndatedEvents, }: WeekViewProps): react_jsx_runtime.JSX.Element;
|
|
1859
1847
|
|
|
1848
|
+
type IconProps = {
|
|
1849
|
+
className?: string;
|
|
1850
|
+
size?: number | string;
|
|
1851
|
+
};
|
|
1852
|
+
type BannerProps = {
|
|
1853
|
+
icon?: ReactNode | ComponentType<IconProps>;
|
|
1854
|
+
title?: string;
|
|
1855
|
+
description?: string;
|
|
1856
|
+
actionText?: ReactNode;
|
|
1857
|
+
id?: string;
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
interface AvatarComboboxItem<T extends string> {
|
|
1861
|
+
label: string;
|
|
1862
|
+
value: T;
|
|
1863
|
+
avatar?: ReactNode;
|
|
1864
|
+
avatarClassName?: string;
|
|
1865
|
+
}
|
|
1866
|
+
interface AvatarComboboxTestIds {
|
|
1867
|
+
root?: string;
|
|
1868
|
+
base?: string;
|
|
1869
|
+
trigger?: string;
|
|
1870
|
+
value?: string;
|
|
1871
|
+
scrollarea?: string;
|
|
1872
|
+
content?: string;
|
|
1873
|
+
group?: string;
|
|
1874
|
+
label?: string;
|
|
1875
|
+
item?: (value: string) => string;
|
|
1876
|
+
}
|
|
1877
|
+
interface DefaultAvatarComboboxProps extends ErrorMessageProps {
|
|
1878
|
+
placeholder?: string;
|
|
1879
|
+
onChange: (value: string) => void;
|
|
1880
|
+
disabled?: boolean;
|
|
1881
|
+
className?: string;
|
|
1882
|
+
colors?: string[];
|
|
1883
|
+
}
|
|
1884
|
+
interface AvatarComboboxPropsWithItems<T extends string> extends DefaultAvatarComboboxProps {
|
|
1885
|
+
items: AvatarComboboxItem<T>[];
|
|
1886
|
+
groupItems?: never;
|
|
1887
|
+
testIds?: AvatarComboboxTestIds;
|
|
1888
|
+
}
|
|
1889
|
+
interface AvatarComboboxPropsWithGroupItems<T extends string> extends DefaultAvatarComboboxProps {
|
|
1890
|
+
items?: never;
|
|
1891
|
+
groupItems: {
|
|
1892
|
+
[key: string]: AvatarComboboxItem<T>[];
|
|
1893
|
+
};
|
|
1894
|
+
testIds?: AvatarComboboxTestIds;
|
|
1895
|
+
}
|
|
1896
|
+
type AvatarComboboxProps<T extends string> = AvatarComboboxPropsWithItems<T> | AvatarComboboxPropsWithGroupItems<T>;
|
|
1897
|
+
declare function AvatarCombobox<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, colors, }: AvatarComboboxProps<T> & {
|
|
1898
|
+
selected?: T | null;
|
|
1899
|
+
label?: string;
|
|
1900
|
+
labelClassname?: string;
|
|
1901
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1902
|
+
|
|
1860
1903
|
declare function useIsMobile(): boolean;
|
|
1861
1904
|
|
|
1862
1905
|
interface Position {
|
|
@@ -1876,4 +1919,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1876
1919
|
isDragging: boolean;
|
|
1877
1920
|
};
|
|
1878
1921
|
|
|
1879
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventsForDay, getEventsForDayAgenda, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|
|
1922
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|