konsolpro-custom-ui 0.0.335 → 0.0.337
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/chunks/uploader-B-BmspDu.js +28819 -0
- package/dist/lib/index.js +189 -188
- package/dist/lib/ui/accordion.js +31 -31
- package/dist/lib/ui/alert.js +1 -1
- package/dist/lib/ui/autocomplete.js +3 -3
- package/dist/lib/ui/banner.js +8 -0
- package/dist/lib/ui/button.js +1 -1
- package/dist/lib/ui/calendar.js +1 -1
- package/dist/lib/ui/combobox-base/combobox-base.js +2 -2
- package/dist/lib/ui/combobox-base/index.js +1 -1
- package/dist/lib/ui/combobox-multiselect/combobox-multiselect.js +1 -1
- package/dist/lib/ui/combobox-multiselect/index.js +1 -1
- package/dist/lib/ui/combobox-primitive/components/combobox-actions.js +1 -1
- package/dist/lib/ui/combobox-primitive/components/index.js +3 -3
- package/dist/lib/ui/combobox-primitive/index.js +5 -5
- package/dist/lib/ui/combobox.js +1 -1
- package/dist/lib/ui/date-picker.js +15 -15
- package/dist/lib/ui/date-range-picker.js +53 -53
- package/dist/lib/ui/dialog/dialog-base/dialog-base.js +1 -1
- package/dist/lib/ui/dialog/dialog-base/index.js +1 -1
- package/dist/lib/ui/dialog/dialog-primitive/dialog-primitive.js +1 -1
- package/dist/lib/ui/dialog/dialog-primitive/index.js +2 -2
- package/dist/lib/ui/dialog/index.js +2 -2
- package/dist/lib/ui/dropdown.js +1 -1
- package/dist/lib/ui/input-number/index.js +2 -2
- package/dist/lib/ui/input-number/input-number.js +1 -1
- package/dist/lib/ui/input.js +1 -1
- package/dist/lib/ui/masked-input.js +1 -1
- package/dist/lib/ui/modal.js +1 -1
- package/dist/lib/ui/otp-input.js +1 -1
- package/dist/lib/ui/pagination/pagination.js +7 -7
- package/dist/lib/ui/phone-input/phone-input.js +5 -5
- package/dist/lib/ui/radio.js +1 -1
- package/dist/lib/ui/schedule-calendar/calendar-day-card.js +1 -1
- package/dist/lib/ui/schedule-calendar/embla-calendar-card.js +1 -1
- package/dist/lib/ui/schedule-calendar/schedule-calendar-strip.js +6 -6
- package/dist/lib/ui/schedule-calendar/schedule-header.js +20 -20
- package/dist/lib/ui/select.js +1 -1
- package/dist/lib/ui/stepper.js +1 -1
- package/dist/lib/ui/table/table-body.js +1 -1
- package/dist/lib/ui/table/table-settings.js +1 -1
- package/dist/lib/ui/textarea.js +1 -1
- package/dist/lib/ui/time-picker.js +1 -1
- package/dist/lib/ui/time-range-picker.js +3 -3
- package/dist/lib/ui/timeline.js +1 -1
- package/dist/lib/ui/typography.js +1 -1
- package/dist/lib/ui/uploader.js +1 -1
- package/dist/styles/konsolpro-custom-ui.css +1 -1
- package/dist/styles/variables.css +30 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/ui/banner.d.ts +12 -0
- package/dist/types/components/ui/phone-input/locales/ru.json.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/uploader-CJhU85NW.js +0 -28659
package/dist/lib/index.js
CHANGED
|
@@ -1,199 +1,200 @@
|
|
|
1
|
-
import { A as r, B as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { IconBanks as
|
|
4
|
-
import { IconDocument as
|
|
5
|
-
import { Accordion as
|
|
6
|
-
import { Autocomplete as
|
|
7
|
-
import { Avatar as
|
|
8
|
-
import { Card as
|
|
9
|
-
import { SimpleCarousel as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { ComboboxPrimitiveProvider as
|
|
1
|
+
import { A as r, B as a, a as t, C as s, e as n, c as m, d as p, E as i, r as l, D as x, s as f, t as C, u, v as c, w as d, f as g, x as b, y as S, g as T, h as D, i as I, j as P, k as h, l as v, F as w, I as A, m as V, q as k, n as y, o as B, p as L, M as E, J as M, O as R, P as O, R as G, G as H, S as _, K as W, L as z, N as F, Q as K, T as N, U, V as Z, W as j, X as q, Y as J, Z as Q, $ as X, b as Y, z as $, H as oo, _ as eo } from "../chunks/uploader-B-BmspDu.js";
|
|
2
|
+
import { Icon as ao } from "./icon/icon.js";
|
|
3
|
+
import { IconBanks as so } from "./icon-banks/icon-banks.js";
|
|
4
|
+
import { IconDocument as mo } from "./icon-documents/icon-document.js";
|
|
5
|
+
import { Accordion as io, AccordionContent as lo, AccordionItem as xo, AccordionTrigger as fo } from "./ui/accordion.js";
|
|
6
|
+
import { Autocomplete as uo } from "./ui/autocomplete.js";
|
|
7
|
+
import { Avatar as go, AvatarFallback as bo, AvatarImage as So } from "./ui/avatar.js";
|
|
8
|
+
import { Card as Do } from "./ui/card.js";
|
|
9
|
+
import { SimpleCarousel as Po } from "./ui/carousel.js";
|
|
10
|
+
import { Checkbox as vo, checkboxVariants as wo, indicatorVariants as Ao } from "./ui/checkbox.js";
|
|
11
|
+
import { ComboboxPrimitiveProvider as ko, useComboboxPrimitiveContext as yo } from "./ui/combobox-primitive/combobox-primitive-context.js";
|
|
12
12
|
import { ComboboxContainer as Lo } from "./ui/combobox-primitive/components/combobox-container.js";
|
|
13
|
-
import { ComboboxInput as
|
|
14
|
-
import { ComboboxItemRenderer as
|
|
15
|
-
import { ComboboxMenu as
|
|
16
|
-
import { Item as
|
|
17
|
-
import { ItemView as
|
|
18
|
-
import { List as
|
|
19
|
-
import { Command as
|
|
20
|
-
import { Carousel as
|
|
21
|
-
import { DatePicker as
|
|
22
|
-
import { DateRangePicker as
|
|
23
|
-
import { useDialogBaseCtx as
|
|
24
|
-
import { Divider as
|
|
25
|
-
import { Link as
|
|
26
|
-
import { Pagination as
|
|
27
|
-
import { P as
|
|
28
|
-
import { Progress as
|
|
29
|
-
import { CalendarDayCard as
|
|
30
|
-
import { CARD_WIDTH as
|
|
31
|
-
import { EmblaCalendarCard as
|
|
32
|
-
import { EmblaCalendarStrip as
|
|
33
|
-
import { CalendarStrip as
|
|
34
|
-
import { ScheduleHeader as
|
|
35
|
-
import { useScheduleCalendar as
|
|
36
|
-
import { useScheduleSync as
|
|
37
|
-
import { formatMonthGenitive as
|
|
38
|
-
import { SegmentItem as
|
|
39
|
-
import { Spinner as tr, spinnerVariants as
|
|
40
|
-
import { Stepper as
|
|
41
|
-
import { Switch as
|
|
42
|
-
import { Table as
|
|
43
|
-
import { TableSettings as
|
|
44
|
-
import { Tabs as
|
|
45
|
-
import { Tag as
|
|
46
|
-
import { TimePicker as
|
|
47
|
-
import { TimeRangePicker as
|
|
48
|
-
import { Timeline as
|
|
49
|
-
import { Toaster as
|
|
50
|
-
import { T as
|
|
13
|
+
import { ComboboxInput as Mo } from "./ui/combobox-primitive/components/combobox-input.js";
|
|
14
|
+
import { ComboboxItemRenderer as Oo } from "./ui/combobox-primitive/components/combobox-item-renderer.js";
|
|
15
|
+
import { ComboboxMenu as Ho } from "./ui/combobox-primitive/components/combobox-menu.js";
|
|
16
|
+
import { Item as Wo } from "./ui/combobox-primitive/components/Item.js";
|
|
17
|
+
import { ItemView as Fo } from "./ui/combobox-primitive/components/item-view.js";
|
|
18
|
+
import { List as No } from "./ui/combobox-primitive/components/list.js";
|
|
19
|
+
import { Command as Zo, CommandEmpty as jo, CommandGroup as qo, CommandInput as Jo, CommandItem as Qo, CommandList as Xo, CommandSeparator as Yo, CommandShortcut as $o } from "./ui/command.js";
|
|
20
|
+
import { Carousel as ee, CarouselButtonsView as re, CarouselContentView as ae, CarouselDotsView as te, DefaultCustomizableCarousel as se, HeadlessCarousel as ne, useCarousel as me, useCarouselContext as pe } from "./ui/customizable-carousel.js";
|
|
21
|
+
import { DatePicker as le } from "./ui/date-picker.js";
|
|
22
|
+
import { DateRangePicker as fe } from "./ui/date-range-picker.js";
|
|
23
|
+
import { useDialogBaseCtx as ue } from "./ui/dialog/dialog-base/use-base-dialog.js";
|
|
24
|
+
import { Divider as de } from "./ui/divider.js";
|
|
25
|
+
import { Link as be } from "./ui/link.js";
|
|
26
|
+
import { Pagination as Te } from "./ui/pagination/pagination.js";
|
|
27
|
+
import { P as Ie, a as Pe, b as he, c as ve } from "../chunks/popover-kFSgc5Lv.js";
|
|
28
|
+
import { Progress as Ae } from "./ui/progress.js";
|
|
29
|
+
import { CalendarDayCard as ke } from "./ui/schedule-calendar/calendar-day-card.js";
|
|
30
|
+
import { CARD_WIDTH as Be, MOBILE_BREAKPOINT as Le, SCROLL_WEEK_SIZE as Ee } from "./ui/schedule-calendar/constants.js";
|
|
31
|
+
import { EmblaCalendarCard as Re } from "./ui/schedule-calendar/embla-calendar-card.js";
|
|
32
|
+
import { EmblaCalendarStrip as Ge } from "./ui/schedule-calendar/embla-calendar-strip.js";
|
|
33
|
+
import { CalendarStrip as _e } from "./ui/schedule-calendar/schedule-calendar-strip.js";
|
|
34
|
+
import { ScheduleHeader as ze } from "./ui/schedule-calendar/schedule-header.js";
|
|
35
|
+
import { useScheduleCalendar as Ke } from "./ui/schedule-calendar/use-schedule-calendar.js";
|
|
36
|
+
import { useScheduleSync as Ue } from "./ui/schedule-calendar/use-schedule-sync.js";
|
|
37
|
+
import { formatMonthGenitive as je, formatMonthLong as qe, formatWeekdayShort as Je, getThreeMonthsAround as Qe, parseDateString as Xe, startOfDay as Ye } from "./ui/schedule-calendar/utils.js";
|
|
38
|
+
import { SegmentItem as or, Segments as er, SingleSegment as rr } from "./ui/segments.js";
|
|
39
|
+
import { Spinner as tr, spinnerVariants as sr } from "./ui/spinner.js";
|
|
40
|
+
import { Stepper as mr } from "./ui/stepper.js";
|
|
41
|
+
import { Switch as ir, switchVariants as lr, thumbVariants as xr } from "./ui/switch.js";
|
|
42
|
+
import { Table as Cr } from "./ui/table/table.js";
|
|
43
|
+
import { TableSettings as cr } from "./ui/table/table-settings.js";
|
|
44
|
+
import { Tabs as gr, TabsContent as br, TabsList as Sr, TabsTrigger as Tr } from "./ui/tabs.js";
|
|
45
|
+
import { Tag as Ir, tagVariants as Pr } from "./ui/tag.js";
|
|
46
|
+
import { TimePicker as vr } from "./ui/time-picker.js";
|
|
47
|
+
import { TimeRangePicker as Ar } from "./ui/time-range-picker.js";
|
|
48
|
+
import { Timeline as kr } from "./ui/timeline.js";
|
|
49
|
+
import { Toaster as Br, toast as Lr } from "./ui/toaster.js";
|
|
50
|
+
import { T as Mr, a as Rr, b as Or, c as Gr } from "../chunks/tooltip-BxRtZLBR.js";
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
io as Accordion,
|
|
53
|
+
lo as AccordionContent,
|
|
54
|
+
xo as AccordionItem,
|
|
55
|
+
fo as AccordionTrigger,
|
|
56
56
|
r as Alert,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
uo as Autocomplete,
|
|
58
|
+
go as Avatar,
|
|
59
|
+
bo as AvatarFallback,
|
|
60
|
+
So as AvatarImage,
|
|
61
|
+
a as Banner,
|
|
61
62
|
t as Button,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
Be as CARD_WIDTH,
|
|
64
|
+
ke as CalendarDayCard,
|
|
65
|
+
_e as CalendarStrip,
|
|
66
|
+
Do as Card,
|
|
67
|
+
ee as Carousel,
|
|
68
|
+
re as CarouselButtonsView,
|
|
69
|
+
ae as CarouselContentView,
|
|
69
70
|
te as CarouselDotsView,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
vo as Checkbox,
|
|
72
|
+
s as Combobox,
|
|
73
|
+
n as ComboboxActions,
|
|
74
|
+
m as ComboboxBase,
|
|
74
75
|
Lo as ComboboxContainer,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
76
|
+
Mo as ComboboxInput,
|
|
77
|
+
Oo as ComboboxItemRenderer,
|
|
78
|
+
Ho as ComboboxMenu,
|
|
79
|
+
p as ComboboxMultiSelect,
|
|
80
|
+
ko as ComboboxPrimitiveProvider,
|
|
81
|
+
Zo as Command,
|
|
82
|
+
jo as CommandEmpty,
|
|
83
|
+
qo as CommandGroup,
|
|
84
|
+
Jo as CommandInput,
|
|
85
|
+
Qo as CommandItem,
|
|
86
|
+
Xo as CommandList,
|
|
87
|
+
Yo as CommandSeparator,
|
|
88
|
+
$o as CommandShortcut,
|
|
89
|
+
i as CountrySelectOption,
|
|
90
|
+
le as DatePicker,
|
|
91
|
+
fe as DateRangePicker,
|
|
92
|
+
se as DefaultCustomizableCarousel,
|
|
93
|
+
l as Dialog,
|
|
94
|
+
x as DialogBase,
|
|
95
|
+
f as DialogClose,
|
|
96
|
+
C as DialogContent,
|
|
97
|
+
u as DialogHeader,
|
|
98
|
+
c as DialogOverlay,
|
|
99
|
+
d as DialogPortal,
|
|
100
|
+
g as DialogPrimitive,
|
|
101
|
+
b as DialogTitle,
|
|
102
|
+
S as DialogTrigger,
|
|
103
|
+
de as Divider,
|
|
104
|
+
T as Dropdown,
|
|
105
|
+
D as DropdownContent,
|
|
106
|
+
I as DropdownItem,
|
|
107
|
+
P as DropdownLabel,
|
|
108
|
+
h as DropdownSeparator,
|
|
109
|
+
v as DropdownTrigger,
|
|
110
|
+
Re as EmblaCalendarCard,
|
|
111
|
+
Ge as EmblaCalendarStrip,
|
|
112
|
+
w as FlagComponent,
|
|
113
|
+
ne as HeadlessCarousel,
|
|
114
|
+
ao as Icon,
|
|
115
|
+
so as IconBanks,
|
|
116
|
+
mo as IconDocument,
|
|
117
|
+
A as Input,
|
|
118
|
+
V as InputLink,
|
|
119
|
+
k as InputNumber,
|
|
120
|
+
y as InputPassword,
|
|
121
|
+
B as InputSearch,
|
|
121
122
|
L as InputTitle,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
Wo as Item,
|
|
124
|
+
Fo as ItemView,
|
|
125
|
+
be as Link,
|
|
126
|
+
No as List,
|
|
126
127
|
Le as MOBILE_BREAKPOINT,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
128
|
+
E as MaskedInput,
|
|
129
|
+
M as MultiSelect,
|
|
130
|
+
R as OtpInput,
|
|
131
|
+
Te as Pagination,
|
|
132
|
+
O as PhoneInput,
|
|
133
|
+
Ie as Popover,
|
|
134
|
+
Pe as PopoverAnchor,
|
|
135
|
+
he as PopoverContent,
|
|
136
|
+
ve as PopoverTrigger,
|
|
137
|
+
Ae as Progress,
|
|
138
|
+
G as Radio,
|
|
139
|
+
H as RadioGroup,
|
|
140
|
+
Ee as SCROLL_WEEK_SIZE,
|
|
141
|
+
ze as ScheduleHeader,
|
|
142
|
+
or as SegmentItem,
|
|
143
|
+
er as Segments,
|
|
144
|
+
_ as Select,
|
|
145
|
+
W as SelectContent,
|
|
146
|
+
z as SelectGroup,
|
|
147
|
+
F as SelectItem,
|
|
148
|
+
K as SelectLabel,
|
|
149
|
+
N as SelectScrollDownButton,
|
|
150
|
+
U as SelectScrollUpButton,
|
|
151
|
+
Z as SelectSeparator,
|
|
152
|
+
j as SelectTrigger,
|
|
153
|
+
q as SelectValue,
|
|
154
|
+
Po as SimpleCarousel,
|
|
155
|
+
rr as SingleSegment,
|
|
155
156
|
tr as Spinner,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
157
|
+
mr as Stepper,
|
|
158
|
+
ir as Switch,
|
|
159
|
+
Cr as Table,
|
|
160
|
+
cr as TableSettings,
|
|
161
|
+
gr as Tabs,
|
|
162
|
+
br as TabsContent,
|
|
163
|
+
Sr as TabsList,
|
|
164
|
+
Tr as TabsTrigger,
|
|
165
|
+
Ir as Tag,
|
|
166
|
+
J as Textarea,
|
|
167
|
+
vr as TimePicker,
|
|
168
|
+
Ar as TimeRangePicker,
|
|
169
|
+
kr as Timeline,
|
|
170
|
+
Br as Toaster,
|
|
171
|
+
Mr as Tooltip,
|
|
172
|
+
Rr as TooltipContent,
|
|
173
|
+
Or as TooltipProvider,
|
|
174
|
+
Gr as TooltipTrigger,
|
|
175
|
+
Q as Typography,
|
|
176
|
+
X as Uploader,
|
|
177
|
+
Y as buttonVariants,
|
|
178
|
+
wo as checkboxVariants,
|
|
179
|
+
je as formatMonthGenitive,
|
|
180
|
+
qe as formatMonthLong,
|
|
181
|
+
Je as formatWeekdayShort,
|
|
182
|
+
Qe as getThreeMonthsAround,
|
|
183
|
+
Ao as indicatorVariants,
|
|
184
|
+
$ as normalizePhoneInput,
|
|
185
|
+
Xe as parseDateString,
|
|
186
|
+
oo as radioVariants,
|
|
187
|
+
sr as spinnerVariants,
|
|
188
|
+
Ye as startOfDay,
|
|
189
|
+
lr as switchVariants,
|
|
190
|
+
Pr as tagVariants,
|
|
191
|
+
xr as thumbVariants,
|
|
191
192
|
Lr as toast,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
193
|
+
eo as typographyVariants,
|
|
194
|
+
me as useCarousel,
|
|
195
|
+
pe as useCarouselContext,
|
|
196
|
+
yo as useComboboxPrimitiveContext,
|
|
197
|
+
ue as useDialogBaseCtx,
|
|
198
|
+
Ke as useScheduleCalendar,
|
|
199
|
+
Ue as useScheduleSync
|
|
199
200
|
};
|
package/dist/lib/ui/accordion.js
CHANGED
|
@@ -26,13 +26,13 @@ import { c as X } from "../../chunks/index-E4d_Gd-w.js";
|
|
|
26
26
|
import { a as Re } from "../../chunks/index-I8P2QgPV.js";
|
|
27
27
|
import { u as Z } from "../../chunks/index-DLcqcWxM.js";
|
|
28
28
|
import { c as ee } from "../../chunks/index-DLeNytVF.js";
|
|
29
|
-
import { u as
|
|
29
|
+
import { u as G } from "../../chunks/index-DYfkNB0n.js";
|
|
30
30
|
import { P as y } from "../../chunks/index-BJD1rYeT.js";
|
|
31
31
|
import { u as _e } from "../../chunks/index-DuekHEmj.js";
|
|
32
32
|
import { P as we } from "../../chunks/index-PsqJG3fE.js";
|
|
33
33
|
import { u as oe } from "../../chunks/index-1Er1dKQf.js";
|
|
34
34
|
import { u as Ne } from "../../chunks/index-ByaXH_ih.js";
|
|
35
|
-
import {
|
|
35
|
+
import { a as Pe } from "../../chunks/uploader-B-BmspDu.js";
|
|
36
36
|
import { c as S } from "../../chunks/utils-TbLXCoKm.js";
|
|
37
37
|
import "../icon/icons.js";
|
|
38
38
|
import "../icon-banks/icons-banks.js";
|
|
@@ -61,7 +61,7 @@ import "./tabs.js";
|
|
|
61
61
|
import "./tag.js";
|
|
62
62
|
import "./toaster.js";
|
|
63
63
|
import "../../chunks/tooltip-BxRtZLBR.js";
|
|
64
|
-
var O = "Collapsible", [ye, te] = X(O), [Ee,
|
|
64
|
+
var O = "Collapsible", [ye, te] = X(O), [Ee, K] = ye(O), re = b.forwardRef(
|
|
65
65
|
(e, r) => {
|
|
66
66
|
const g = e, {
|
|
67
67
|
__scopeCollapsible: o,
|
|
@@ -75,7 +75,7 @@ var O = "Collapsible", [ye, te] = X(O), [Ee, G] = ye(O), re = b.forwardRef(
|
|
|
75
75
|
"defaultOpen",
|
|
76
76
|
"disabled",
|
|
77
77
|
"onOpenChange"
|
|
78
|
-
]), [p, m] =
|
|
78
|
+
]), [p, m] = G({
|
|
79
79
|
prop: t,
|
|
80
80
|
defaultProp: a != null ? a : !1,
|
|
81
81
|
onChange: i,
|
|
@@ -92,7 +92,7 @@ var O = "Collapsible", [ye, te] = X(O), [Ee, G] = ye(O), re = b.forwardRef(
|
|
|
92
92
|
children: /* @__PURE__ */ c(
|
|
93
93
|
y.div,
|
|
94
94
|
f(s({
|
|
95
|
-
"data-state":
|
|
95
|
+
"data-state": j(p),
|
|
96
96
|
"data-disabled": n ? "" : void 0
|
|
97
97
|
}, l), {
|
|
98
98
|
ref: r
|
|
@@ -105,14 +105,14 @@ var O = "Collapsible", [ye, te] = X(O), [Ee, G] = ye(O), re = b.forwardRef(
|
|
|
105
105
|
re.displayName = O;
|
|
106
106
|
var ne = "CollapsibleTrigger", ae = b.forwardRef(
|
|
107
107
|
(e, r) => {
|
|
108
|
-
const n = e, { __scopeCollapsible: o } = n, t = u(n, ["__scopeCollapsible"]), a =
|
|
108
|
+
const n = e, { __scopeCollapsible: o } = n, t = u(n, ["__scopeCollapsible"]), a = K(ne, o);
|
|
109
109
|
return /* @__PURE__ */ c(
|
|
110
110
|
y.button,
|
|
111
111
|
f(s({
|
|
112
112
|
type: "button",
|
|
113
113
|
"aria-controls": a.contentId,
|
|
114
114
|
"aria-expanded": a.open || !1,
|
|
115
|
-
"data-state":
|
|
115
|
+
"data-state": j(a.open),
|
|
116
116
|
"data-disabled": a.disabled ? "" : void 0,
|
|
117
117
|
disabled: a.disabled
|
|
118
118
|
}, t), {
|
|
@@ -123,15 +123,15 @@ var ne = "CollapsibleTrigger", ae = b.forwardRef(
|
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
125
|
ae.displayName = ne;
|
|
126
|
-
var
|
|
126
|
+
var V = "CollapsibleContent", ie = b.forwardRef(
|
|
127
127
|
(e, r) => {
|
|
128
|
-
const n = e, { forceMount: o } = n, t = u(n, ["forceMount"]), a =
|
|
128
|
+
const n = e, { forceMount: o } = n, t = u(n, ["forceMount"]), a = K(V, e.__scopeCollapsible);
|
|
129
129
|
return /* @__PURE__ */ c(we, { present: o || a.open, children: ({ present: i }) => /* @__PURE__ */ c(Se, f(s({}, t), { ref: r, present: i })) });
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
|
-
ie.displayName =
|
|
132
|
+
ie.displayName = V;
|
|
133
133
|
var Se = b.forwardRef((e, r) => {
|
|
134
|
-
const P = e, { __scopeCollapsible: o, present: t, children: a } = P, n = u(P, ["__scopeCollapsible", "present", "children"]), i =
|
|
134
|
+
const P = e, { __scopeCollapsible: o, present: t, children: a } = P, n = u(P, ["__scopeCollapsible", "present", "children"]), i = K(V, o), [l, p] = b.useState(t), m = b.useRef(null), g = Z(r, m), v = b.useRef(0), h = v.current, I = b.useRef(0), R = I.current, N = i.open || l, _ = b.useRef(N), x = b.useRef(void 0);
|
|
135
135
|
return b.useEffect(() => {
|
|
136
136
|
const d = requestAnimationFrame(() => _.current = !1);
|
|
137
137
|
return () => cancelAnimationFrame(d);
|
|
@@ -148,7 +148,7 @@ var Se = b.forwardRef((e, r) => {
|
|
|
148
148
|
}, [i.open, t]), /* @__PURE__ */ c(
|
|
149
149
|
y.div,
|
|
150
150
|
f(s({
|
|
151
|
-
"data-state":
|
|
151
|
+
"data-state": j(i.open),
|
|
152
152
|
"data-disabled": i.disabled ? "" : void 0,
|
|
153
153
|
id: i.contentId,
|
|
154
154
|
hidden: !N
|
|
@@ -162,16 +162,16 @@ var Se = b.forwardRef((e, r) => {
|
|
|
162
162
|
})
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
|
-
function
|
|
165
|
+
function j(e) {
|
|
166
166
|
return e ? "open" : "closed";
|
|
167
167
|
}
|
|
168
|
-
var De = re, Oe = ae, Te = ie, A = "Accordion", ke = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
168
|
+
var De = re, Oe = ae, Te = ie, A = "Accordion", ke = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [B, Me, $e] = Re(A), [T, Ho] = X(A, [
|
|
169
169
|
$e,
|
|
170
170
|
te
|
|
171
171
|
]), F = te(), ce = C.forwardRef(
|
|
172
172
|
(e, r) => {
|
|
173
173
|
const i = e, { type: o } = i, t = u(i, ["type"]), a = t, n = t;
|
|
174
|
-
return /* @__PURE__ */ c(
|
|
174
|
+
return /* @__PURE__ */ c(B.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ c(Ge, f(s({}, n), { ref: r })) : /* @__PURE__ */ c(ze, f(s({}, a), { ref: r })) });
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
ce.displayName = A;
|
|
@@ -191,7 +191,7 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
191
191
|
"defaultValue",
|
|
192
192
|
"onValueChange",
|
|
193
193
|
"collapsible"
|
|
194
|
-
]), [l, p] =
|
|
194
|
+
]), [l, p] = G({
|
|
195
195
|
prop: o,
|
|
196
196
|
defaultProp: t != null ? t : "",
|
|
197
197
|
onChange: a,
|
|
@@ -208,7 +208,7 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
|
-
),
|
|
211
|
+
), Ge = C.forwardRef((e, r) => {
|
|
212
212
|
const g = e, {
|
|
213
213
|
value: o,
|
|
214
214
|
defaultValue: t,
|
|
@@ -218,7 +218,7 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
218
218
|
"value",
|
|
219
219
|
"defaultValue",
|
|
220
220
|
"onValueChange"
|
|
221
|
-
]), [i, l] =
|
|
221
|
+
]), [i, l] = G({
|
|
222
222
|
prop: o,
|
|
223
223
|
defaultProp: t != null ? t : [],
|
|
224
224
|
onChange: a,
|
|
@@ -240,7 +240,7 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
240
240
|
children: /* @__PURE__ */ c(le, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c(de, f(s({}, n), { ref: r })) })
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
|
-
}), [
|
|
243
|
+
}), [Ke, k] = T(A), de = C.forwardRef(
|
|
244
244
|
(e, r) => {
|
|
245
245
|
const I = e, { __scopeAccordion: o, disabled: t, dir: a, orientation: n = "vertical" } = I, i = u(I, ["__scopeAccordion", "disabled", "dir", "orientation"]), l = C.useRef(null), p = Z(l, r), m = Me(o), v = Ne(a) === "ltr", h = ee(e.onKeyDown, (R) => {
|
|
246
246
|
var q;
|
|
@@ -281,13 +281,13 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
281
281
|
(q = _[ge].ref.current) == null || q.focus();
|
|
282
282
|
});
|
|
283
283
|
return /* @__PURE__ */ c(
|
|
284
|
-
|
|
284
|
+
Ke,
|
|
285
285
|
{
|
|
286
286
|
scope: o,
|
|
287
287
|
disabled: t,
|
|
288
288
|
direction: a,
|
|
289
289
|
orientation: n,
|
|
290
|
-
children: /* @__PURE__ */ c(
|
|
290
|
+
children: /* @__PURE__ */ c(B.Slot, { scope: o, children: /* @__PURE__ */ c(
|
|
291
291
|
y.div,
|
|
292
292
|
f(s({}, i), {
|
|
293
293
|
"data-orientation": n,
|
|
@@ -298,11 +298,11 @@ var [se, He] = T(A), [le, Le] = T(
|
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
), D = "AccordionItem", [
|
|
301
|
+
), D = "AccordionItem", [Ve, U] = T(D), pe = C.forwardRef(
|
|
302
302
|
(e, r) => {
|
|
303
303
|
const v = e, { __scopeAccordion: o, value: t } = v, a = u(v, ["__scopeAccordion", "value"]), n = k(D, o), i = He(D, o), l = F(o), p = oe(), m = t && i.value.includes(t) || !1, g = n.disabled || e.disabled;
|
|
304
304
|
return /* @__PURE__ */ c(
|
|
305
|
-
|
|
305
|
+
Ve,
|
|
306
306
|
{
|
|
307
307
|
scope: o,
|
|
308
308
|
open: m,
|
|
@@ -346,7 +346,7 @@ ue.displayName = me;
|
|
|
346
346
|
var z = "AccordionTrigger", fe = C.forwardRef(
|
|
347
347
|
(e, r) => {
|
|
348
348
|
const p = e, { __scopeAccordion: o } = p, t = u(p, ["__scopeAccordion"]), a = k(A, o), n = U(z, o), i = Le(z, o), l = F(o);
|
|
349
|
-
return /* @__PURE__ */ c(
|
|
349
|
+
return /* @__PURE__ */ c(B.ItemSlot, { scope: o, children: /* @__PURE__ */ c(
|
|
350
350
|
Oe,
|
|
351
351
|
f(s(s({
|
|
352
352
|
"aria-disabled": n.open && !i.collapsible || void 0,
|
|
@@ -382,10 +382,10 @@ Ce.displayName = ve;
|
|
|
382
382
|
function be(e) {
|
|
383
383
|
return e ? "open" : "closed";
|
|
384
384
|
}
|
|
385
|
-
var
|
|
385
|
+
var je = ce, Be = pe, Fe = ue, Ue = fe, qe = Ce;
|
|
386
386
|
function Lo(r) {
|
|
387
387
|
var e = u(r, []);
|
|
388
|
-
return /* @__PURE__ */ c(
|
|
388
|
+
return /* @__PURE__ */ c(je, s({ "data-slot": "accordion" }, e));
|
|
389
389
|
}
|
|
390
390
|
function zo(o) {
|
|
391
391
|
var t = o, {
|
|
@@ -394,14 +394,14 @@ function zo(o) {
|
|
|
394
394
|
"className"
|
|
395
395
|
]);
|
|
396
396
|
return /* @__PURE__ */ c(
|
|
397
|
-
|
|
397
|
+
Be,
|
|
398
398
|
s({
|
|
399
399
|
"data-slot": "accordion-item",
|
|
400
400
|
className: S("border-b last:border-b-0", e)
|
|
401
401
|
}, r)
|
|
402
402
|
);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Go(n) {
|
|
405
405
|
var i = n, {
|
|
406
406
|
className: e,
|
|
407
407
|
children: r,
|
|
@@ -448,7 +448,7 @@ function Bo(n) {
|
|
|
448
448
|
})
|
|
449
449
|
) });
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ko(t) {
|
|
452
452
|
var a = t, {
|
|
453
453
|
className: e,
|
|
454
454
|
children: r
|
|
@@ -468,7 +468,7 @@ function Go(t) {
|
|
|
468
468
|
}
|
|
469
469
|
export {
|
|
470
470
|
Lo as Accordion,
|
|
471
|
-
|
|
471
|
+
Ko as AccordionContent,
|
|
472
472
|
zo as AccordionItem,
|
|
473
|
-
|
|
473
|
+
Go as AccordionTrigger
|
|
474
474
|
};
|
package/dist/lib/ui/alert.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../icon/icon.js";
|
|
4
4
|
import "../../chunks/utils-TbLXCoKm.js";
|
|
5
|
-
import { A as e } from "../../chunks/uploader-
|
|
5
|
+
import { A as e } from "../../chunks/uploader-B-BmspDu.js";
|
|
6
6
|
export {
|
|
7
7
|
e as Alert
|
|
8
8
|
};
|
|
@@ -2,8 +2,8 @@ import { jsx as l, jsxs as f } from "react/jsx-runtime";
|
|
|
2
2
|
import t from "react";
|
|
3
3
|
import { c as N } from "../../chunks/utils-TbLXCoKm.js";
|
|
4
4
|
import { Command as E, CommandList as I, CommandEmpty as _, CommandGroup as A, CommandItem as F } from "./command.js";
|
|
5
|
-
import {
|
|
6
|
-
import { P as M, c as V, b as
|
|
5
|
+
import { Z as h, I as G } from "../../chunks/uploader-B-BmspDu.js";
|
|
6
|
+
import { P as M, c as V, b as Z } from "../../chunks/popover-kFSgc5Lv.js";
|
|
7
7
|
function Q({
|
|
8
8
|
options: r,
|
|
9
9
|
value: s,
|
|
@@ -84,7 +84,7 @@ function Q({
|
|
|
84
84
|
x && /* @__PURE__ */ l(h, { variant: "p2", className: "mt-1", textColor: "destructive", children: x })
|
|
85
85
|
] }) }),
|
|
86
86
|
/* @__PURE__ */ l(
|
|
87
|
-
|
|
87
|
+
Z,
|
|
88
88
|
{
|
|
89
89
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
90
90
|
align: "start",
|