@yuva-devlab/ui 1.4.3 → 2.0.0
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 +172 -128
- package/dist/components/accordion/accordion.mdx +18 -0
- package/dist/components/alert/alert.css +2 -2
- package/dist/components/alert-dialog/alert-dialog.mdx +18 -0
- package/dist/components/aspect-ratio/aspect-ratio.mdx +22 -0
- package/dist/components/breadcrumb/breadcrumb.mdx +18 -0
- package/dist/components/calendar/calendar-nav.css +111 -0
- package/dist/components/calendar/calendar.css +183 -0
- package/dist/components/calendar/calendar.mdx +18 -0
- package/dist/components/card/card.css +4 -4
- package/dist/components/carousel/carousel.css +4 -4
- package/dist/components/carousel/carousel.mdx +18 -0
- package/dist/components/chart/chart.css +86 -0
- package/dist/components/chart/chart.mdx +18 -0
- package/dist/components/checkbox/checkbox.css +11 -0
- package/dist/components/collapsible/collapsible.mdx +18 -0
- package/dist/components/command/command.css +3 -3
- package/dist/components/command/command.mdx +18 -0
- package/dist/components/confirm-dialog/confirm-dialog.mdx +18 -0
- package/dist/components/context-menu/context-menu.mdx +18 -0
- package/dist/components/copy-button/copy-button.css +2 -0
- package/dist/components/copy-button/copy-button.mdx +18 -0
- package/dist/components/date-picker/date-picker.css +11 -5
- package/dist/components/date-picker/date-picker.mdx +18 -0
- package/dist/components/dialog/dialog.css +6 -6
- package/dist/components/drawer/drawer.mdx +18 -0
- package/dist/components/dropdown-menu/dropdown-menu.css +18 -0
- package/dist/components/dropdown-menu/dropdown-menu.mdx +18 -0
- package/dist/components/empty-state/empty-state.css +67 -0
- package/dist/components/empty-state/empty-state.mdx +18 -0
- package/dist/components/form/form.mdx +18 -0
- package/dist/components/hover-card/hover-card.mdx +18 -0
- package/dist/components/input-otp/input-otp.mdx +18 -0
- package/dist/components/label/label.mdx +18 -0
- package/dist/components/layout/layout.css +158 -0
- package/dist/components/layout/layout.mdx +30 -0
- package/dist/components/loading-state/loading-state.css +11 -0
- package/dist/components/loading-state/loading-state.mdx +18 -0
- package/dist/components/menubar/menubar.css +4 -4
- package/dist/components/menubar/menubar.mdx +18 -0
- package/dist/components/metric-card/metric-card.mdx +18 -0
- package/dist/components/navigation-menu/navigation-menu.css +2 -2
- package/dist/components/navigation-menu/navigation-menu.mdx +18 -0
- package/dist/components/pagination/pagination.css +8 -2
- package/dist/components/pagination/pagination.mdx +18 -0
- package/dist/components/panel/panel.mdx +18 -0
- package/dist/components/popover/popover.css +7 -2
- package/dist/components/popover/popover.mdx +18 -0
- package/dist/components/radio-group/radio-group.mdx +18 -0
- package/dist/components/resizable/resizable.mdx +18 -0
- package/dist/components/scroll-area/scroll-area.mdx +18 -0
- package/dist/components/searchable-select/searchable-select.css +26 -3
- package/dist/components/searchable-select/searchable-select.mdx +18 -0
- package/dist/components/secret-reveal-card/secret-reveal-card.css +9 -0
- package/dist/components/secret-reveal-card/secret-reveal-card.mdx +18 -0
- package/dist/components/select/select.css +16 -1
- package/dist/components/separator/separator.mdx +18 -0
- package/dist/components/sheet/sheet.css +5 -1
- package/dist/components/sheet/sheet.mdx +18 -0
- package/dist/components/sidebar/sidebar-menu.css +183 -0
- package/dist/components/sidebar/sidebar-submenu.css +69 -0
- package/dist/components/sidebar/sidebar.css +171 -4
- package/dist/components/sidebar/sidebar.mdx +18 -0
- package/dist/components/slider/slider.mdx +18 -0
- package/dist/components/status-chip/status-chip.mdx +18 -0
- package/dist/components/table/table.css +5 -3
- package/dist/components/tabs/tabs.css +3 -3
- package/dist/components/textarea/textarea.css +3 -3
- package/dist/components/textarea/textarea.mdx +18 -0
- package/dist/components/toggle/toggle.css +9 -9
- package/dist/components/toggle/toggle.mdx +18 -0
- package/dist/components/toggle-group/toggle-group.mdx +18 -0
- package/dist/components/tooltip/tooltip.mdx +18 -0
- package/dist/components/typography/heading.mdx +36 -0
- package/dist/components/typography/text.mdx +34 -0
- package/dist/components/typography/typography.css +98 -0
- package/dist/components.css +1366 -118
- package/dist/index.cjs +1239 -1008
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +662 -197
- package/dist/index.d.ts +662 -197
- package/dist/index.js +1220 -1011
- package/dist/index.js.map +1 -1
- package/dist/preset.css +2 -4
- package/dist/styles/components.css +1366 -118
- package/dist/styles/preset.css +2 -4
- package/dist/styles/styles.css +7 -4
- package/dist/styles/utilities.css +137 -0
- package/dist/styles.css +7 -4
- package/dist/utilities.css +137 -0
- package/package.json +22 -4
package/dist/index.cjs
CHANGED
|
@@ -54,6 +54,7 @@ __export(index_exports, {
|
|
|
54
54
|
AvatarFallback: () => AvatarFallback,
|
|
55
55
|
AvatarImage: () => AvatarImage,
|
|
56
56
|
Badge: () => Badge,
|
|
57
|
+
Box: () => Box,
|
|
57
58
|
Breadcrumb: () => Breadcrumb,
|
|
58
59
|
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
59
60
|
BreadcrumbItem: () => BreadcrumbItem,
|
|
@@ -72,10 +73,12 @@ __export(index_exports, {
|
|
|
72
73
|
CardTitle: () => CardTitle,
|
|
73
74
|
Carousel: () => Carousel,
|
|
74
75
|
CarouselContent: () => CarouselContent,
|
|
76
|
+
CarouselContext: () => CarouselContext,
|
|
75
77
|
CarouselItem: () => CarouselItem,
|
|
76
78
|
CarouselNext: () => CarouselNext,
|
|
77
79
|
CarouselPrevious: () => CarouselPrevious,
|
|
78
80
|
ChartContainer: () => ChartContainer,
|
|
81
|
+
ChartContext: () => ChartContext,
|
|
79
82
|
ChartLegend: () => ChartLegend,
|
|
80
83
|
ChartLegendContent: () => ChartLegendContent,
|
|
81
84
|
ChartStyle: () => ChartStyle,
|
|
@@ -96,6 +99,7 @@ __export(index_exports, {
|
|
|
96
99
|
CommandShortcut: () => CommandShortcut,
|
|
97
100
|
ConfigProvider: () => ConfigProvider,
|
|
98
101
|
ConfirmDialog: () => ConfirmDialog,
|
|
102
|
+
Container: () => Container,
|
|
99
103
|
ContextMenu: () => ContextMenu,
|
|
100
104
|
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
101
105
|
ContextMenuContent: () => ContextMenuContent,
|
|
@@ -149,6 +153,8 @@ __export(index_exports, {
|
|
|
149
153
|
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
150
154
|
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
151
155
|
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
156
|
+
EmptyState: () => EmptyState,
|
|
157
|
+
Flex: () => Flex,
|
|
152
158
|
Form: () => Form,
|
|
153
159
|
FormControl: () => FormControl,
|
|
154
160
|
FormDescription: () => FormDescription,
|
|
@@ -156,6 +162,8 @@ __export(index_exports, {
|
|
|
156
162
|
FormItem: () => FormItem,
|
|
157
163
|
FormLabel: () => FormLabel,
|
|
158
164
|
FormMessage: () => FormMessage,
|
|
165
|
+
Grid: () => Grid,
|
|
166
|
+
Heading: () => Heading,
|
|
159
167
|
HoverCard: () => HoverCard,
|
|
160
168
|
HoverCardContent: () => HoverCardContent,
|
|
161
169
|
HoverCardTrigger: () => HoverCardTrigger,
|
|
@@ -210,6 +218,12 @@ __export(index_exports, {
|
|
|
210
218
|
ResizableHandle: () => ResizableHandle,
|
|
211
219
|
ResizablePanel: () => ResizablePanel,
|
|
212
220
|
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
221
|
+
SIDEBAR_COOKIE_MAX_AGE: () => SIDEBAR_COOKIE_MAX_AGE,
|
|
222
|
+
SIDEBAR_COOKIE_NAME: () => SIDEBAR_COOKIE_NAME,
|
|
223
|
+
SIDEBAR_KEYBOARD_SHORTCUT: () => SIDEBAR_KEYBOARD_SHORTCUT,
|
|
224
|
+
SIDEBAR_WIDTH: () => SIDEBAR_WIDTH,
|
|
225
|
+
SIDEBAR_WIDTH_ICON: () => SIDEBAR_WIDTH_ICON,
|
|
226
|
+
SIDEBAR_WIDTH_MOBILE: () => SIDEBAR_WIDTH_MOBILE,
|
|
213
227
|
ScrollArea: () => ScrollArea,
|
|
214
228
|
ScrollBar: () => ScrollBar,
|
|
215
229
|
SearchableSelect: () => SearchableSelect,
|
|
@@ -237,6 +251,7 @@ __export(index_exports, {
|
|
|
237
251
|
SheetTrigger: () => SheetTrigger,
|
|
238
252
|
Sidebar: () => Sidebar,
|
|
239
253
|
SidebarContent: () => SidebarContent,
|
|
254
|
+
SidebarContext: () => SidebarContext,
|
|
240
255
|
SidebarFooter: () => SidebarFooter,
|
|
241
256
|
SidebarGroup: () => SidebarGroup,
|
|
242
257
|
SidebarGroupAction: () => SidebarGroupAction,
|
|
@@ -260,9 +275,11 @@ __export(index_exports, {
|
|
|
260
275
|
SidebarTrigger: () => SidebarTrigger,
|
|
261
276
|
Skeleton: () => Skeleton,
|
|
262
277
|
Slider: () => Slider,
|
|
278
|
+
Stack: () => Stack,
|
|
263
279
|
StatusBadge: () => StatusBadge,
|
|
264
280
|
StatusChip: () => StatusChip,
|
|
265
281
|
Switch: () => Switch,
|
|
282
|
+
THEMES: () => THEMES,
|
|
266
283
|
Table: () => Table,
|
|
267
284
|
TableBody: () => TableBody,
|
|
268
285
|
TableCaption: () => TableCaption,
|
|
@@ -275,6 +292,7 @@ __export(index_exports, {
|
|
|
275
292
|
TabsContent: () => TabsContent,
|
|
276
293
|
TabsList: () => TabsList,
|
|
277
294
|
TabsTrigger: () => TabsTrigger,
|
|
295
|
+
Text: () => Text,
|
|
278
296
|
Textarea: () => Textarea,
|
|
279
297
|
ThemeProvider: () => ThemeProvider,
|
|
280
298
|
Toaster: () => Toaster,
|
|
@@ -289,12 +307,16 @@ __export(index_exports, {
|
|
|
289
307
|
badgeVariants: () => badgeVariants,
|
|
290
308
|
buttonVariants: () => buttonVariants,
|
|
291
309
|
cn: () => cn,
|
|
310
|
+
cx: () => cx,
|
|
311
|
+
getPayloadConfigFromPayload: () => getPayloadConfigFromPayload,
|
|
292
312
|
labelVariants: () => labelVariants,
|
|
293
313
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
294
314
|
sheetVariants: () => sheetVariants,
|
|
315
|
+
sidebarMenuButtonVariants: () => sidebarMenuButtonVariants,
|
|
295
316
|
toast: () => import_sonner.toast,
|
|
296
317
|
toggleVariants: () => toggleVariants,
|
|
297
318
|
useCarousel: () => useCarousel,
|
|
319
|
+
useChart: () => useChart,
|
|
298
320
|
useConfig: () => useConfig,
|
|
299
321
|
useFormField: () => useFormField,
|
|
300
322
|
useIsMobile: () => useIsMobile,
|
|
@@ -305,9 +327,11 @@ module.exports = __toCommonJS(index_exports);
|
|
|
305
327
|
|
|
306
328
|
// src/lib/utils.ts
|
|
307
329
|
var import_clsx = require("clsx");
|
|
308
|
-
|
|
330
|
+
function cx(...inputs) {
|
|
331
|
+
return (0, import_clsx.clsx)(inputs);
|
|
332
|
+
}
|
|
309
333
|
function cn(...inputs) {
|
|
310
|
-
return (0,
|
|
334
|
+
return (0, import_clsx.clsx)(inputs);
|
|
311
335
|
}
|
|
312
336
|
|
|
313
337
|
// src/theme-provider.tsx
|
|
@@ -760,130 +784,83 @@ function Calendar({
|
|
|
760
784
|
import_react_day_picker.DayPicker,
|
|
761
785
|
{
|
|
762
786
|
showOutsideDays,
|
|
763
|
-
className: cn(
|
|
764
|
-
"group/calendar p-3 [--cell-size:2rem] in-data-[slot=card-content]:bg-transparent",
|
|
765
|
-
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
766
|
-
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
767
|
-
className
|
|
768
|
-
),
|
|
787
|
+
className: cn("dl-calendar", className),
|
|
769
788
|
captionLayout,
|
|
770
789
|
formatters: {
|
|
771
790
|
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
772
791
|
...formatters
|
|
773
792
|
},
|
|
774
793
|
classNames: {
|
|
775
|
-
root: cn("
|
|
776
|
-
months: cn(
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
),
|
|
780
|
-
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
781
|
-
nav: cn(
|
|
782
|
-
"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
|
|
783
|
-
defaultClassNames.nav
|
|
784
|
-
),
|
|
794
|
+
root: cn("dl-calendar", defaultClassNames.root),
|
|
795
|
+
months: cn("dl-calendar__months", defaultClassNames.months),
|
|
796
|
+
month: cn("dl-calendar__month", defaultClassNames.month),
|
|
797
|
+
nav: cn("dl-calendar__nav", defaultClassNames.nav),
|
|
785
798
|
button_previous: cn(
|
|
786
|
-
buttonVariants({ variant: buttonVariant }),
|
|
787
|
-
"
|
|
799
|
+
buttonVariants({ variant: buttonVariant, size: "icon" }),
|
|
800
|
+
"dl-calendar__nav-button",
|
|
788
801
|
defaultClassNames.button_previous
|
|
789
802
|
),
|
|
790
803
|
button_next: cn(
|
|
791
|
-
buttonVariants({ variant: buttonVariant }),
|
|
792
|
-
"
|
|
804
|
+
buttonVariants({ variant: buttonVariant, size: "icon" }),
|
|
805
|
+
"dl-calendar__nav-button",
|
|
793
806
|
defaultClassNames.button_next
|
|
794
807
|
),
|
|
795
808
|
month_caption: cn(
|
|
796
|
-
"
|
|
809
|
+
"dl-calendar__month-caption",
|
|
797
810
|
defaultClassNames.month_caption
|
|
798
811
|
),
|
|
799
|
-
dropdowns: cn(
|
|
800
|
-
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
|
|
801
|
-
defaultClassNames.dropdowns
|
|
802
|
-
),
|
|
812
|
+
dropdowns: cn("dl-calendar__dropdowns", defaultClassNames.dropdowns),
|
|
803
813
|
dropdown_root: cn(
|
|
804
|
-
"
|
|
814
|
+
"dl-calendar__dropdown-root",
|
|
805
815
|
defaultClassNames.dropdown_root
|
|
806
816
|
),
|
|
807
|
-
dropdown: cn(
|
|
808
|
-
"bg-popover absolute inset-0 opacity-0",
|
|
809
|
-
defaultClassNames.dropdown
|
|
810
|
-
),
|
|
817
|
+
dropdown: cn("dl-calendar__dropdown", defaultClassNames.dropdown),
|
|
811
818
|
caption_label: cn(
|
|
812
|
-
"
|
|
813
|
-
captionLayout
|
|
819
|
+
"dl-calendar__caption-label",
|
|
820
|
+
captionLayout !== "label" && "dl-calendar__caption-label--interactive",
|
|
814
821
|
defaultClassNames.caption_label
|
|
815
822
|
),
|
|
816
|
-
table: "
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
defaultClassNames.week_number
|
|
830
|
-
),
|
|
831
|
-
day: cn(
|
|
832
|
-
"group/day relative aspect-square select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md size-full",
|
|
833
|
-
defaultClassNames.day
|
|
834
|
-
),
|
|
835
|
-
range_start: cn(
|
|
836
|
-
"bg-accent rounded-l-md",
|
|
837
|
-
defaultClassNames.range_start
|
|
838
|
-
),
|
|
839
|
-
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
840
|
-
range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
|
|
841
|
-
today: cn(
|
|
842
|
-
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
843
|
-
defaultClassNames.today
|
|
844
|
-
),
|
|
845
|
-
outside: cn(
|
|
846
|
-
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
847
|
-
defaultClassNames.outside
|
|
848
|
-
),
|
|
849
|
-
disabled: cn(
|
|
850
|
-
"text-muted-foreground opacity-50",
|
|
851
|
-
defaultClassNames.disabled
|
|
852
|
-
),
|
|
853
|
-
hidden: cn("invisible", defaultClassNames.hidden),
|
|
823
|
+
table: cn("dl-calendar__table", defaultClassNames.month_grid),
|
|
824
|
+
month_grid: cn("dl-calendar__table", defaultClassNames.month_grid),
|
|
825
|
+
weekdays: defaultClassNames.weekdays,
|
|
826
|
+
weekday: defaultClassNames.weekday,
|
|
827
|
+
week: defaultClassNames.week,
|
|
828
|
+
day: defaultClassNames.day,
|
|
829
|
+
range_start: defaultClassNames.range_start,
|
|
830
|
+
range_middle: defaultClassNames.range_middle,
|
|
831
|
+
range_end: defaultClassNames.range_end,
|
|
832
|
+
today: defaultClassNames.today,
|
|
833
|
+
outside: defaultClassNames.outside,
|
|
834
|
+
disabled: defaultClassNames.disabled,
|
|
835
|
+
hidden: defaultClassNames.hidden,
|
|
854
836
|
...classNames
|
|
855
837
|
},
|
|
856
838
|
components: {
|
|
857
|
-
Root: ({ className:
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
839
|
+
Root: ({ className: rootClassName, rootRef, ...rootProps }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
840
|
+
"div",
|
|
841
|
+
{
|
|
842
|
+
"data-slot": "calendar",
|
|
843
|
+
ref: rootRef,
|
|
844
|
+
className: cn("dl-calendar", rootClassName),
|
|
845
|
+
...rootProps
|
|
846
|
+
}
|
|
847
|
+
),
|
|
848
|
+
Chevron: ({
|
|
849
|
+
className: chevronClassName,
|
|
850
|
+
orientation,
|
|
851
|
+
...chevronProps
|
|
852
|
+
}) => {
|
|
853
|
+
const chevronClass = cn("dl-calendar__chevron", chevronClassName);
|
|
869
854
|
if (orientation === "left") {
|
|
870
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronLeftIcon, { className:
|
|
855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronLeftIcon, { className: chevronClass, ...chevronProps });
|
|
871
856
|
}
|
|
872
857
|
if (orientation === "right") {
|
|
873
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
874
|
-
import_lucide_react3.ChevronRightIcon,
|
|
875
|
-
{
|
|
876
|
-
className: cn("size-4", className2),
|
|
877
|
-
...props2
|
|
878
|
-
}
|
|
879
|
-
);
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronRightIcon, { className: chevronClass, ...chevronProps });
|
|
880
859
|
}
|
|
881
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronDownIcon, { className:
|
|
860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronDownIcon, { className: chevronClass, ...chevronProps });
|
|
882
861
|
},
|
|
883
862
|
DayButton: CalendarDayButton,
|
|
884
|
-
WeekNumber: ({ children, ...
|
|
885
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
886
|
-
},
|
|
863
|
+
WeekNumber: ({ children, ...weekProps }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("td", { ...weekProps, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "dl-calendar__week-number", children }) }),
|
|
887
864
|
...components
|
|
888
865
|
},
|
|
889
866
|
...props
|
|
@@ -905,16 +882,17 @@ function CalendarDayButton({
|
|
|
905
882
|
Button,
|
|
906
883
|
{
|
|
907
884
|
ref,
|
|
908
|
-
variant: "ghost",
|
|
885
|
+
variant: modifiers["selected"] ? "default" : "ghost",
|
|
909
886
|
size: "icon",
|
|
910
887
|
"data-day": day.date.toLocaleDateString(),
|
|
888
|
+
"data-selected": modifiers["selected"] ? "true" : void 0,
|
|
911
889
|
"data-selected-single": modifiers["selected"] && !modifiers["range_start"] && !modifiers["range_end"] && !modifiers["range_middle"],
|
|
912
890
|
"data-range-start": modifiers["range_start"],
|
|
913
891
|
"data-range-end": modifiers["range_end"],
|
|
914
892
|
"data-range-middle": modifiers["range_middle"],
|
|
915
893
|
className: cn(
|
|
916
|
-
"
|
|
917
|
-
defaultClassNames.
|
|
894
|
+
"dl-calendar__day-button",
|
|
895
|
+
defaultClassNames.day_button,
|
|
918
896
|
className
|
|
919
897
|
),
|
|
920
898
|
...props
|
|
@@ -948,12 +926,13 @@ var CardFooter = React10.forwardRef(
|
|
|
948
926
|
);
|
|
949
927
|
CardFooter.displayName = "CardFooter";
|
|
950
928
|
|
|
951
|
-
// src/components/carousel/carousel.tsx
|
|
929
|
+
// src/components/carousel/carousel-context.tsx
|
|
952
930
|
var React11 = __toESM(require("react"), 1);
|
|
953
931
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
954
|
-
var import_lucide_react4 = require("lucide-react");
|
|
955
932
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
956
|
-
var CarouselContext = React11.createContext(
|
|
933
|
+
var CarouselContext = React11.createContext(
|
|
934
|
+
null
|
|
935
|
+
);
|
|
957
936
|
function useCarousel() {
|
|
958
937
|
const context = React11.useContext(CarouselContext);
|
|
959
938
|
if (!context) {
|
|
@@ -1039,28 +1018,31 @@ var Carousel = React11.forwardRef(
|
|
|
1039
1018
|
}
|
|
1040
1019
|
);
|
|
1041
1020
|
Carousel.displayName = "Carousel";
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1021
|
+
|
|
1022
|
+
// src/components/carousel/carousel-items.tsx
|
|
1023
|
+
var React12 = __toESM(require("react"), 1);
|
|
1024
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1025
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1026
|
+
var CarouselContent = React12.forwardRef(({ className, ...props }, ref) => {
|
|
1027
|
+
const { carouselRef, orientation } = useCarousel();
|
|
1028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { ref: carouselRef, className: "dl-carousel-viewport", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1029
|
+
"div",
|
|
1030
|
+
{
|
|
1031
|
+
ref,
|
|
1032
|
+
className: cn(
|
|
1033
|
+
"dl-carousel-track",
|
|
1034
|
+
orientation === "horizontal" ? "dl-carousel-track--horizontal" : "dl-carousel-track--vertical",
|
|
1035
|
+
className
|
|
1036
|
+
),
|
|
1037
|
+
...props
|
|
1038
|
+
}
|
|
1039
|
+
) });
|
|
1040
|
+
});
|
|
1059
1041
|
CarouselContent.displayName = "CarouselContent";
|
|
1060
|
-
var CarouselItem =
|
|
1042
|
+
var CarouselItem = React12.forwardRef(
|
|
1061
1043
|
({ className, ...props }, ref) => {
|
|
1062
1044
|
const { orientation } = useCarousel();
|
|
1063
|
-
return /* @__PURE__ */ (0,
|
|
1045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1064
1046
|
"div",
|
|
1065
1047
|
{
|
|
1066
1048
|
ref,
|
|
@@ -1077,9 +1059,9 @@ var CarouselItem = React11.forwardRef(
|
|
|
1077
1059
|
}
|
|
1078
1060
|
);
|
|
1079
1061
|
CarouselItem.displayName = "CarouselItem";
|
|
1080
|
-
var CarouselPrevious =
|
|
1062
|
+
var CarouselPrevious = React12.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1081
1063
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1082
|
-
return /* @__PURE__ */ (0,
|
|
1064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1083
1065
|
Button,
|
|
1084
1066
|
{
|
|
1085
1067
|
ref,
|
|
@@ -1094,81 +1076,78 @@ var CarouselPrevious = React11.forwardRef(({ className, variant = "outline", siz
|
|
|
1094
1076
|
onClick: scrollPrev,
|
|
1095
1077
|
...props,
|
|
1096
1078
|
children: [
|
|
1097
|
-
/* @__PURE__ */ (0,
|
|
1098
|
-
/* @__PURE__ */ (0,
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ArrowLeft, {}),
|
|
1080
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1099
1081
|
]
|
|
1100
1082
|
}
|
|
1101
1083
|
);
|
|
1102
1084
|
});
|
|
1103
1085
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1104
|
-
var CarouselNext =
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}
|
|
1128
|
-
);
|
|
1086
|
+
var CarouselNext = React12.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1087
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1089
|
+
Button,
|
|
1090
|
+
{
|
|
1091
|
+
ref,
|
|
1092
|
+
variant,
|
|
1093
|
+
size,
|
|
1094
|
+
className: cn(
|
|
1095
|
+
"dl-carousel-btn",
|
|
1096
|
+
orientation === "horizontal" ? "dl-carousel-btn--next-horizontal" : "dl-carousel-btn--next-vertical",
|
|
1097
|
+
className
|
|
1098
|
+
),
|
|
1099
|
+
disabled: !canScrollNext,
|
|
1100
|
+
onClick: scrollNext,
|
|
1101
|
+
...props,
|
|
1102
|
+
children: [
|
|
1103
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ArrowRight, {}),
|
|
1104
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1105
|
+
]
|
|
1106
|
+
}
|
|
1107
|
+
);
|
|
1108
|
+
});
|
|
1129
1109
|
CarouselNext.displayName = "CarouselNext";
|
|
1130
1110
|
|
|
1131
|
-
// src/components/chart/chart.tsx
|
|
1132
|
-
var
|
|
1133
|
-
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1134
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1111
|
+
// src/components/chart/chart-context.tsx
|
|
1112
|
+
var React13 = __toESM(require("react"), 1);
|
|
1135
1113
|
var THEMES = { light: "", dark: ".dark" };
|
|
1136
|
-
var ChartContext =
|
|
1114
|
+
var ChartContext = React13.createContext(null);
|
|
1137
1115
|
function useChart() {
|
|
1138
|
-
const context =
|
|
1116
|
+
const context = React13.useContext(ChartContext);
|
|
1139
1117
|
if (!context) {
|
|
1140
1118
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1141
1119
|
}
|
|
1142
1120
|
return context;
|
|
1143
1121
|
}
|
|
1144
|
-
|
|
1145
|
-
(
|
|
1146
|
-
|
|
1147
|
-
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1148
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1149
|
-
"div",
|
|
1150
|
-
{
|
|
1151
|
-
"data-chart": chartId,
|
|
1152
|
-
ref,
|
|
1153
|
-
className: cn("dl-chart-container", className),
|
|
1154
|
-
...props,
|
|
1155
|
-
children: [
|
|
1156
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChartStyle, { id: chartId, config }),
|
|
1157
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1158
|
-
]
|
|
1159
|
-
}
|
|
1160
|
-
) });
|
|
1122
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
1123
|
+
if (typeof payload !== "object" || payload === null) {
|
|
1124
|
+
return void 0;
|
|
1161
1125
|
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1126
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
1127
|
+
let configLabelKey = key;
|
|
1128
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
1129
|
+
configLabelKey = payload[key];
|
|
1130
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
1131
|
+
configLabelKey = payloadPayload[key];
|
|
1132
|
+
}
|
|
1133
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
// src/components/chart/chart-container.tsx
|
|
1137
|
+
var React14 = __toESM(require("react"), 1);
|
|
1138
|
+
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1139
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1140
|
+
var ChartStyle = ({
|
|
1141
|
+
id,
|
|
1142
|
+
config
|
|
1143
|
+
}) => {
|
|
1165
1144
|
const colorConfig = Object.entries(config).filter(
|
|
1166
|
-
([,
|
|
1145
|
+
([, itemConfig]) => itemConfig.theme || itemConfig.color
|
|
1167
1146
|
);
|
|
1168
1147
|
if (!colorConfig.length) {
|
|
1169
1148
|
return null;
|
|
1170
1149
|
}
|
|
1171
|
-
return /* @__PURE__ */ (0,
|
|
1150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1172
1151
|
"style",
|
|
1173
1152
|
{
|
|
1174
1153
|
dangerouslySetInnerHTML: {
|
|
@@ -1186,8 +1165,31 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1186
1165
|
}
|
|
1187
1166
|
);
|
|
1188
1167
|
};
|
|
1189
|
-
var
|
|
1190
|
-
|
|
1168
|
+
var ChartContainer = React14.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1169
|
+
const uniqueId = React14.useId();
|
|
1170
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1172
|
+
"div",
|
|
1173
|
+
{
|
|
1174
|
+
"data-chart": chartId,
|
|
1175
|
+
ref,
|
|
1176
|
+
className: cn("dl-chart-container", className),
|
|
1177
|
+
...props,
|
|
1178
|
+
children: [
|
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChartStyle, { id: chartId, config }),
|
|
1180
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1183
|
+
) });
|
|
1184
|
+
});
|
|
1185
|
+
ChartContainer.displayName = "Chart";
|
|
1186
|
+
|
|
1187
|
+
// src/components/chart/chart-tooltip.tsx
|
|
1188
|
+
var React15 = __toESM(require("react"), 1);
|
|
1189
|
+
var RechartsPrimitive2 = __toESM(require("recharts"), 1);
|
|
1190
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1191
|
+
var ChartTooltip = RechartsPrimitive2.Tooltip;
|
|
1192
|
+
var ChartTooltipContent = React15.forwardRef(
|
|
1191
1193
|
({
|
|
1192
1194
|
active,
|
|
1193
1195
|
payload,
|
|
@@ -1204,7 +1206,7 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
1204
1206
|
labelKey
|
|
1205
1207
|
}, ref) => {
|
|
1206
1208
|
const { config } = useChart();
|
|
1207
|
-
const tooltipLabel =
|
|
1209
|
+
const tooltipLabel = React15.useMemo(() => {
|
|
1208
1210
|
if (hideLabel || !payload?.length) {
|
|
1209
1211
|
return null;
|
|
1210
1212
|
}
|
|
@@ -1213,12 +1215,12 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
1213
1215
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1214
1216
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1215
1217
|
if (labelFormatter) {
|
|
1216
|
-
return /* @__PURE__ */ (0,
|
|
1218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("dl-chart-tooltip__label", labelClassName), children: labelFormatter(value, payload) });
|
|
1217
1219
|
}
|
|
1218
1220
|
if (!value) {
|
|
1219
1221
|
return null;
|
|
1220
1222
|
}
|
|
1221
|
-
return /* @__PURE__ */ (0,
|
|
1223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("dl-chart-tooltip__label", labelClassName), children: value });
|
|
1222
1224
|
}, [
|
|
1223
1225
|
label,
|
|
1224
1226
|
labelFormatter,
|
|
@@ -1232,31 +1234,29 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
1232
1234
|
return null;
|
|
1233
1235
|
}
|
|
1234
1236
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1235
|
-
return /* @__PURE__ */ (0,
|
|
1237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { ref, className: cn("dl-chart-tooltip", className), children: [
|
|
1236
1238
|
!nestLabel ? tooltipLabel : null,
|
|
1237
|
-
/* @__PURE__ */ (0,
|
|
1239
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "dl-chart-tooltip__grid", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1238
1240
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1239
1241
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1240
1242
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1241
|
-
return /* @__PURE__ */ (0,
|
|
1243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1242
1244
|
"div",
|
|
1243
1245
|
{
|
|
1244
1246
|
className: cn(
|
|
1245
|
-
"
|
|
1246
|
-
indicator === "dot" && "
|
|
1247
|
+
"dl-chart-tooltip__item",
|
|
1248
|
+
indicator === "dot" && "dl-chart-tooltip__item--center"
|
|
1247
1249
|
),
|
|
1248
|
-
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
1249
|
-
itemConfig?.icon ? /* @__PURE__ */ (0,
|
|
1250
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
1251
|
+
itemConfig?.icon ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1250
1252
|
"div",
|
|
1251
1253
|
{
|
|
1252
1254
|
className: cn(
|
|
1253
|
-
"
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
"my-0.5": nestLabel && indicator === "dashed"
|
|
1259
|
-
}
|
|
1255
|
+
"dl-chart-tooltip__indicator",
|
|
1256
|
+
indicator === "dot" && "dl-chart-tooltip__indicator--dot",
|
|
1257
|
+
indicator === "line" && "dl-chart-tooltip__indicator--line",
|
|
1258
|
+
indicator === "dashed" && "dl-chart-tooltip__indicator--dashed",
|
|
1259
|
+
nestLabel && indicator === "dashed" && "dl-chart-tooltip__indicator--nested"
|
|
1260
1260
|
),
|
|
1261
1261
|
style: {
|
|
1262
1262
|
"--color-bg": indicatorColor,
|
|
@@ -1264,19 +1264,19 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
),
|
|
1267
|
-
/* @__PURE__ */ (0,
|
|
1267
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1268
1268
|
"div",
|
|
1269
1269
|
{
|
|
1270
1270
|
className: cn(
|
|
1271
|
-
"
|
|
1272
|
-
nestLabel
|
|
1271
|
+
"dl-chart-tooltip__row",
|
|
1272
|
+
nestLabel && "dl-chart-tooltip__row--end"
|
|
1273
1273
|
),
|
|
1274
1274
|
children: [
|
|
1275
|
-
/* @__PURE__ */ (0,
|
|
1275
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "dl-chart-tooltip__grid", children: [
|
|
1276
1276
|
nestLabel ? tooltipLabel : null,
|
|
1277
|
-
/* @__PURE__ */ (0,
|
|
1277
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "dl-chart-tooltip__item-label", children: itemConfig?.label || item.name })
|
|
1278
1278
|
] }),
|
|
1279
|
-
item.value && /* @__PURE__ */ (0,
|
|
1279
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "dl-chart-tooltip__item-value", children: item.value.toLocaleString() })
|
|
1280
1280
|
]
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
@@ -1289,78 +1289,59 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
1291
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1292
|
-
|
|
1293
|
-
|
|
1292
|
+
|
|
1293
|
+
// src/components/chart/chart-legend.tsx
|
|
1294
|
+
var React16 = __toESM(require("react"), 1);
|
|
1295
|
+
var RechartsPrimitive3 = __toESM(require("recharts"), 1);
|
|
1296
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1297
|
+
var ChartLegend = RechartsPrimitive3.Legend;
|
|
1298
|
+
var ChartLegendContent = React16.forwardRef(
|
|
1294
1299
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1295
1300
|
const { config } = useChart();
|
|
1296
1301
|
if (!payload?.length) {
|
|
1297
1302
|
return null;
|
|
1298
1303
|
}
|
|
1299
|
-
return /* @__PURE__ */ (0,
|
|
1304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1300
1305
|
"div",
|
|
1301
1306
|
{
|
|
1302
1307
|
ref,
|
|
1303
1308
|
className: cn(
|
|
1304
1309
|
"dl-chart-legend",
|
|
1305
|
-
verticalAlign === "top" ? "
|
|
1310
|
+
verticalAlign === "top" ? "dl-chart-legend--top" : "dl-chart-legend--bottom",
|
|
1306
1311
|
className
|
|
1307
1312
|
),
|
|
1308
1313
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1309
1314
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1310
1315
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1311
|
-
return /* @__PURE__ */ (0,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
"
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
className: "shrink-0 rounded-xs size-2",
|
|
1322
|
-
style: {
|
|
1323
|
-
backgroundColor: item.color
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
),
|
|
1327
|
-
itemConfig?.label
|
|
1328
|
-
]
|
|
1329
|
-
},
|
|
1330
|
-
item.value
|
|
1331
|
-
);
|
|
1316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "dl-chart-legend__item", children: [
|
|
1317
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1318
|
+
"div",
|
|
1319
|
+
{
|
|
1320
|
+
className: "dl-chart-legend__indicator",
|
|
1321
|
+
style: { backgroundColor: item.color }
|
|
1322
|
+
}
|
|
1323
|
+
),
|
|
1324
|
+
itemConfig?.label
|
|
1325
|
+
] }, item.value);
|
|
1332
1326
|
})
|
|
1333
1327
|
}
|
|
1334
1328
|
);
|
|
1335
1329
|
}
|
|
1336
1330
|
);
|
|
1337
1331
|
ChartLegendContent.displayName = "ChartLegend";
|
|
1338
|
-
function getPayloadConfigFromPayload(config, payload, key) {
|
|
1339
|
-
if (typeof payload !== "object" || payload === null) {
|
|
1340
|
-
return void 0;
|
|
1341
|
-
}
|
|
1342
|
-
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
1343
|
-
let configLabelKey = key;
|
|
1344
|
-
if (key in payload && typeof payload[key] === "string") {
|
|
1345
|
-
configLabelKey = payload[key];
|
|
1346
|
-
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
1347
|
-
configLabelKey = payloadPayload[key];
|
|
1348
|
-
}
|
|
1349
|
-
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1350
|
-
}
|
|
1351
1332
|
|
|
1352
1333
|
// src/components/checkbox/checkbox.tsx
|
|
1353
|
-
var
|
|
1334
|
+
var React17 = __toESM(require("react"), 1);
|
|
1354
1335
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1355
1336
|
var import_lucide_react5 = require("lucide-react");
|
|
1356
|
-
var
|
|
1357
|
-
var Checkbox =
|
|
1337
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1338
|
+
var Checkbox = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1358
1339
|
CheckboxPrimitive.Root,
|
|
1359
1340
|
{
|
|
1360
1341
|
ref,
|
|
1361
1342
|
className: cn("dl-checkbox", className),
|
|
1362
1343
|
...props,
|
|
1363
|
-
children: /* @__PURE__ */ (0,
|
|
1344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckboxPrimitive.Indicator, { className: "dl-checkbox-indicator", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Check, { className: "dl-checkbox-icon" }) })
|
|
1364
1345
|
}
|
|
1365
1346
|
));
|
|
1366
1347
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
@@ -1372,20 +1353,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
1372
1353
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
1373
1354
|
|
|
1374
1355
|
// src/components/command/command.tsx
|
|
1375
|
-
var
|
|
1356
|
+
var React19 = __toESM(require("react"), 1);
|
|
1376
1357
|
var import_cmdk = require("cmdk");
|
|
1377
1358
|
var import_lucide_react7 = require("lucide-react");
|
|
1378
1359
|
|
|
1379
1360
|
// src/components/dialog/dialog.tsx
|
|
1380
|
-
var
|
|
1361
|
+
var React18 = __toESM(require("react"), 1);
|
|
1381
1362
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1382
1363
|
var import_lucide_react6 = require("lucide-react");
|
|
1383
|
-
var
|
|
1364
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1384
1365
|
var Dialog = DialogPrimitive.Root;
|
|
1385
1366
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1386
1367
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1387
1368
|
var DialogClose = DialogPrimitive.Close;
|
|
1388
|
-
var DialogOverlay =
|
|
1369
|
+
var DialogOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1389
1370
|
DialogPrimitive.Overlay,
|
|
1390
1371
|
{
|
|
1391
1372
|
ref,
|
|
@@ -1394,9 +1375,9 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1394
1375
|
}
|
|
1395
1376
|
));
|
|
1396
1377
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1397
|
-
var DialogContent =
|
|
1398
|
-
/* @__PURE__ */ (0,
|
|
1399
|
-
/* @__PURE__ */ (0,
|
|
1378
|
+
var DialogContent = React18.forwardRef(({ className, children, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DialogPortal, { children: [
|
|
1379
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogOverlay, {}),
|
|
1380
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1400
1381
|
DialogPrimitive.Content,
|
|
1401
1382
|
{
|
|
1402
1383
|
ref,
|
|
@@ -1408,9 +1389,9 @@ var DialogContent = React14.forwardRef(({ className, children, size = "md", ...p
|
|
|
1408
1389
|
...props,
|
|
1409
1390
|
children: [
|
|
1410
1391
|
children,
|
|
1411
|
-
/* @__PURE__ */ (0,
|
|
1412
|
-
/* @__PURE__ */ (0,
|
|
1413
|
-
/* @__PURE__ */ (0,
|
|
1392
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DialogPrimitive.Close, { className: "dl-dialog-close", children: [
|
|
1393
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react6.X, {}),
|
|
1394
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "dl-dialog-sr-only", children: "Close" })
|
|
1414
1395
|
] })
|
|
1415
1396
|
]
|
|
1416
1397
|
}
|
|
@@ -1420,19 +1401,19 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1420
1401
|
var DialogHeader = ({
|
|
1421
1402
|
className,
|
|
1422
1403
|
...props
|
|
1423
|
-
}) => /* @__PURE__ */ (0,
|
|
1404
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: cn("dl-dialog__header", className), ...props });
|
|
1424
1405
|
DialogHeader.displayName = "DialogHeader";
|
|
1425
1406
|
var DialogBody = ({
|
|
1426
1407
|
className,
|
|
1427
1408
|
...props
|
|
1428
|
-
}) => /* @__PURE__ */ (0,
|
|
1409
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: cn("dl-dialog__body", className), ...props });
|
|
1429
1410
|
DialogBody.displayName = "DialogBody";
|
|
1430
1411
|
var DialogFooter = ({
|
|
1431
1412
|
className,
|
|
1432
1413
|
...props
|
|
1433
|
-
}) => /* @__PURE__ */ (0,
|
|
1414
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: cn("dl-dialog__footer", className), ...props });
|
|
1434
1415
|
DialogFooter.displayName = "DialogFooter";
|
|
1435
|
-
var DialogTitle =
|
|
1416
|
+
var DialogTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1436
1417
|
DialogPrimitive.Title,
|
|
1437
1418
|
{
|
|
1438
1419
|
ref,
|
|
@@ -1441,7 +1422,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1441
1422
|
}
|
|
1442
1423
|
));
|
|
1443
1424
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1444
|
-
var DialogDescription =
|
|
1425
|
+
var DialogDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1445
1426
|
DialogPrimitive.Description,
|
|
1446
1427
|
{
|
|
1447
1428
|
ref,
|
|
@@ -1452,8 +1433,8 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1452
1433
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1453
1434
|
|
|
1454
1435
|
// src/components/command/command.tsx
|
|
1455
|
-
var
|
|
1456
|
-
var Command =
|
|
1436
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1437
|
+
var Command = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1457
1438
|
import_cmdk.Command,
|
|
1458
1439
|
{
|
|
1459
1440
|
ref,
|
|
@@ -1463,11 +1444,11 @@ var Command = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1463
1444
|
));
|
|
1464
1445
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1465
1446
|
var CommandDialog = ({ children, ...props }) => {
|
|
1466
|
-
return /* @__PURE__ */ (0,
|
|
1447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogContent, { className: "dl-command-dialog-content", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Command, { children }) }) });
|
|
1467
1448
|
};
|
|
1468
|
-
var CommandInput =
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1470
|
-
/* @__PURE__ */ (0,
|
|
1449
|
+
var CommandInput = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "dl-command-input-wrapper", "cmdk-input-wrapper": "", children: [
|
|
1450
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.Search, { className: "dl-command-input-icon" }),
|
|
1451
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1471
1452
|
import_cmdk.Command.Input,
|
|
1472
1453
|
{
|
|
1473
1454
|
ref,
|
|
@@ -1477,7 +1458,7 @@ var CommandInput = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1477
1458
|
)
|
|
1478
1459
|
] }));
|
|
1479
1460
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1480
|
-
var CommandList =
|
|
1461
|
+
var CommandList = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1481
1462
|
import_cmdk.Command.List,
|
|
1482
1463
|
{
|
|
1483
1464
|
ref,
|
|
@@ -1486,9 +1467,9 @@ var CommandList = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1486
1467
|
}
|
|
1487
1468
|
));
|
|
1488
1469
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1489
|
-
var CommandEmpty =
|
|
1470
|
+
var CommandEmpty = React19.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_cmdk.Command.Empty, { ref, className: "dl-command-empty", ...props }));
|
|
1490
1471
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1491
|
-
var CommandGroup =
|
|
1472
|
+
var CommandGroup = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1492
1473
|
import_cmdk.Command.Group,
|
|
1493
1474
|
{
|
|
1494
1475
|
ref,
|
|
@@ -1497,7 +1478,7 @@ var CommandGroup = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1497
1478
|
}
|
|
1498
1479
|
));
|
|
1499
1480
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1500
|
-
var CommandSeparator =
|
|
1481
|
+
var CommandSeparator = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1501
1482
|
import_cmdk.Command.Separator,
|
|
1502
1483
|
{
|
|
1503
1484
|
ref,
|
|
@@ -1506,7 +1487,7 @@ var CommandSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1506
1487
|
}
|
|
1507
1488
|
));
|
|
1508
1489
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1509
|
-
var CommandItem =
|
|
1490
|
+
var CommandItem = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1510
1491
|
import_cmdk.Command.Item,
|
|
1511
1492
|
{
|
|
1512
1493
|
ref,
|
|
@@ -1516,12 +1497,12 @@ var CommandItem = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1516
1497
|
));
|
|
1517
1498
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1518
1499
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1519
|
-
return /* @__PURE__ */ (0,
|
|
1500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: cn("dl-command-shortcut", className), ...props });
|
|
1520
1501
|
};
|
|
1521
1502
|
CommandShortcut.displayName = "CommandShortcut";
|
|
1522
1503
|
|
|
1523
1504
|
// src/components/confirm-dialog/confirm-dialog.tsx
|
|
1524
|
-
var
|
|
1505
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1525
1506
|
function ConfirmDialog({
|
|
1526
1507
|
open,
|
|
1527
1508
|
onOpenChange,
|
|
@@ -1532,14 +1513,14 @@ function ConfirmDialog({
|
|
|
1532
1513
|
cancelText = "Cancel",
|
|
1533
1514
|
destructive = false
|
|
1534
1515
|
}) {
|
|
1535
|
-
return /* @__PURE__ */ (0,
|
|
1536
|
-
/* @__PURE__ */ (0,
|
|
1537
|
-
/* @__PURE__ */ (0,
|
|
1538
|
-
/* @__PURE__ */ (0,
|
|
1516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogContent, { children: [
|
|
1517
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogHeader, { children: [
|
|
1518
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogTitle, { children: title }),
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogDescription, { children: description })
|
|
1539
1520
|
] }),
|
|
1540
|
-
/* @__PURE__ */ (0,
|
|
1541
|
-
/* @__PURE__ */ (0,
|
|
1542
|
-
/* @__PURE__ */ (0,
|
|
1521
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogFooter, { children: [
|
|
1522
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogCancel, { children: cancelText }),
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1543
1524
|
AlertDialogAction,
|
|
1544
1525
|
{
|
|
1545
1526
|
onClick: onConfirm,
|
|
@@ -1551,35 +1532,35 @@ function ConfirmDialog({
|
|
|
1551
1532
|
] }) });
|
|
1552
1533
|
}
|
|
1553
1534
|
|
|
1554
|
-
// src/components/context-menu/context-menu.tsx
|
|
1555
|
-
var
|
|
1535
|
+
// src/components/context-menu/context-menu-primitives.tsx
|
|
1536
|
+
var React20 = __toESM(require("react"), 1);
|
|
1556
1537
|
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
1557
1538
|
var import_lucide_react8 = require("lucide-react");
|
|
1558
|
-
var
|
|
1539
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1559
1540
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1560
1541
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1561
1542
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
1562
1543
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1563
1544
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1564
1545
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1565
|
-
var ContextMenuSubTrigger =
|
|
1546
|
+
var ContextMenuSubTrigger = React20.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1566
1547
|
ContextMenuPrimitive.SubTrigger,
|
|
1567
1548
|
{
|
|
1568
1549
|
ref,
|
|
1569
1550
|
className: cn(
|
|
1570
1551
|
"dl-menu-item dl-menu-sub-trigger",
|
|
1571
|
-
inset && "
|
|
1552
|
+
inset && "dl-menu-item--inset",
|
|
1572
1553
|
className
|
|
1573
1554
|
),
|
|
1574
1555
|
...props,
|
|
1575
1556
|
children: [
|
|
1576
1557
|
children,
|
|
1577
|
-
/* @__PURE__ */ (0,
|
|
1558
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.ChevronRight, { className: "dl-menu-item__chevron" })
|
|
1578
1559
|
]
|
|
1579
1560
|
}
|
|
1580
1561
|
));
|
|
1581
1562
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1582
|
-
var ContextMenuSubContent =
|
|
1563
|
+
var ContextMenuSubContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1583
1564
|
ContextMenuPrimitive.SubContent,
|
|
1584
1565
|
{
|
|
1585
1566
|
ref,
|
|
@@ -1588,7 +1569,7 @@ var ContextMenuSubContent = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
1588
1569
|
}
|
|
1589
1570
|
));
|
|
1590
1571
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1591
|
-
var ContextMenuContent =
|
|
1572
|
+
var ContextMenuContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1592
1573
|
ContextMenuPrimitive.Content,
|
|
1593
1574
|
{
|
|
1594
1575
|
ref,
|
|
@@ -1597,80 +1578,86 @@ var ContextMenuContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1597
1578
|
}
|
|
1598
1579
|
) }));
|
|
1599
1580
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1600
|
-
|
|
1601
|
-
|
|
1581
|
+
|
|
1582
|
+
// src/components/context-menu/context-menu-items.tsx
|
|
1583
|
+
var React21 = __toESM(require("react"), 1);
|
|
1584
|
+
var ContextMenuPrimitive2 = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
1585
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1586
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1587
|
+
var ContextMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1588
|
+
ContextMenuPrimitive2.Item,
|
|
1602
1589
|
{
|
|
1603
1590
|
ref,
|
|
1604
|
-
className: cn("dl-menu-item", inset && "
|
|
1591
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
1605
1592
|
...props
|
|
1606
1593
|
}
|
|
1607
1594
|
));
|
|
1608
|
-
ContextMenuItem.displayName =
|
|
1609
|
-
var ContextMenuCheckboxItem =
|
|
1610
|
-
|
|
1595
|
+
ContextMenuItem.displayName = ContextMenuPrimitive2.Item.displayName;
|
|
1596
|
+
var ContextMenuCheckboxItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1597
|
+
ContextMenuPrimitive2.CheckboxItem,
|
|
1611
1598
|
{
|
|
1612
1599
|
ref,
|
|
1613
1600
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
1614
1601
|
...props,
|
|
1615
1602
|
children: [
|
|
1616
|
-
/* @__PURE__ */ (0,
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ContextMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.Check, { className: "dl-menu-item__icon" }) }) }),
|
|
1617
1604
|
children
|
|
1618
1605
|
]
|
|
1619
1606
|
}
|
|
1620
1607
|
));
|
|
1621
|
-
ContextMenuCheckboxItem.displayName =
|
|
1622
|
-
var ContextMenuRadioItem =
|
|
1623
|
-
|
|
1608
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive2.CheckboxItem.displayName;
|
|
1609
|
+
var ContextMenuRadioItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1610
|
+
ContextMenuPrimitive2.RadioItem,
|
|
1624
1611
|
{
|
|
1625
1612
|
ref,
|
|
1626
1613
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
1627
1614
|
...props,
|
|
1628
1615
|
children: [
|
|
1629
|
-
/* @__PURE__ */ (0,
|
|
1616
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ContextMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.Circle, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
1630
1617
|
children
|
|
1631
1618
|
]
|
|
1632
1619
|
}
|
|
1633
1620
|
));
|
|
1634
|
-
ContextMenuRadioItem.displayName =
|
|
1635
|
-
var ContextMenuLabel =
|
|
1636
|
-
|
|
1621
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive2.RadioItem.displayName;
|
|
1622
|
+
var ContextMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1623
|
+
ContextMenuPrimitive2.Label,
|
|
1637
1624
|
{
|
|
1638
1625
|
ref,
|
|
1639
|
-
className: cn("dl-menu-label", inset && "
|
|
1626
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
1640
1627
|
...props
|
|
1641
1628
|
}
|
|
1642
1629
|
));
|
|
1643
|
-
ContextMenuLabel.displayName =
|
|
1644
|
-
var ContextMenuSeparator =
|
|
1645
|
-
|
|
1630
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive2.Label.displayName;
|
|
1631
|
+
var ContextMenuSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1632
|
+
ContextMenuPrimitive2.Separator,
|
|
1646
1633
|
{
|
|
1647
1634
|
ref,
|
|
1648
1635
|
className: cn("dl-menu-separator", className),
|
|
1649
1636
|
...props
|
|
1650
1637
|
}
|
|
1651
1638
|
));
|
|
1652
|
-
ContextMenuSeparator.displayName =
|
|
1639
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive2.Separator.displayName;
|
|
1653
1640
|
var ContextMenuShortcut = ({
|
|
1654
1641
|
className,
|
|
1655
1642
|
...props
|
|
1656
1643
|
}) => {
|
|
1657
|
-
return /* @__PURE__ */ (0,
|
|
1644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
1658
1645
|
};
|
|
1659
1646
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1660
1647
|
|
|
1661
1648
|
// src/components/date-picker/date-picker.tsx
|
|
1662
|
-
var
|
|
1649
|
+
var React23 = __toESM(require("react"), 1);
|
|
1663
1650
|
var import_date_fns = require("date-fns");
|
|
1664
|
-
var
|
|
1651
|
+
var import_lucide_react10 = require("lucide-react");
|
|
1665
1652
|
|
|
1666
1653
|
// src/components/popover/popover.tsx
|
|
1667
|
-
var
|
|
1654
|
+
var React22 = __toESM(require("react"), 1);
|
|
1668
1655
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1669
|
-
var
|
|
1656
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1670
1657
|
var Popover = PopoverPrimitive.Root;
|
|
1671
1658
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1672
1659
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
1673
|
-
var PopoverContent =
|
|
1660
|
+
var PopoverContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1674
1661
|
PopoverPrimitive.Content,
|
|
1675
1662
|
{
|
|
1676
1663
|
ref,
|
|
@@ -1683,7 +1670,7 @@ var PopoverContent = React17.forwardRef(({ className, align = "center", sideOffs
|
|
|
1683
1670
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1684
1671
|
|
|
1685
1672
|
// src/components/date-picker/date-picker.tsx
|
|
1686
|
-
var
|
|
1673
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1687
1674
|
function DatePicker({
|
|
1688
1675
|
value,
|
|
1689
1676
|
onChange,
|
|
@@ -1691,7 +1678,7 @@ function DatePicker({
|
|
|
1691
1678
|
className,
|
|
1692
1679
|
disabled
|
|
1693
1680
|
}) {
|
|
1694
|
-
const date =
|
|
1681
|
+
const date = React23.useMemo(() => {
|
|
1695
1682
|
if (!value) return void 0;
|
|
1696
1683
|
const parts = value.split("-");
|
|
1697
1684
|
if (parts.length !== 3) {
|
|
@@ -1703,8 +1690,8 @@ function DatePicker({
|
|
|
1703
1690
|
const day = parseInt(parts[2], 10);
|
|
1704
1691
|
return new Date(year, month, day, 12, 0, 0);
|
|
1705
1692
|
}, [value]);
|
|
1706
|
-
return /* @__PURE__ */ (0,
|
|
1707
|
-
/* @__PURE__ */ (0,
|
|
1693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Popover, { children: [
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1708
1695
|
Button,
|
|
1709
1696
|
{
|
|
1710
1697
|
variant: "outline",
|
|
@@ -1716,31 +1703,31 @@ function DatePicker({
|
|
|
1716
1703
|
className
|
|
1717
1704
|
),
|
|
1718
1705
|
children: [
|
|
1719
|
-
/* @__PURE__ */ (0,
|
|
1720
|
-
date && !isNaN(date.getTime()) ? (0, import_date_fns.format)(date, "PPP") : /* @__PURE__ */ (0,
|
|
1706
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react10.Calendar, { className: "dl-date-picker-icon" }),
|
|
1707
|
+
date && !isNaN(date.getTime()) ? (0, import_date_fns.format)(date, "PPP") : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: placeholder })
|
|
1721
1708
|
]
|
|
1722
1709
|
}
|
|
1723
1710
|
) }),
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1711
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverContent, { className: "dl-date-picker-content", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1725
1712
|
Calendar,
|
|
1726
1713
|
{
|
|
1727
1714
|
mode: "single",
|
|
1728
1715
|
selected: date,
|
|
1729
1716
|
onSelect: (selectedDate) => onChange?.(selectedDate ? (0, import_date_fns.format)(selectedDate, "yyyy-MM-dd") : ""),
|
|
1730
|
-
|
|
1717
|
+
autoFocus: true
|
|
1731
1718
|
}
|
|
1732
1719
|
) })
|
|
1733
1720
|
] });
|
|
1734
1721
|
}
|
|
1735
1722
|
|
|
1736
1723
|
// src/components/drawer/drawer.tsx
|
|
1737
|
-
var
|
|
1724
|
+
var React24 = __toESM(require("react"), 1);
|
|
1738
1725
|
var import_vaul = require("vaul");
|
|
1739
|
-
var
|
|
1726
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1740
1727
|
var Drawer = ({
|
|
1741
1728
|
shouldScaleBackground = true,
|
|
1742
1729
|
...props
|
|
1743
|
-
}) => /* @__PURE__ */ (0,
|
|
1730
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1744
1731
|
import_vaul.Drawer.Root,
|
|
1745
1732
|
{
|
|
1746
1733
|
shouldScaleBackground,
|
|
@@ -1751,7 +1738,7 @@ Drawer.displayName = "Drawer";
|
|
|
1751
1738
|
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
1752
1739
|
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
1753
1740
|
var DrawerClose = import_vaul.Drawer.Close;
|
|
1754
|
-
var DrawerOverlay =
|
|
1741
|
+
var DrawerOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1755
1742
|
import_vaul.Drawer.Overlay,
|
|
1756
1743
|
{
|
|
1757
1744
|
ref,
|
|
@@ -1760,16 +1747,16 @@ var DrawerOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1760
1747
|
}
|
|
1761
1748
|
));
|
|
1762
1749
|
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
1763
|
-
var DrawerContent =
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1765
|
-
/* @__PURE__ */ (0,
|
|
1750
|
+
var DrawerContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DrawerPortal, { children: [
|
|
1751
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DrawerOverlay, {}),
|
|
1752
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1766
1753
|
import_vaul.Drawer.Content,
|
|
1767
1754
|
{
|
|
1768
1755
|
ref,
|
|
1769
1756
|
className: cn("dl-drawer-content", className),
|
|
1770
1757
|
...props,
|
|
1771
1758
|
children: [
|
|
1772
|
-
/* @__PURE__ */ (0,
|
|
1759
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "dl-drawer-handle" }),
|
|
1773
1760
|
children
|
|
1774
1761
|
]
|
|
1775
1762
|
}
|
|
@@ -1779,14 +1766,14 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
1779
1766
|
var DrawerHeader = ({
|
|
1780
1767
|
className,
|
|
1781
1768
|
...props
|
|
1782
|
-
}) => /* @__PURE__ */ (0,
|
|
1769
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("dl-drawer-header", className), ...props });
|
|
1783
1770
|
DrawerHeader.displayName = "DrawerHeader";
|
|
1784
1771
|
var DrawerFooter = ({
|
|
1785
1772
|
className,
|
|
1786
1773
|
...props
|
|
1787
|
-
}) => /* @__PURE__ */ (0,
|
|
1774
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("dl-drawer-footer", className), ...props });
|
|
1788
1775
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1789
|
-
var DrawerTitle =
|
|
1776
|
+
var DrawerTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1790
1777
|
import_vaul.Drawer.Title,
|
|
1791
1778
|
{
|
|
1792
1779
|
ref,
|
|
@@ -1795,7 +1782,7 @@ var DrawerTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1795
1782
|
}
|
|
1796
1783
|
));
|
|
1797
1784
|
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
1798
|
-
var DrawerDescription =
|
|
1785
|
+
var DrawerDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1799
1786
|
import_vaul.Drawer.Description,
|
|
1800
1787
|
{
|
|
1801
1788
|
ref,
|
|
@@ -1805,40 +1792,35 @@ var DrawerDescription = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1805
1792
|
));
|
|
1806
1793
|
DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
1807
1794
|
|
|
1808
|
-
// src/components/dropdown-menu/dropdown-menu.tsx
|
|
1809
|
-
var
|
|
1795
|
+
// src/components/dropdown-menu/dropdown-menu-primitives.tsx
|
|
1796
|
+
var React25 = __toESM(require("react"), 1);
|
|
1810
1797
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
1811
|
-
var
|
|
1812
|
-
var
|
|
1798
|
+
var import_lucide_react11 = require("lucide-react");
|
|
1799
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1813
1800
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1814
1801
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1815
1802
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1816
1803
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1817
1804
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1818
1805
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1819
|
-
var DropdownMenuSubTrigger =
|
|
1806
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1820
1807
|
DropdownMenuPrimitive.SubTrigger,
|
|
1821
1808
|
{
|
|
1822
1809
|
ref,
|
|
1823
1810
|
className: cn(
|
|
1824
1811
|
"dl-menu-item dl-menu-sub-trigger",
|
|
1825
|
-
inset && "
|
|
1812
|
+
inset && "dl-menu-item--inset",
|
|
1826
1813
|
className
|
|
1827
1814
|
),
|
|
1828
1815
|
...props,
|
|
1829
1816
|
children: [
|
|
1830
1817
|
children,
|
|
1831
|
-
/* @__PURE__ */ (0,
|
|
1832
|
-
import_lucide_react10.ChevronRight,
|
|
1833
|
-
{
|
|
1834
|
-
style: { marginLeft: "auto", width: "1rem", height: "1rem" }
|
|
1835
|
-
}
|
|
1836
|
-
)
|
|
1818
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react11.ChevronRight, { className: "dl-menu-item__chevron" })
|
|
1837
1819
|
]
|
|
1838
1820
|
}
|
|
1839
1821
|
));
|
|
1840
1822
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1841
|
-
var DropdownMenuSubContent =
|
|
1823
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1842
1824
|
DropdownMenuPrimitive.SubContent,
|
|
1843
1825
|
{
|
|
1844
1826
|
ref,
|
|
@@ -1847,7 +1829,7 @@ var DropdownMenuSubContent = React20.forwardRef(({ className, ...props }, ref) =
|
|
|
1847
1829
|
}
|
|
1848
1830
|
));
|
|
1849
1831
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1850
|
-
var DropdownMenuContent =
|
|
1832
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1851
1833
|
DropdownMenuPrimitive.Content,
|
|
1852
1834
|
{
|
|
1853
1835
|
ref,
|
|
@@ -1857,84 +1839,101 @@ var DropdownMenuContent = React20.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1857
1839
|
}
|
|
1858
1840
|
) }));
|
|
1859
1841
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1860
|
-
|
|
1861
|
-
|
|
1842
|
+
|
|
1843
|
+
// src/components/dropdown-menu/dropdown-menu-items.tsx
|
|
1844
|
+
var React26 = __toESM(require("react"), 1);
|
|
1845
|
+
var DropdownMenuPrimitive2 = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
1846
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1847
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1848
|
+
var DropdownMenuItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1849
|
+
DropdownMenuPrimitive2.Item,
|
|
1862
1850
|
{
|
|
1863
1851
|
ref,
|
|
1864
|
-
className: cn("dl-menu-item", inset && "
|
|
1852
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
1865
1853
|
...props
|
|
1866
1854
|
}
|
|
1867
1855
|
));
|
|
1868
|
-
DropdownMenuItem.displayName =
|
|
1869
|
-
var DropdownMenuCheckboxItem =
|
|
1870
|
-
|
|
1856
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive2.Item.displayName;
|
|
1857
|
+
var DropdownMenuCheckboxItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1858
|
+
DropdownMenuPrimitive2.CheckboxItem,
|
|
1871
1859
|
{
|
|
1872
1860
|
ref,
|
|
1873
1861
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
1874
1862
|
...props,
|
|
1875
1863
|
children: [
|
|
1876
|
-
/* @__PURE__ */ (0,
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.Check, { className: "dl-menu-item__icon" }) }) }),
|
|
1877
1865
|
children
|
|
1878
1866
|
]
|
|
1879
1867
|
}
|
|
1880
1868
|
));
|
|
1881
|
-
DropdownMenuCheckboxItem.displayName =
|
|
1882
|
-
var DropdownMenuRadioItem =
|
|
1883
|
-
|
|
1869
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive2.CheckboxItem.displayName;
|
|
1870
|
+
var DropdownMenuRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1871
|
+
DropdownMenuPrimitive2.RadioItem,
|
|
1884
1872
|
{
|
|
1885
1873
|
ref,
|
|
1886
1874
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
1887
1875
|
...props,
|
|
1888
1876
|
children: [
|
|
1889
|
-
/* @__PURE__ */ (0,
|
|
1890
|
-
import_lucide_react10.Circle,
|
|
1891
|
-
{
|
|
1892
|
-
style: { width: "0.5rem", height: "0.5rem", fill: "currentColor" }
|
|
1893
|
-
}
|
|
1894
|
-
) }) }),
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.Circle, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
1895
1878
|
children
|
|
1896
1879
|
]
|
|
1897
1880
|
}
|
|
1898
1881
|
));
|
|
1899
|
-
DropdownMenuRadioItem.displayName =
|
|
1900
|
-
var DropdownMenuLabel =
|
|
1901
|
-
|
|
1882
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive2.RadioItem.displayName;
|
|
1883
|
+
var DropdownMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1884
|
+
DropdownMenuPrimitive2.Label,
|
|
1902
1885
|
{
|
|
1903
1886
|
ref,
|
|
1904
|
-
className: cn("dl-menu-label", inset && "
|
|
1887
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
1905
1888
|
...props
|
|
1906
1889
|
}
|
|
1907
1890
|
));
|
|
1908
|
-
DropdownMenuLabel.displayName =
|
|
1909
|
-
var DropdownMenuSeparator =
|
|
1910
|
-
|
|
1891
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive2.Label.displayName;
|
|
1892
|
+
var DropdownMenuSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1893
|
+
DropdownMenuPrimitive2.Separator,
|
|
1911
1894
|
{
|
|
1912
1895
|
ref,
|
|
1913
1896
|
className: cn("dl-menu-separator", className),
|
|
1914
1897
|
...props
|
|
1915
1898
|
}
|
|
1916
1899
|
));
|
|
1917
|
-
DropdownMenuSeparator.displayName =
|
|
1900
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive2.Separator.displayName;
|
|
1918
1901
|
var DropdownMenuShortcut = ({
|
|
1919
1902
|
className,
|
|
1920
1903
|
...props
|
|
1921
1904
|
}) => {
|
|
1922
|
-
return /* @__PURE__ */ (0,
|
|
1905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
1923
1906
|
};
|
|
1924
1907
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1925
1908
|
|
|
1909
|
+
// src/components/empty-state/empty-state.tsx
|
|
1910
|
+
var React27 = __toESM(require("react"), 1);
|
|
1911
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1912
|
+
var EmptyState = React27.forwardRef(
|
|
1913
|
+
({ title, description, icon, action, children, className, ...props }, ref) => {
|
|
1914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref, className: cn("dl-empty-state", className), ...props, children: [
|
|
1915
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "dl-empty-state__icon-box", children: icon }),
|
|
1916
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "dl-empty-state__title", children: title }),
|
|
1917
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "dl-empty-state__description", children: description }),
|
|
1918
|
+
children,
|
|
1919
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "dl-empty-state__actions", children: action })
|
|
1920
|
+
] });
|
|
1921
|
+
}
|
|
1922
|
+
);
|
|
1923
|
+
EmptyState.displayName = "EmptyState";
|
|
1924
|
+
|
|
1926
1925
|
// src/components/form/form.tsx
|
|
1927
|
-
var
|
|
1926
|
+
var React29 = __toESM(require("react"), 1);
|
|
1928
1927
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
1929
1928
|
var import_react_hook_form = require("react-hook-form");
|
|
1930
1929
|
|
|
1931
1930
|
// src/components/label/label.tsx
|
|
1932
|
-
var
|
|
1931
|
+
var React28 = __toESM(require("react"), 1);
|
|
1933
1932
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
1934
1933
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1935
|
-
var
|
|
1934
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1936
1935
|
var labelVariants = (0, import_class_variance_authority4.cva)("dl-label");
|
|
1937
|
-
var Label3 =
|
|
1936
|
+
var Label3 = React28.forwardRef(({ className, children, required = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1938
1937
|
LabelPrimitive.Root,
|
|
1939
1938
|
{
|
|
1940
1939
|
ref,
|
|
@@ -1942,26 +1941,26 @@ var Label3 = React21.forwardRef(({ className, children, required = false, ...pro
|
|
|
1942
1941
|
...props,
|
|
1943
1942
|
children: [
|
|
1944
1943
|
children,
|
|
1945
|
-
required && /* @__PURE__ */ (0,
|
|
1944
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "dl-label-required", children: "*" })
|
|
1946
1945
|
]
|
|
1947
1946
|
}
|
|
1948
1947
|
));
|
|
1949
1948
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1950
1949
|
|
|
1951
1950
|
// src/components/form/form.tsx
|
|
1952
|
-
var
|
|
1951
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1953
1952
|
var Form = import_react_hook_form.FormProvider;
|
|
1954
|
-
var FormFieldContext =
|
|
1953
|
+
var FormFieldContext = React29.createContext(
|
|
1955
1954
|
null
|
|
1956
1955
|
);
|
|
1957
1956
|
var FormField = ({
|
|
1958
1957
|
...props
|
|
1959
1958
|
}) => {
|
|
1960
|
-
return /* @__PURE__ */ (0,
|
|
1959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
1961
1960
|
};
|
|
1962
1961
|
var useFormField = () => {
|
|
1963
|
-
const fieldContext =
|
|
1964
|
-
const itemContext =
|
|
1962
|
+
const fieldContext = React29.useContext(FormFieldContext);
|
|
1963
|
+
const itemContext = React29.useContext(FormItemContext);
|
|
1965
1964
|
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
1966
1965
|
if (!fieldContext) {
|
|
1967
1966
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -1980,15 +1979,15 @@ var useFormField = () => {
|
|
|
1980
1979
|
...fieldState
|
|
1981
1980
|
};
|
|
1982
1981
|
};
|
|
1983
|
-
var FormItemContext =
|
|
1984
|
-
var FormItem =
|
|
1985
|
-
const id =
|
|
1986
|
-
return /* @__PURE__ */ (0,
|
|
1982
|
+
var FormItemContext = React29.createContext(null);
|
|
1983
|
+
var FormItem = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1984
|
+
const id = React29.useId();
|
|
1985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, className: cn("dl-form-item", className), ...props }) });
|
|
1987
1986
|
});
|
|
1988
1987
|
FormItem.displayName = "FormItem";
|
|
1989
|
-
var FormLabel =
|
|
1988
|
+
var FormLabel = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1990
1989
|
const { error, formItemId } = useFormField();
|
|
1991
|
-
return /* @__PURE__ */ (0,
|
|
1990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1992
1991
|
Label3,
|
|
1993
1992
|
{
|
|
1994
1993
|
ref,
|
|
@@ -1999,9 +1998,9 @@ var FormLabel = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
1999
1998
|
);
|
|
2000
1999
|
});
|
|
2001
2000
|
FormLabel.displayName = "FormLabel";
|
|
2002
|
-
var FormControl =
|
|
2001
|
+
var FormControl = React29.forwardRef(({ ...props }, ref) => {
|
|
2003
2002
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2004
|
-
return /* @__PURE__ */ (0,
|
|
2003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2005
2004
|
import_react_slot3.Slot,
|
|
2006
2005
|
{
|
|
2007
2006
|
ref,
|
|
@@ -2013,9 +2012,9 @@ var FormControl = React22.forwardRef(({ ...props }, ref) => {
|
|
|
2013
2012
|
);
|
|
2014
2013
|
});
|
|
2015
2014
|
FormControl.displayName = "FormControl";
|
|
2016
|
-
var FormDescription =
|
|
2015
|
+
var FormDescription = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2017
2016
|
const { formDescriptionId } = useFormField();
|
|
2018
|
-
return /* @__PURE__ */ (0,
|
|
2017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2019
2018
|
"p",
|
|
2020
2019
|
{
|
|
2021
2020
|
ref,
|
|
@@ -2026,13 +2025,13 @@ var FormDescription = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2026
2025
|
);
|
|
2027
2026
|
});
|
|
2028
2027
|
FormDescription.displayName = "FormDescription";
|
|
2029
|
-
var FormMessage =
|
|
2028
|
+
var FormMessage = React29.forwardRef(({ className, children, ...props }, ref) => {
|
|
2030
2029
|
const { error, formMessageId } = useFormField();
|
|
2031
2030
|
const body = error ? String(error?.message ?? "") : children;
|
|
2032
2031
|
if (!body) {
|
|
2033
2032
|
return null;
|
|
2034
2033
|
}
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2036
2035
|
"p",
|
|
2037
2036
|
{
|
|
2038
2037
|
ref,
|
|
@@ -2046,12 +2045,12 @@ var FormMessage = React22.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2046
2045
|
FormMessage.displayName = "FormMessage";
|
|
2047
2046
|
|
|
2048
2047
|
// src/components/hover-card/hover-card.tsx
|
|
2049
|
-
var
|
|
2048
|
+
var React30 = __toESM(require("react"), 1);
|
|
2050
2049
|
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
2051
|
-
var
|
|
2050
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2052
2051
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2053
2052
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2054
|
-
var HoverCardContent =
|
|
2053
|
+
var HoverCardContent = React30.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2055
2054
|
HoverCardPrimitive.Content,
|
|
2056
2055
|
{
|
|
2057
2056
|
ref,
|
|
@@ -2064,11 +2063,11 @@ var HoverCardContent = React23.forwardRef(({ className, align = "center", sideOf
|
|
|
2064
2063
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2065
2064
|
|
|
2066
2065
|
// src/components/input/input.tsx
|
|
2067
|
-
var
|
|
2068
|
-
var
|
|
2069
|
-
var Input =
|
|
2066
|
+
var React31 = __toESM(require("react"), 1);
|
|
2067
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2068
|
+
var Input = React31.forwardRef(
|
|
2070
2069
|
({ className, type, startIcon, endIcon, ...props }, ref) => {
|
|
2071
|
-
const inputEl = /* @__PURE__ */ (0,
|
|
2070
|
+
const inputEl = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2072
2071
|
"input",
|
|
2073
2072
|
{
|
|
2074
2073
|
type,
|
|
@@ -2085,21 +2084,21 @@ var Input = React24.forwardRef(
|
|
|
2085
2084
|
if (!startIcon && !endIcon) {
|
|
2086
2085
|
return inputEl;
|
|
2087
2086
|
}
|
|
2088
|
-
return /* @__PURE__ */ (0,
|
|
2089
|
-
startIcon && /* @__PURE__ */ (0,
|
|
2087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "dl-input-wrapper", children: [
|
|
2088
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "dl-input-icon dl-input-icon--start", children: startIcon }),
|
|
2090
2089
|
inputEl,
|
|
2091
|
-
endIcon && /* @__PURE__ */ (0,
|
|
2090
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "dl-input-icon dl-input-icon--end", children: endIcon })
|
|
2092
2091
|
] });
|
|
2093
2092
|
}
|
|
2094
2093
|
);
|
|
2095
2094
|
Input.displayName = "Input";
|
|
2096
2095
|
|
|
2097
2096
|
// src/components/input-otp/input-otp.tsx
|
|
2098
|
-
var
|
|
2097
|
+
var React32 = __toESM(require("react"), 1);
|
|
2099
2098
|
var import_input_otp = require("input-otp");
|
|
2100
|
-
var
|
|
2101
|
-
var
|
|
2102
|
-
var InputOTP =
|
|
2099
|
+
var import_lucide_react13 = require("lucide-react");
|
|
2100
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2101
|
+
var InputOTP = React32.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2103
2102
|
import_input_otp.OTPInput,
|
|
2104
2103
|
{
|
|
2105
2104
|
ref,
|
|
@@ -2109,16 +2108,16 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
|
|
|
2109
2108
|
}
|
|
2110
2109
|
));
|
|
2111
2110
|
InputOTP.displayName = "InputOTP";
|
|
2112
|
-
var InputOTPGroup =
|
|
2111
|
+
var InputOTPGroup = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: cn("dl-input-otp-group", className), ...props }));
|
|
2113
2112
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2114
|
-
var InputOTPSlot =
|
|
2115
|
-
const inputOTPContext =
|
|
2113
|
+
var InputOTPSlot = React32.forwardRef(({ index, className, ...props }, ref) => {
|
|
2114
|
+
const inputOTPContext = React32.useContext(import_input_otp.OTPInputContext);
|
|
2116
2115
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index] ?? {
|
|
2117
2116
|
char: null,
|
|
2118
2117
|
hasFakeCaret: false,
|
|
2119
2118
|
isActive: false
|
|
2120
2119
|
};
|
|
2121
|
-
return /* @__PURE__ */ (0,
|
|
2120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2122
2121
|
"div",
|
|
2123
2122
|
{
|
|
2124
2123
|
ref,
|
|
@@ -2130,23 +2129,23 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2130
2129
|
...props,
|
|
2131
2130
|
children: [
|
|
2132
2131
|
char,
|
|
2133
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
2132
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "dl-input-otp-caret", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "dl-input-otp-caret__line" }) })
|
|
2134
2133
|
]
|
|
2135
2134
|
}
|
|
2136
2135
|
);
|
|
2137
2136
|
});
|
|
2138
2137
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2139
|
-
var InputOTPSeparator =
|
|
2138
|
+
var InputOTPSeparator = React32.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.Minus, {}) }));
|
|
2140
2139
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2141
2140
|
|
|
2142
2141
|
// src/components/skeleton/skeleton.tsx
|
|
2143
|
-
var
|
|
2142
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2144
2143
|
function Skeleton({ className, ...props }) {
|
|
2145
|
-
return /* @__PURE__ */ (0,
|
|
2144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("dl-skeleton", className), ...props });
|
|
2146
2145
|
}
|
|
2147
2146
|
|
|
2148
2147
|
// src/components/loading-state/loading-state.tsx
|
|
2149
|
-
var
|
|
2148
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2150
2149
|
function LoadingState({
|
|
2151
2150
|
rows = 3,
|
|
2152
2151
|
message,
|
|
@@ -2154,8 +2153,8 @@ function LoadingState({
|
|
|
2154
2153
|
...props
|
|
2155
2154
|
}) {
|
|
2156
2155
|
if (message) {
|
|
2157
|
-
return /* @__PURE__ */ (0,
|
|
2158
|
-
/* @__PURE__ */ (0,
|
|
2156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("dl-loading", className), ...props, children: [
|
|
2157
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2159
2158
|
"svg",
|
|
2160
2159
|
{
|
|
2161
2160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2167,49 +2166,39 @@ function LoadingState({
|
|
|
2167
2166
|
strokeWidth: "2",
|
|
2168
2167
|
strokeLinecap: "round",
|
|
2169
2168
|
strokeLinejoin: "round",
|
|
2170
|
-
children: /* @__PURE__ */ (0,
|
|
2169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
2171
2170
|
}
|
|
2172
2171
|
),
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2172
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: message })
|
|
2174
2173
|
] });
|
|
2175
2174
|
}
|
|
2176
|
-
return /* @__PURE__ */ (0,
|
|
2177
|
-
/* @__PURE__ */ (0,
|
|
2178
|
-
/* @__PURE__ */ (0,
|
|
2179
|
-
Skeleton,
|
|
2180
|
-
{
|
|
2181
|
-
style: {
|
|
2182
|
-
height: "4rem",
|
|
2183
|
-
width: "100%",
|
|
2184
|
-
borderRadius: "var(--radius-lg, 0.75rem)"
|
|
2185
|
-
}
|
|
2186
|
-
},
|
|
2187
|
-
i
|
|
2188
|
-
)) })
|
|
2175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("dl-loading-skeleton", className), ...props, children: [
|
|
2176
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Skeleton, { className: "dl-loading-skeleton__header" }),
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "dl-loading-skeleton__list", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Skeleton, { className: "dl-loading-skeleton__row" }, i)) })
|
|
2189
2178
|
] });
|
|
2190
2179
|
}
|
|
2191
2180
|
|
|
2192
|
-
// src/components/menubar/menubar.tsx
|
|
2193
|
-
var
|
|
2181
|
+
// src/components/menubar/menubar-primitives.tsx
|
|
2182
|
+
var React33 = __toESM(require("react"), 1);
|
|
2194
2183
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
2195
|
-
var
|
|
2196
|
-
var
|
|
2184
|
+
var import_lucide_react14 = require("lucide-react");
|
|
2185
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2197
2186
|
function MenubarMenu(props) {
|
|
2198
|
-
return /* @__PURE__ */ (0,
|
|
2187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.Menu, { ...props });
|
|
2199
2188
|
}
|
|
2200
2189
|
function MenubarGroup(props) {
|
|
2201
|
-
return /* @__PURE__ */ (0,
|
|
2190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.Group, { ...props });
|
|
2202
2191
|
}
|
|
2203
2192
|
function MenubarPortal(props) {
|
|
2204
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.Portal, { ...props });
|
|
2205
2194
|
}
|
|
2206
2195
|
function MenubarRadioGroup(props) {
|
|
2207
|
-
return /* @__PURE__ */ (0,
|
|
2196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.RadioGroup, { ...props });
|
|
2208
2197
|
}
|
|
2209
2198
|
function MenubarSub(props) {
|
|
2210
|
-
return /* @__PURE__ */ (0,
|
|
2199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2211
2200
|
}
|
|
2212
|
-
var Menubar =
|
|
2201
|
+
var Menubar = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2213
2202
|
MenubarPrimitive.Root,
|
|
2214
2203
|
{
|
|
2215
2204
|
ref,
|
|
@@ -2218,7 +2207,7 @@ var Menubar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2218
2207
|
}
|
|
2219
2208
|
));
|
|
2220
2209
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2221
|
-
var MenubarTrigger =
|
|
2210
|
+
var MenubarTrigger = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2222
2211
|
MenubarPrimitive.Trigger,
|
|
2223
2212
|
{
|
|
2224
2213
|
ref,
|
|
@@ -2227,24 +2216,24 @@ var MenubarTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2227
2216
|
}
|
|
2228
2217
|
));
|
|
2229
2218
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2230
|
-
var MenubarSubTrigger =
|
|
2219
|
+
var MenubarSubTrigger = React33.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2231
2220
|
MenubarPrimitive.SubTrigger,
|
|
2232
2221
|
{
|
|
2233
2222
|
ref,
|
|
2234
2223
|
className: cn(
|
|
2235
2224
|
"dl-menu-item dl-menu-sub-trigger",
|
|
2236
|
-
inset && "
|
|
2225
|
+
inset && "dl-menu-item--inset",
|
|
2237
2226
|
className
|
|
2238
2227
|
),
|
|
2239
2228
|
...props,
|
|
2240
2229
|
children: [
|
|
2241
2230
|
children,
|
|
2242
|
-
/* @__PURE__ */ (0,
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react14.ChevronRight, { className: "dl-menu-item__chevron" })
|
|
2243
2232
|
]
|
|
2244
2233
|
}
|
|
2245
2234
|
));
|
|
2246
2235
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2247
|
-
var MenubarSubContent =
|
|
2236
|
+
var MenubarSubContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2248
2237
|
MenubarPrimitive.SubContent,
|
|
2249
2238
|
{
|
|
2250
2239
|
ref,
|
|
@@ -2253,8 +2242,8 @@ var MenubarSubContent = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2253
2242
|
}
|
|
2254
2243
|
));
|
|
2255
2244
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2256
|
-
var MenubarContent =
|
|
2257
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2245
|
+
var MenubarContent = React33.forwardRef(
|
|
2246
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2258
2247
|
MenubarPrimitive.Content,
|
|
2259
2248
|
{
|
|
2260
2249
|
ref,
|
|
@@ -2267,72 +2256,81 @@ var MenubarContent = React26.forwardRef(
|
|
|
2267
2256
|
) })
|
|
2268
2257
|
);
|
|
2269
2258
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2270
|
-
|
|
2271
|
-
|
|
2259
|
+
|
|
2260
|
+
// src/components/menubar/menubar-items.tsx
|
|
2261
|
+
var React34 = __toESM(require("react"), 1);
|
|
2262
|
+
var MenubarPrimitive2 = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
2263
|
+
var import_lucide_react15 = require("lucide-react");
|
|
2264
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2265
|
+
var MenubarItem = React34.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2266
|
+
MenubarPrimitive2.Item,
|
|
2272
2267
|
{
|
|
2273
2268
|
ref,
|
|
2274
|
-
className: cn("dl-menu-item", inset && "
|
|
2269
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
2275
2270
|
...props
|
|
2276
2271
|
}
|
|
2277
2272
|
));
|
|
2278
|
-
MenubarItem.displayName =
|
|
2279
|
-
var MenubarCheckboxItem =
|
|
2280
|
-
|
|
2273
|
+
MenubarItem.displayName = MenubarPrimitive2.Item.displayName;
|
|
2274
|
+
var MenubarCheckboxItem = React34.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2275
|
+
MenubarPrimitive2.CheckboxItem,
|
|
2281
2276
|
{
|
|
2282
2277
|
ref,
|
|
2283
2278
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
2284
2279
|
checked,
|
|
2285
2280
|
...props,
|
|
2286
2281
|
children: [
|
|
2287
|
-
/* @__PURE__ */ (0,
|
|
2282
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MenubarPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react15.Check, { className: "dl-menu-item__icon" }) }) }),
|
|
2288
2283
|
children
|
|
2289
2284
|
]
|
|
2290
2285
|
}
|
|
2291
2286
|
));
|
|
2292
|
-
MenubarCheckboxItem.displayName =
|
|
2293
|
-
var MenubarRadioItem =
|
|
2294
|
-
|
|
2287
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive2.CheckboxItem.displayName;
|
|
2288
|
+
var MenubarRadioItem = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2289
|
+
MenubarPrimitive2.RadioItem,
|
|
2295
2290
|
{
|
|
2296
2291
|
ref,
|
|
2297
2292
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
2298
2293
|
...props,
|
|
2299
2294
|
children: [
|
|
2300
|
-
/* @__PURE__ */ (0,
|
|
2295
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MenubarPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react15.Circle, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
2301
2296
|
children
|
|
2302
2297
|
]
|
|
2303
2298
|
}
|
|
2304
2299
|
));
|
|
2305
|
-
MenubarRadioItem.displayName =
|
|
2306
|
-
var MenubarLabel =
|
|
2307
|
-
|
|
2300
|
+
MenubarRadioItem.displayName = MenubarPrimitive2.RadioItem.displayName;
|
|
2301
|
+
var MenubarLabel = React34.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2302
|
+
MenubarPrimitive2.Label,
|
|
2308
2303
|
{
|
|
2309
2304
|
ref,
|
|
2310
|
-
className: cn("dl-menu-label", inset && "
|
|
2305
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
2311
2306
|
...props
|
|
2312
2307
|
}
|
|
2313
2308
|
));
|
|
2314
|
-
MenubarLabel.displayName =
|
|
2315
|
-
var MenubarSeparator =
|
|
2316
|
-
|
|
2309
|
+
MenubarLabel.displayName = MenubarPrimitive2.Label.displayName;
|
|
2310
|
+
var MenubarSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2311
|
+
MenubarPrimitive2.Separator,
|
|
2317
2312
|
{
|
|
2318
2313
|
ref,
|
|
2319
2314
|
className: cn("dl-menu-separator", className),
|
|
2320
2315
|
...props
|
|
2321
2316
|
}
|
|
2322
2317
|
));
|
|
2323
|
-
MenubarSeparator.displayName =
|
|
2324
|
-
var MenubarShortcut = ({
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2318
|
+
MenubarSeparator.displayName = MenubarPrimitive2.Separator.displayName;
|
|
2319
|
+
var MenubarShortcut = ({
|
|
2320
|
+
className,
|
|
2321
|
+
...props
|
|
2322
|
+
}) => {
|
|
2323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
2324
|
+
};
|
|
2325
|
+
MenubarShortcut.displayName = "MenubarShortcut";
|
|
2328
2326
|
|
|
2329
2327
|
// src/components/navigation-menu/navigation-menu.tsx
|
|
2330
|
-
var
|
|
2328
|
+
var React35 = __toESM(require("react"), 1);
|
|
2331
2329
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
2332
2330
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2333
|
-
var
|
|
2334
|
-
var
|
|
2335
|
-
var NavigationMenu =
|
|
2331
|
+
var import_lucide_react16 = require("lucide-react");
|
|
2332
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2333
|
+
var NavigationMenu = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2336
2334
|
NavigationMenuPrimitive.Root,
|
|
2337
2335
|
{
|
|
2338
2336
|
ref,
|
|
@@ -2340,12 +2338,12 @@ var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
2340
2338
|
...props,
|
|
2341
2339
|
children: [
|
|
2342
2340
|
children,
|
|
2343
|
-
/* @__PURE__ */ (0,
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(NavigationMenuViewport, {})
|
|
2344
2342
|
]
|
|
2345
2343
|
}
|
|
2346
2344
|
));
|
|
2347
2345
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2348
|
-
var NavigationMenuList =
|
|
2346
|
+
var NavigationMenuList = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2349
2347
|
NavigationMenuPrimitive.List,
|
|
2350
2348
|
{
|
|
2351
2349
|
ref,
|
|
@@ -2356,7 +2354,7 @@ var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2356
2354
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
2357
2355
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
2358
2356
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority5.cva)("dl-navigation-menu-trigger");
|
|
2359
|
-
var NavigationMenuTrigger =
|
|
2357
|
+
var NavigationMenuTrigger = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2360
2358
|
NavigationMenuPrimitive.Trigger,
|
|
2361
2359
|
{
|
|
2362
2360
|
ref,
|
|
@@ -2365,12 +2363,12 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
2365
2363
|
children: [
|
|
2366
2364
|
children,
|
|
2367
2365
|
" ",
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
2366
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react16.ChevronDown, { className: "dl-navigation-menu-chevron", "aria-hidden": "true" })
|
|
2369
2367
|
]
|
|
2370
2368
|
}
|
|
2371
2369
|
));
|
|
2372
2370
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2373
|
-
var NavigationMenuContent =
|
|
2371
|
+
var NavigationMenuContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2374
2372
|
NavigationMenuPrimitive.Content,
|
|
2375
2373
|
{
|
|
2376
2374
|
ref,
|
|
@@ -2380,7 +2378,7 @@ var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
2380
2378
|
));
|
|
2381
2379
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2382
2380
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2383
|
-
var NavigationMenuViewport =
|
|
2381
|
+
var NavigationMenuViewport = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "dl-navigation-menu-viewport-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2384
2382
|
NavigationMenuPrimitive.Viewport,
|
|
2385
2383
|
{
|
|
2386
2384
|
className: cn("dl-navigation-menu-viewport", className),
|
|
@@ -2389,22 +2387,22 @@ var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
2389
2387
|
}
|
|
2390
2388
|
) }));
|
|
2391
2389
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2392
|
-
var NavigationMenuIndicator =
|
|
2390
|
+
var NavigationMenuIndicator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2393
2391
|
NavigationMenuPrimitive.Indicator,
|
|
2394
2392
|
{
|
|
2395
2393
|
ref,
|
|
2396
2394
|
className: cn("dl-navigation-menu-indicator", className),
|
|
2397
2395
|
...props,
|
|
2398
|
-
children: /* @__PURE__ */ (0,
|
|
2396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "dl-navigation-menu-indicator__arrow" })
|
|
2399
2397
|
}
|
|
2400
2398
|
));
|
|
2401
2399
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
2402
2400
|
|
|
2403
2401
|
// src/components/pagination/pagination.tsx
|
|
2404
|
-
var
|
|
2405
|
-
var
|
|
2406
|
-
var
|
|
2407
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2402
|
+
var React36 = __toESM(require("react"), 1);
|
|
2403
|
+
var import_lucide_react17 = require("lucide-react");
|
|
2404
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2405
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2408
2406
|
"nav",
|
|
2409
2407
|
{
|
|
2410
2408
|
role: "navigation",
|
|
@@ -2414,10 +2412,10 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
2414
2412
|
}
|
|
2415
2413
|
);
|
|
2416
2414
|
Pagination.displayName = "Pagination";
|
|
2417
|
-
var PaginationContent =
|
|
2415
|
+
var PaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("ul", { ref, className: cn("dl-pagination-content", className), ...props }));
|
|
2418
2416
|
PaginationContent.displayName = "PaginationContent";
|
|
2419
|
-
var PaginationItem =
|
|
2420
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2417
|
+
var PaginationItem = React36.forwardRef(
|
|
2418
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, className: cn("dl-pagination-item", className), ...props })
|
|
2421
2419
|
);
|
|
2422
2420
|
PaginationItem.displayName = "PaginationItem";
|
|
2423
2421
|
var PaginationLink = ({
|
|
@@ -2425,7 +2423,7 @@ var PaginationLink = ({
|
|
|
2425
2423
|
isActive,
|
|
2426
2424
|
size = "icon",
|
|
2427
2425
|
...props
|
|
2428
|
-
}) => /* @__PURE__ */ (0,
|
|
2426
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2429
2427
|
"a",
|
|
2430
2428
|
{
|
|
2431
2429
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -2443,7 +2441,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
2443
2441
|
var PaginationPrevious = ({
|
|
2444
2442
|
className,
|
|
2445
2443
|
...props
|
|
2446
|
-
}) => /* @__PURE__ */ (0,
|
|
2444
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
2447
2445
|
PaginationLink,
|
|
2448
2446
|
{
|
|
2449
2447
|
"aria-label": "Go to previous page",
|
|
@@ -2451,13 +2449,13 @@ var PaginationPrevious = ({
|
|
|
2451
2449
|
className: cn("dl-pagination-prev", className),
|
|
2452
2450
|
...props,
|
|
2453
2451
|
children: [
|
|
2454
|
-
/* @__PURE__ */ (0,
|
|
2455
|
-
/* @__PURE__ */ (0,
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.ChevronLeft, { className: "dl-pagination-icon" }),
|
|
2453
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Previous" })
|
|
2456
2454
|
]
|
|
2457
2455
|
}
|
|
2458
2456
|
);
|
|
2459
2457
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
2460
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2458
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
2461
2459
|
PaginationLink,
|
|
2462
2460
|
{
|
|
2463
2461
|
"aria-label": "Go to next page",
|
|
@@ -2465,8 +2463,8 @@ var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx
|
|
|
2465
2463
|
className: cn("dl-pagination-next", className),
|
|
2466
2464
|
...props,
|
|
2467
2465
|
children: [
|
|
2468
|
-
/* @__PURE__ */ (0,
|
|
2469
|
-
/* @__PURE__ */ (0,
|
|
2466
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Next" }),
|
|
2467
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.ChevronRight, { className: "dl-pagination-icon" })
|
|
2470
2468
|
]
|
|
2471
2469
|
}
|
|
2472
2470
|
);
|
|
@@ -2474,29 +2472,29 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
2474
2472
|
var PaginationEllipsis = ({
|
|
2475
2473
|
className,
|
|
2476
2474
|
...props
|
|
2477
|
-
}) => /* @__PURE__ */ (0,
|
|
2475
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
2478
2476
|
"span",
|
|
2479
2477
|
{
|
|
2480
2478
|
"aria-hidden": true,
|
|
2481
2479
|
className: cn("dl-pagination-ellipsis", className),
|
|
2482
2480
|
...props,
|
|
2483
2481
|
children: [
|
|
2484
|
-
/* @__PURE__ */ (0,
|
|
2485
|
-
/* @__PURE__ */ (0,
|
|
2482
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.MoreHorizontal, {}),
|
|
2483
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
2486
2484
|
]
|
|
2487
2485
|
}
|
|
2488
2486
|
);
|
|
2489
2487
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
2490
2488
|
|
|
2491
2489
|
// src/components/panel/panel.tsx
|
|
2492
|
-
var
|
|
2493
|
-
var
|
|
2494
|
-
var Panel =
|
|
2490
|
+
var React37 = __toESM(require("react"), 1);
|
|
2491
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2492
|
+
var Panel = React37.forwardRef(
|
|
2495
2493
|
({ title, meta, children, className, ...props }, ref) => {
|
|
2496
|
-
return /* @__PURE__ */ (0,
|
|
2497
|
-
title ? /* @__PURE__ */ (0,
|
|
2498
|
-
/* @__PURE__ */ (0,
|
|
2499
|
-
meta ? /* @__PURE__ */ (0,
|
|
2494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("section", { ref, className: cn("dl-panel", className), ...props, children: [
|
|
2495
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "dl-panel__header", children: [
|
|
2496
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { className: "dl-panel__title", children: title }),
|
|
2497
|
+
meta ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "dl-panel__meta", children: meta }) : null
|
|
2500
2498
|
] }) : null,
|
|
2501
2499
|
children
|
|
2502
2500
|
] });
|
|
@@ -2505,16 +2503,16 @@ var Panel = React29.forwardRef(
|
|
|
2505
2503
|
Panel.displayName = "Panel";
|
|
2506
2504
|
|
|
2507
2505
|
// src/components/progress/progress.tsx
|
|
2508
|
-
var
|
|
2506
|
+
var React38 = __toESM(require("react"), 1);
|
|
2509
2507
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
2510
|
-
var
|
|
2511
|
-
var Progress =
|
|
2508
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2509
|
+
var Progress = React38.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2512
2510
|
ProgressPrimitive.Root,
|
|
2513
2511
|
{
|
|
2514
2512
|
ref,
|
|
2515
2513
|
className: cn("dl-progress", className),
|
|
2516
2514
|
...props,
|
|
2517
|
-
children: /* @__PURE__ */ (0,
|
|
2515
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2518
2516
|
ProgressPrimitive.Indicator,
|
|
2519
2517
|
{
|
|
2520
2518
|
className: "dl-progress__indicator",
|
|
@@ -2526,12 +2524,12 @@ var Progress = React30.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2526
2524
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2527
2525
|
|
|
2528
2526
|
// src/components/radio-group/radio-group.tsx
|
|
2529
|
-
var
|
|
2527
|
+
var React39 = __toESM(require("react"), 1);
|
|
2530
2528
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
2531
|
-
var
|
|
2532
|
-
var
|
|
2533
|
-
var RadioGroup4 =
|
|
2534
|
-
return /* @__PURE__ */ (0,
|
|
2529
|
+
var import_lucide_react18 = require("lucide-react");
|
|
2530
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2531
|
+
var RadioGroup4 = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2535
2533
|
RadioGroupPrimitive.Root,
|
|
2536
2534
|
{
|
|
2537
2535
|
className: cn("dl-radio-group", className),
|
|
@@ -2541,88 +2539,83 @@ var RadioGroup4 = React31.forwardRef(({ className, ...props }, ref) => {
|
|
|
2541
2539
|
);
|
|
2542
2540
|
});
|
|
2543
2541
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2544
|
-
var RadioGroupItem =
|
|
2545
|
-
return /* @__PURE__ */ (0,
|
|
2542
|
+
var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2546
2544
|
RadioGroupPrimitive.Item,
|
|
2547
2545
|
{
|
|
2548
2546
|
ref,
|
|
2549
2547
|
className: cn("dl-radio-item", className),
|
|
2550
2548
|
...props,
|
|
2551
|
-
children: /* @__PURE__ */ (0,
|
|
2549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupPrimitive.Indicator, { className: "dl-radio-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react18.Circle, { "aria-hidden": "true" }) })
|
|
2552
2550
|
}
|
|
2553
2551
|
);
|
|
2554
2552
|
});
|
|
2555
2553
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
2556
2554
|
|
|
2557
2555
|
// src/components/resizable/resizable.tsx
|
|
2558
|
-
var
|
|
2556
|
+
var import_lucide_react19 = require("lucide-react");
|
|
2559
2557
|
var import_react_resizable_panels = require("react-resizable-panels");
|
|
2560
|
-
var
|
|
2558
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2561
2559
|
var ResizablePanelGroup = ({
|
|
2562
2560
|
className,
|
|
2563
2561
|
...props
|
|
2564
|
-
}) => /* @__PURE__ */ (0,
|
|
2562
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_resizable_panels.Group, { className: cn("dl-resizable-group", className), ...props });
|
|
2565
2563
|
var ResizablePanel = import_react_resizable_panels.Panel;
|
|
2566
2564
|
var ResizableHandle = ({
|
|
2567
2565
|
withHandle,
|
|
2568
2566
|
className,
|
|
2569
2567
|
...props
|
|
2570
|
-
}) => /* @__PURE__ */ (0,
|
|
2568
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_resizable_panels.Separator, { className: cn("dl-resizable-handle", className), ...props, children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "dl-resizable-grip", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react19.GripVertical, {}) }) });
|
|
2571
2569
|
|
|
2572
2570
|
// src/components/scroll-area/scroll-area.tsx
|
|
2573
|
-
var
|
|
2571
|
+
var React40 = __toESM(require("react"), 1);
|
|
2574
2572
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
2575
|
-
var
|
|
2576
|
-
var ScrollArea =
|
|
2573
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2574
|
+
var ScrollArea = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
2577
2575
|
ScrollAreaPrimitive.Root,
|
|
2578
2576
|
{
|
|
2579
2577
|
ref,
|
|
2580
2578
|
className: cn("dl-scroll-area", className),
|
|
2581
2579
|
...props,
|
|
2582
2580
|
children: [
|
|
2583
|
-
/* @__PURE__ */ (0,
|
|
2584
|
-
/* @__PURE__ */ (0,
|
|
2585
|
-
/* @__PURE__ */ (0,
|
|
2581
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ScrollAreaPrimitive.Viewport, { className: "dl-scroll-area__viewport", children }),
|
|
2582
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ScrollBar, {}),
|
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
2586
2584
|
]
|
|
2587
2585
|
}
|
|
2588
2586
|
));
|
|
2589
2587
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2590
|
-
var ScrollBar =
|
|
2588
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2591
2589
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2592
2590
|
{
|
|
2593
2591
|
ref,
|
|
2594
2592
|
orientation,
|
|
2595
2593
|
className: cn("dl-scroll-area__bar", className),
|
|
2596
2594
|
...props,
|
|
2597
|
-
children: /* @__PURE__ */ (0,
|
|
2595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "dl-scroll-area__thumb" })
|
|
2598
2596
|
}
|
|
2599
2597
|
));
|
|
2600
2598
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2601
2599
|
|
|
2602
2600
|
// src/components/searchable-select/searchable-select.tsx
|
|
2603
|
-
var
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2601
|
+
var import_lucide_react20 = require("lucide-react");
|
|
2602
|
+
|
|
2603
|
+
// src/components/searchable-select/use-searchable-select.ts
|
|
2604
|
+
var React41 = __toESM(require("react"), 1);
|
|
2605
|
+
function useSearchableSelect({
|
|
2607
2606
|
options,
|
|
2608
2607
|
value,
|
|
2609
2608
|
onChange,
|
|
2610
|
-
|
|
2611
|
-
searchPlaceholder = "Search...",
|
|
2612
|
-
onAddNew,
|
|
2613
|
-
addNewLabel = "Add new",
|
|
2614
|
-
disabled = false,
|
|
2615
|
-
className,
|
|
2616
|
-
id
|
|
2609
|
+
onAddNew
|
|
2617
2610
|
}) {
|
|
2618
|
-
const [open, setOpen] =
|
|
2619
|
-
const [search, setSearch] =
|
|
2620
|
-
const [highlightedIndex, setHighlightedIndex] =
|
|
2621
|
-
const listRef =
|
|
2622
|
-
const selectedOption =
|
|
2611
|
+
const [open, setOpen] = React41.useState(false);
|
|
2612
|
+
const [search, setSearch] = React41.useState("");
|
|
2613
|
+
const [highlightedIndex, setHighlightedIndex] = React41.useState(0);
|
|
2614
|
+
const listRef = React41.useRef(null);
|
|
2615
|
+
const selectedOption = React41.useMemo(() => {
|
|
2623
2616
|
return options.find((opt) => opt.value === value);
|
|
2624
2617
|
}, [options, value]);
|
|
2625
|
-
const filteredOptions =
|
|
2618
|
+
const filteredOptions = React41.useMemo(() => {
|
|
2626
2619
|
if (!search.trim()) return options;
|
|
2627
2620
|
const q = search.toLowerCase();
|
|
2628
2621
|
return options.filter(
|
|
@@ -2642,7 +2635,7 @@ function SearchableSelect({
|
|
|
2642
2635
|
setSearch(q);
|
|
2643
2636
|
setHighlightedIndex(0);
|
|
2644
2637
|
};
|
|
2645
|
-
|
|
2638
|
+
React41.useEffect(() => {
|
|
2646
2639
|
if (open && listRef.current) {
|
|
2647
2640
|
const activeEl = listRef.current.querySelector(
|
|
2648
2641
|
"[data-highlighted='true']"
|
|
@@ -2652,7 +2645,7 @@ function SearchableSelect({
|
|
|
2652
2645
|
}
|
|
2653
2646
|
}
|
|
2654
2647
|
}, [highlightedIndex, open]);
|
|
2655
|
-
const groupedOptions =
|
|
2648
|
+
const groupedOptions = React41.useMemo(() => {
|
|
2656
2649
|
const hasGroups = filteredOptions.some((opt) => opt.group);
|
|
2657
2650
|
if (!hasGroups) return { Default: filteredOptions };
|
|
2658
2651
|
return filteredOptions.reduce(
|
|
@@ -2709,9 +2702,55 @@ function SearchableSelect({
|
|
|
2709
2702
|
break;
|
|
2710
2703
|
}
|
|
2711
2704
|
};
|
|
2705
|
+
return {
|
|
2706
|
+
open,
|
|
2707
|
+
search,
|
|
2708
|
+
highlightedIndex,
|
|
2709
|
+
setHighlightedIndex,
|
|
2710
|
+
listRef,
|
|
2711
|
+
selectedOption,
|
|
2712
|
+
filteredOptions,
|
|
2713
|
+
groupedOptions,
|
|
2714
|
+
handleOpenChange,
|
|
2715
|
+
handleSearchChange,
|
|
2716
|
+
handleSelect,
|
|
2717
|
+
handleAddNew,
|
|
2718
|
+
handleKeyDown
|
|
2719
|
+
};
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
// src/components/searchable-select/searchable-select.tsx
|
|
2723
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2724
|
+
function SearchableSelect({
|
|
2725
|
+
options,
|
|
2726
|
+
value,
|
|
2727
|
+
onChange,
|
|
2728
|
+
placeholder = "Select an option...",
|
|
2729
|
+
searchPlaceholder = "Search...",
|
|
2730
|
+
onAddNew,
|
|
2731
|
+
addNewLabel = "Add new",
|
|
2732
|
+
disabled = false,
|
|
2733
|
+
className,
|
|
2734
|
+
id
|
|
2735
|
+
}) {
|
|
2736
|
+
const {
|
|
2737
|
+
open,
|
|
2738
|
+
search,
|
|
2739
|
+
highlightedIndex,
|
|
2740
|
+
setHighlightedIndex,
|
|
2741
|
+
listRef,
|
|
2742
|
+
selectedOption,
|
|
2743
|
+
filteredOptions,
|
|
2744
|
+
groupedOptions,
|
|
2745
|
+
handleOpenChange,
|
|
2746
|
+
handleSearchChange,
|
|
2747
|
+
handleSelect,
|
|
2748
|
+
handleAddNew,
|
|
2749
|
+
handleKeyDown
|
|
2750
|
+
} = useSearchableSelect({ options, value, onChange, onAddNew });
|
|
2712
2751
|
let currentIndex = 0;
|
|
2713
|
-
return /* @__PURE__ */ (0,
|
|
2714
|
-
/* @__PURE__ */ (0,
|
|
2752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Popover, { open, onOpenChange: handleOpenChange, children: [
|
|
2753
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
2715
2754
|
Button,
|
|
2716
2755
|
{
|
|
2717
2756
|
id,
|
|
@@ -2726,21 +2765,21 @@ function SearchableSelect({
|
|
|
2726
2765
|
className
|
|
2727
2766
|
),
|
|
2728
2767
|
children: [
|
|
2729
|
-
/* @__PURE__ */ (0,
|
|
2730
|
-
/* @__PURE__ */ (0,
|
|
2768
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "dl-searchable-select-truncate", children: selectedOption ? selectedOption.label : placeholder }),
|
|
2769
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react20.ChevronDown, { className: "dl-select-icon" })
|
|
2731
2770
|
]
|
|
2732
2771
|
}
|
|
2733
2772
|
) }),
|
|
2734
|
-
/* @__PURE__ */ (0,
|
|
2773
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
2735
2774
|
PopoverContent,
|
|
2736
2775
|
{
|
|
2737
2776
|
align: "start",
|
|
2738
2777
|
className: "dl-searchable-select-content",
|
|
2739
2778
|
onKeyDown: handleKeyDown,
|
|
2740
2779
|
children: [
|
|
2741
|
-
/* @__PURE__ */ (0,
|
|
2742
|
-
/* @__PURE__ */ (0,
|
|
2743
|
-
/* @__PURE__ */ (0,
|
|
2780
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "dl-searchable-select-search", children: [
|
|
2781
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react20.Search, { className: "dl-searchable-select-search-icon" }),
|
|
2782
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2744
2783
|
Input,
|
|
2745
2784
|
{
|
|
2746
2785
|
placeholder: searchPlaceholder,
|
|
@@ -2751,19 +2790,19 @@ function SearchableSelect({
|
|
|
2751
2790
|
}
|
|
2752
2791
|
)
|
|
2753
2792
|
] }),
|
|
2754
|
-
/* @__PURE__ */ (0,
|
|
2793
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2755
2794
|
"div",
|
|
2756
2795
|
{
|
|
2757
2796
|
ref: listRef,
|
|
2758
2797
|
onWheel: (e) => e.stopPropagation(),
|
|
2759
2798
|
className: "dl-searchable-select-list",
|
|
2760
|
-
children: Object.keys(groupedOptions).length === 0 || filteredOptions.length === 0 && !onAddNew ? /* @__PURE__ */ (0,
|
|
2761
|
-
groupName !== "Default" && /* @__PURE__ */ (0,
|
|
2799
|
+
children: Object.keys(groupedOptions).length === 0 || filteredOptions.length === 0 && !onAddNew ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "dl-searchable-select-empty", children: "No matching options found." }) : Object.entries(groupedOptions).map(([groupName, groupOpts]) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "dl-searchable-select-group", children: [
|
|
2800
|
+
groupName !== "Default" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "dl-searchable-select-group-header", children: groupName }),
|
|
2762
2801
|
groupOpts.map((option) => {
|
|
2763
2802
|
const isSelected = option.value === value;
|
|
2764
2803
|
const itemIndex = currentIndex++;
|
|
2765
2804
|
const isHighlighted = itemIndex === highlightedIndex;
|
|
2766
|
-
return /* @__PURE__ */ (0,
|
|
2805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
2767
2806
|
"div",
|
|
2768
2807
|
{
|
|
2769
2808
|
"data-highlighted": isHighlighted,
|
|
@@ -2775,8 +2814,8 @@ function SearchableSelect({
|
|
|
2775
2814
|
isSelected && !isHighlighted && "dl-searchable-select-item--selected"
|
|
2776
2815
|
),
|
|
2777
2816
|
children: [
|
|
2778
|
-
/* @__PURE__ */ (0,
|
|
2779
|
-
isSelected && /* @__PURE__ */ (0,
|
|
2817
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "dl-searchable-select-item-text", children: option.label }),
|
|
2818
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react20.Check, { className: "dl-select-check" })
|
|
2780
2819
|
]
|
|
2781
2820
|
},
|
|
2782
2821
|
option.value
|
|
@@ -2785,15 +2824,15 @@ function SearchableSelect({
|
|
|
2785
2824
|
] }, groupName))
|
|
2786
2825
|
}
|
|
2787
2826
|
),
|
|
2788
|
-
onAddNew && /* @__PURE__ */ (0,
|
|
2827
|
+
onAddNew && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "dl-searchable-select-add", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
2789
2828
|
"button",
|
|
2790
2829
|
{
|
|
2791
2830
|
type: "button",
|
|
2792
2831
|
onClick: handleAddNew,
|
|
2793
2832
|
className: "dl-searchable-select-add-btn",
|
|
2794
2833
|
children: [
|
|
2795
|
-
/* @__PURE__ */ (0,
|
|
2796
|
-
/* @__PURE__ */ (0,
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react20.Plus, { className: "dl-searchable-select-add-icon" }),
|
|
2835
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "dl-searchable-select-truncate", children: search.trim() ? `${addNewLabel} "${search.trim()}"` : addNewLabel })
|
|
2797
2836
|
]
|
|
2798
2837
|
}
|
|
2799
2838
|
) })
|
|
@@ -2804,14 +2843,14 @@ function SearchableSelect({
|
|
|
2804
2843
|
}
|
|
2805
2844
|
|
|
2806
2845
|
// src/components/select/select.tsx
|
|
2807
|
-
var
|
|
2846
|
+
var React42 = __toESM(require("react"), 1);
|
|
2808
2847
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2809
|
-
var
|
|
2810
|
-
var
|
|
2848
|
+
var import_lucide_react21 = require("lucide-react");
|
|
2849
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2811
2850
|
var Select = SelectPrimitive.Root;
|
|
2812
2851
|
var SelectGroup = SelectPrimitive.Group;
|
|
2813
2852
|
var SelectValue = SelectPrimitive.Value;
|
|
2814
|
-
var SelectTrigger =
|
|
2853
|
+
var SelectTrigger = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2815
2854
|
SelectPrimitive.Trigger,
|
|
2816
2855
|
{
|
|
2817
2856
|
ref,
|
|
@@ -2819,32 +2858,32 @@ var SelectTrigger = React34.forwardRef(({ className, children, ...props }, ref)
|
|
|
2819
2858
|
...props,
|
|
2820
2859
|
children: [
|
|
2821
2860
|
children,
|
|
2822
|
-
/* @__PURE__ */ (0,
|
|
2861
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react21.ChevronDown, {}) })
|
|
2823
2862
|
]
|
|
2824
2863
|
}
|
|
2825
2864
|
));
|
|
2826
2865
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2827
|
-
var SelectScrollUpButton =
|
|
2866
|
+
var SelectScrollUpButton = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2828
2867
|
SelectPrimitive.ScrollUpButton,
|
|
2829
2868
|
{
|
|
2830
2869
|
ref,
|
|
2831
2870
|
className: cn("dl-select-scroll-btn", className),
|
|
2832
2871
|
...props,
|
|
2833
|
-
children: /* @__PURE__ */ (0,
|
|
2872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react21.ChevronUp, {})
|
|
2834
2873
|
}
|
|
2835
2874
|
));
|
|
2836
2875
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2837
|
-
var SelectScrollDownButton =
|
|
2876
|
+
var SelectScrollDownButton = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2838
2877
|
SelectPrimitive.ScrollDownButton,
|
|
2839
2878
|
{
|
|
2840
2879
|
ref,
|
|
2841
2880
|
className: cn("dl-select-scroll-btn", className),
|
|
2842
2881
|
...props,
|
|
2843
|
-
children: /* @__PURE__ */ (0,
|
|
2882
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react21.ChevronDown, {})
|
|
2844
2883
|
}
|
|
2845
2884
|
));
|
|
2846
2885
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2847
|
-
var SelectContent =
|
|
2886
|
+
var SelectContent = React42.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2848
2887
|
SelectPrimitive.Content,
|
|
2849
2888
|
{
|
|
2850
2889
|
ref,
|
|
@@ -2852,14 +2891,14 @@ var SelectContent = React34.forwardRef(({ className, children, position = "poppe
|
|
|
2852
2891
|
position,
|
|
2853
2892
|
...props,
|
|
2854
2893
|
children: [
|
|
2855
|
-
/* @__PURE__ */ (0,
|
|
2856
|
-
/* @__PURE__ */ (0,
|
|
2857
|
-
/* @__PURE__ */ (0,
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectScrollUpButton, {}),
|
|
2895
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Viewport, { className: "dl-select-viewport", children }),
|
|
2896
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectScrollDownButton, {})
|
|
2858
2897
|
]
|
|
2859
2898
|
}
|
|
2860
2899
|
) }));
|
|
2861
2900
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2862
|
-
var SelectLabel =
|
|
2901
|
+
var SelectLabel = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2863
2902
|
SelectPrimitive.Label,
|
|
2864
2903
|
{
|
|
2865
2904
|
ref,
|
|
@@ -2868,20 +2907,20 @@ var SelectLabel = React34.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2868
2907
|
}
|
|
2869
2908
|
));
|
|
2870
2909
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2871
|
-
var SelectItem =
|
|
2910
|
+
var SelectItem = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2872
2911
|
SelectPrimitive.Item,
|
|
2873
2912
|
{
|
|
2874
2913
|
ref,
|
|
2875
2914
|
className: cn("dl-select-item", className),
|
|
2876
2915
|
...props,
|
|
2877
2916
|
children: [
|
|
2878
|
-
/* @__PURE__ */ (0,
|
|
2879
|
-
/* @__PURE__ */ (0,
|
|
2917
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "dl-select-item__indicator", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react21.Check, {}) }) }),
|
|
2918
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ItemText, { children })
|
|
2880
2919
|
]
|
|
2881
2920
|
}
|
|
2882
2921
|
));
|
|
2883
2922
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2884
|
-
var SelectSeparator =
|
|
2923
|
+
var SelectSeparator = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2885
2924
|
SelectPrimitive.Separator,
|
|
2886
2925
|
{
|
|
2887
2926
|
ref,
|
|
@@ -2892,11 +2931,11 @@ var SelectSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2892
2931
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2893
2932
|
|
|
2894
2933
|
// src/components/separator/separator.tsx
|
|
2895
|
-
var
|
|
2934
|
+
var React43 = __toESM(require("react"), 1);
|
|
2896
2935
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
2897
|
-
var
|
|
2898
|
-
var Separator6 =
|
|
2899
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2936
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2937
|
+
var Separator6 = React43.forwardRef(
|
|
2938
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2900
2939
|
SeparatorPrimitive.Root,
|
|
2901
2940
|
{
|
|
2902
2941
|
ref,
|
|
@@ -2910,16 +2949,16 @@ var Separator6 = React35.forwardRef(
|
|
|
2910
2949
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
2911
2950
|
|
|
2912
2951
|
// src/components/sheet/sheet.tsx
|
|
2913
|
-
var
|
|
2952
|
+
var React44 = __toESM(require("react"), 1);
|
|
2914
2953
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2915
2954
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
2916
|
-
var
|
|
2917
|
-
var
|
|
2955
|
+
var import_lucide_react22 = require("lucide-react");
|
|
2956
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2918
2957
|
var Sheet = SheetPrimitive.Root;
|
|
2919
2958
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2920
2959
|
var SheetClose = SheetPrimitive.Close;
|
|
2921
2960
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2922
|
-
var SheetOverlay =
|
|
2961
|
+
var SheetOverlay = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2923
2962
|
SheetPrimitive.Overlay,
|
|
2924
2963
|
{
|
|
2925
2964
|
className: cn("dl-dialog-overlay", className),
|
|
@@ -2941,9 +2980,9 @@ var sheetVariants = (0, import_class_variance_authority6.cva)("dl-sheet-content"
|
|
|
2941
2980
|
side: "right"
|
|
2942
2981
|
}
|
|
2943
2982
|
});
|
|
2944
|
-
var SheetContent =
|
|
2945
|
-
/* @__PURE__ */ (0,
|
|
2946
|
-
/* @__PURE__ */ (0,
|
|
2983
|
+
var SheetContent = React44.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPortal, { children: [
|
|
2984
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetOverlay, {}),
|
|
2985
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
2947
2986
|
SheetPrimitive.Content,
|
|
2948
2987
|
{
|
|
2949
2988
|
ref,
|
|
@@ -2951,9 +2990,9 @@ var SheetContent = React36.forwardRef(({ side = "right", className, children, ..
|
|
|
2951
2990
|
"data-side": side,
|
|
2952
2991
|
...props,
|
|
2953
2992
|
children: [
|
|
2954
|
-
/* @__PURE__ */ (0,
|
|
2955
|
-
/* @__PURE__ */ (0,
|
|
2956
|
-
/* @__PURE__ */ (0,
|
|
2993
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPrimitive.Close, { className: "dl-sheet-close", children: [
|
|
2994
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react22.X, {}),
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2957
2996
|
] }),
|
|
2958
2997
|
children
|
|
2959
2998
|
]
|
|
@@ -2964,14 +3003,14 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
2964
3003
|
var SheetHeader = ({
|
|
2965
3004
|
className,
|
|
2966
3005
|
...props
|
|
2967
|
-
}) => /* @__PURE__ */ (0,
|
|
3006
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("dl-sheet__header", className), ...props });
|
|
2968
3007
|
SheetHeader.displayName = "SheetHeader";
|
|
2969
3008
|
var SheetFooter = ({
|
|
2970
3009
|
className,
|
|
2971
3010
|
...props
|
|
2972
|
-
}) => /* @__PURE__ */ (0,
|
|
3011
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("dl-sheet__footer", className), ...props });
|
|
2973
3012
|
SheetFooter.displayName = "SheetFooter";
|
|
2974
|
-
var SheetTitle =
|
|
3013
|
+
var SheetTitle = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2975
3014
|
SheetPrimitive.Title,
|
|
2976
3015
|
{
|
|
2977
3016
|
ref,
|
|
@@ -2980,7 +3019,7 @@ var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2980
3019
|
}
|
|
2981
3020
|
));
|
|
2982
3021
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2983
|
-
var SheetDescription =
|
|
3022
|
+
var SheetDescription = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2984
3023
|
SheetPrimitive.Description,
|
|
2985
3024
|
{
|
|
2986
3025
|
ref,
|
|
@@ -2990,20 +3029,17 @@ var SheetDescription = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2990
3029
|
));
|
|
2991
3030
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2992
3031
|
|
|
2993
|
-
// src/components/sidebar/sidebar.tsx
|
|
2994
|
-
var
|
|
2995
|
-
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2996
|
-
var import_class_variance_authority7 = require("class-variance-authority");
|
|
2997
|
-
var import_lucide_react20 = require("lucide-react");
|
|
3032
|
+
// src/components/sidebar/sidebar-context.tsx
|
|
3033
|
+
var React46 = __toESM(require("react"), 1);
|
|
2998
3034
|
|
|
2999
3035
|
// src/components/tooltip/tooltip.tsx
|
|
3000
|
-
var
|
|
3036
|
+
var React45 = __toESM(require("react"), 1);
|
|
3001
3037
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
3002
|
-
var
|
|
3038
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3003
3039
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3004
3040
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3005
3041
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3006
|
-
var TooltipContent =
|
|
3042
|
+
var TooltipContent = React45.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3007
3043
|
TooltipPrimitive.Content,
|
|
3008
3044
|
{
|
|
3009
3045
|
ref,
|
|
@@ -3014,23 +3050,25 @@ var TooltipContent = React37.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
3014
3050
|
) }));
|
|
3015
3051
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3016
3052
|
|
|
3017
|
-
// src/components/sidebar/sidebar.tsx
|
|
3018
|
-
var
|
|
3053
|
+
// src/components/sidebar/sidebar-context.tsx
|
|
3054
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3019
3055
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3020
3056
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3021
3057
|
var SIDEBAR_WIDTH = "16rem";
|
|
3022
3058
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3023
3059
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3024
3060
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3025
|
-
var SidebarContext =
|
|
3061
|
+
var SidebarContext = React46.createContext(
|
|
3062
|
+
null
|
|
3063
|
+
);
|
|
3026
3064
|
function useSidebar() {
|
|
3027
|
-
const context =
|
|
3065
|
+
const context = React46.useContext(SidebarContext);
|
|
3028
3066
|
if (!context) {
|
|
3029
3067
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3030
3068
|
}
|
|
3031
3069
|
return context;
|
|
3032
3070
|
}
|
|
3033
|
-
var SidebarProvider =
|
|
3071
|
+
var SidebarProvider = React46.forwardRef(
|
|
3034
3072
|
({
|
|
3035
3073
|
defaultOpen = true,
|
|
3036
3074
|
open: openProp,
|
|
@@ -3041,10 +3079,10 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3041
3079
|
...props
|
|
3042
3080
|
}, ref) => {
|
|
3043
3081
|
const isMobile = useIsMobile();
|
|
3044
|
-
const [openMobile, setOpenMobile] =
|
|
3045
|
-
const [_open, _setOpen] =
|
|
3082
|
+
const [openMobile, setOpenMobile] = React46.useState(false);
|
|
3083
|
+
const [_open, _setOpen] = React46.useState(defaultOpen);
|
|
3046
3084
|
const open = openProp ?? _open;
|
|
3047
|
-
const setOpen =
|
|
3085
|
+
const setOpen = React46.useCallback(
|
|
3048
3086
|
(value) => {
|
|
3049
3087
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3050
3088
|
if (setOpenProp) {
|
|
@@ -3056,10 +3094,10 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3056
3094
|
},
|
|
3057
3095
|
[setOpenProp, open]
|
|
3058
3096
|
);
|
|
3059
|
-
const toggleSidebar =
|
|
3060
|
-
return isMobile ? setOpenMobile((
|
|
3097
|
+
const toggleSidebar = React46.useCallback(() => {
|
|
3098
|
+
return isMobile ? setOpenMobile((prev) => !prev) : setOpen((prev) => !prev);
|
|
3061
3099
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3062
|
-
|
|
3100
|
+
React46.useEffect(() => {
|
|
3063
3101
|
const handleKeyDown = (event) => {
|
|
3064
3102
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3065
3103
|
event.preventDefault();
|
|
@@ -3070,7 +3108,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3070
3108
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3071
3109
|
}, [toggleSidebar]);
|
|
3072
3110
|
const state = open ? "expanded" : "collapsed";
|
|
3073
|
-
const contextValue =
|
|
3111
|
+
const contextValue = React46.useMemo(
|
|
3074
3112
|
() => ({
|
|
3075
3113
|
state,
|
|
3076
3114
|
open,
|
|
@@ -3090,7 +3128,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3090
3128
|
toggleSidebar
|
|
3091
3129
|
]
|
|
3092
3130
|
);
|
|
3093
|
-
return /* @__PURE__ */ (0,
|
|
3131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3094
3132
|
"div",
|
|
3095
3133
|
{
|
|
3096
3134
|
style: {
|
|
@@ -3098,10 +3136,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3098
3136
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
3099
3137
|
...style
|
|
3100
3138
|
},
|
|
3101
|
-
className: cn(
|
|
3102
|
-
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
3103
|
-
className
|
|
3104
|
-
),
|
|
3139
|
+
className: cn("dl-sidebar-wrapper", className),
|
|
3105
3140
|
ref,
|
|
3106
3141
|
...props,
|
|
3107
3142
|
children
|
|
@@ -3110,7 +3145,11 @@ var SidebarProvider = React38.forwardRef(
|
|
|
3110
3145
|
}
|
|
3111
3146
|
);
|
|
3112
3147
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3113
|
-
|
|
3148
|
+
|
|
3149
|
+
// src/components/sidebar/sidebar-layout.tsx
|
|
3150
|
+
var React47 = __toESM(require("react"), 1);
|
|
3151
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3152
|
+
var Sidebar = React47.forwardRef(
|
|
3114
3153
|
({
|
|
3115
3154
|
side = "left",
|
|
3116
3155
|
variant = "sidebar",
|
|
@@ -3121,13 +3160,10 @@ var Sidebar = React38.forwardRef(
|
|
|
3121
3160
|
}, ref) => {
|
|
3122
3161
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3123
3162
|
if (collapsible === "none") {
|
|
3124
|
-
return /* @__PURE__ */ (0,
|
|
3163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3125
3164
|
"div",
|
|
3126
3165
|
{
|
|
3127
|
-
className: cn(
|
|
3128
|
-
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
3129
|
-
className
|
|
3130
|
-
),
|
|
3166
|
+
className: cn("dl-sidebar dl-sidebar--static", className),
|
|
3131
3167
|
ref,
|
|
3132
3168
|
...props,
|
|
3133
3169
|
children
|
|
@@ -3135,315 +3171,196 @@ var Sidebar = React38.forwardRef(
|
|
|
3135
3171
|
);
|
|
3136
3172
|
}
|
|
3137
3173
|
if (isMobile) {
|
|
3138
|
-
return /* @__PURE__ */ (0,
|
|
3174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3139
3175
|
SheetContent,
|
|
3140
3176
|
{
|
|
3141
3177
|
"data-sidebar": "sidebar",
|
|
3142
3178
|
"data-mobile": "true",
|
|
3143
|
-
className: "
|
|
3179
|
+
className: "dl-sidebar-mobile [&>button]:hidden",
|
|
3144
3180
|
style: {
|
|
3145
3181
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
3146
3182
|
},
|
|
3147
3183
|
side,
|
|
3148
3184
|
children: [
|
|
3149
|
-
/* @__PURE__ */ (0,
|
|
3150
|
-
/* @__PURE__ */ (0,
|
|
3151
|
-
/* @__PURE__ */ (0,
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
3186
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
3187
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3152
3188
|
] }),
|
|
3153
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "dl-sidebar-mobile-content", children })
|
|
3154
3190
|
]
|
|
3155
3191
|
}
|
|
3156
3192
|
) });
|
|
3157
3193
|
}
|
|
3158
|
-
return /* @__PURE__ */ (0,
|
|
3194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3159
3195
|
"div",
|
|
3160
3196
|
{
|
|
3161
3197
|
ref,
|
|
3162
|
-
className: "
|
|
3198
|
+
className: cn("dl-sidebar", className),
|
|
3163
3199
|
"data-state": state,
|
|
3164
3200
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
3165
3201
|
"data-variant": variant,
|
|
3166
3202
|
"data-side": side,
|
|
3167
3203
|
children: [
|
|
3168
|
-
/* @__PURE__ */ (0,
|
|
3169
|
-
|
|
3170
|
-
{
|
|
3171
|
-
className: cn(
|
|
3172
|
-
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
3173
|
-
"group-data-[collapsible=offcanvas]:w-0",
|
|
3174
|
-
"group-data-[side=right]:rotate-180",
|
|
3175
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
3176
|
-
)
|
|
3177
|
-
}
|
|
3178
|
-
),
|
|
3179
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3180
|
-
"div",
|
|
3181
|
-
{
|
|
3182
|
-
className: cn(
|
|
3183
|
-
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3184
|
-
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:-left-(--sidebar-width)" : "right-0 group-data-[collapsible=offcanvas]:-right-(--sidebar-width)",
|
|
3185
|
-
// Adjust the padding for floating and inset variants.
|
|
3186
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
3187
|
-
className
|
|
3188
|
-
),
|
|
3189
|
-
...props,
|
|
3190
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3191
|
-
"div",
|
|
3192
|
-
{
|
|
3193
|
-
"data-sidebar": "sidebar",
|
|
3194
|
-
className: "flex flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow size-full",
|
|
3195
|
-
children
|
|
3196
|
-
}
|
|
3197
|
-
)
|
|
3198
|
-
}
|
|
3199
|
-
)
|
|
3204
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "dl-sidebar-desktop-spacer" }),
|
|
3205
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "dl-sidebar-fixed", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { "data-sidebar": "sidebar", className: "dl-sidebar-inner", children }) })
|
|
3200
3206
|
]
|
|
3201
3207
|
}
|
|
3202
3208
|
);
|
|
3203
3209
|
}
|
|
3204
3210
|
);
|
|
3205
3211
|
Sidebar.displayName = "Sidebar";
|
|
3206
|
-
var
|
|
3212
|
+
var SidebarRail = React47.forwardRef(({ className, ...props }, ref) => {
|
|
3207
3213
|
const { toggleSidebar } = useSidebar();
|
|
3208
|
-
return /* @__PURE__ */ (0,
|
|
3209
|
-
|
|
3214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3215
|
+
"button",
|
|
3210
3216
|
{
|
|
3211
3217
|
ref,
|
|
3212
|
-
"data-sidebar": "
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
},
|
|
3220
|
-
...props,
|
|
3221
|
-
children: [
|
|
3222
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react20.PanelLeft, {}),
|
|
3223
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3224
|
-
]
|
|
3218
|
+
"data-sidebar": "rail",
|
|
3219
|
+
"aria-label": "Toggle Sidebar",
|
|
3220
|
+
tabIndex: -1,
|
|
3221
|
+
onClick: toggleSidebar,
|
|
3222
|
+
title: "Toggle Sidebar",
|
|
3223
|
+
className: cn("dl-sidebar-rail", className),
|
|
3224
|
+
...props
|
|
3225
3225
|
}
|
|
3226
3226
|
);
|
|
3227
3227
|
});
|
|
3228
|
-
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3229
|
-
var SidebarRail = React38.forwardRef(
|
|
3230
|
-
({ className, ...props }, ref) => {
|
|
3231
|
-
const { toggleSidebar } = useSidebar();
|
|
3232
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3233
|
-
"button",
|
|
3234
|
-
{
|
|
3235
|
-
ref,
|
|
3236
|
-
"data-sidebar": "rail",
|
|
3237
|
-
"aria-label": "Toggle Sidebar",
|
|
3238
|
-
tabIndex: -1,
|
|
3239
|
-
onClick: toggleSidebar,
|
|
3240
|
-
title: "Toggle Sidebar",
|
|
3241
|
-
className: cn(
|
|
3242
|
-
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
3243
|
-
"in-data-[side=right]:cursor-e-resize",
|
|
3244
|
-
"[[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
3245
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
3246
|
-
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
3247
|
-
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
3248
|
-
className
|
|
3249
|
-
),
|
|
3250
|
-
...props
|
|
3251
|
-
}
|
|
3252
|
-
);
|
|
3253
|
-
}
|
|
3254
|
-
);
|
|
3255
3228
|
SidebarRail.displayName = "SidebarRail";
|
|
3256
|
-
var SidebarInset =
|
|
3257
|
-
({ className, ...props }, ref) => {
|
|
3258
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3259
|
-
"main",
|
|
3260
|
-
{
|
|
3261
|
-
ref,
|
|
3262
|
-
className: cn(
|
|
3263
|
-
"relative flex w-full flex-1 flex-col bg-background",
|
|
3264
|
-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
3265
|
-
className
|
|
3266
|
-
),
|
|
3267
|
-
...props
|
|
3268
|
-
}
|
|
3269
|
-
);
|
|
3270
|
-
}
|
|
3229
|
+
var SidebarInset = React47.forwardRef(
|
|
3230
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("main", { ref, className: cn("dl-sidebar-inset", className), ...props })
|
|
3271
3231
|
);
|
|
3272
3232
|
SidebarInset.displayName = "SidebarInset";
|
|
3273
|
-
var
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
...props
|
|
3281
|
-
}
|
|
3282
|
-
);
|
|
3283
|
-
});
|
|
3284
|
-
SidebarInput.displayName = "SidebarInput";
|
|
3285
|
-
var SidebarHeader = React38.forwardRef(
|
|
3286
|
-
({ className, ...props }, ref) => {
|
|
3287
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3288
|
-
"div",
|
|
3289
|
-
{
|
|
3290
|
-
ref,
|
|
3291
|
-
"data-sidebar": "header",
|
|
3292
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
3293
|
-
...props
|
|
3294
|
-
}
|
|
3295
|
-
);
|
|
3233
|
+
var SidebarHeader = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3234
|
+
"div",
|
|
3235
|
+
{
|
|
3236
|
+
ref,
|
|
3237
|
+
"data-sidebar": "header",
|
|
3238
|
+
className: cn("dl-sidebar-header", className),
|
|
3239
|
+
...props
|
|
3296
3240
|
}
|
|
3297
|
-
);
|
|
3241
|
+
));
|
|
3298
3242
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3299
|
-
var SidebarFooter =
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
3307
|
-
...props
|
|
3308
|
-
}
|
|
3309
|
-
);
|
|
3243
|
+
var SidebarFooter = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3244
|
+
"div",
|
|
3245
|
+
{
|
|
3246
|
+
ref,
|
|
3247
|
+
"data-sidebar": "footer",
|
|
3248
|
+
className: cn("dl-sidebar-footer", className),
|
|
3249
|
+
...props
|
|
3310
3250
|
}
|
|
3311
|
-
);
|
|
3251
|
+
));
|
|
3312
3252
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3313
|
-
var
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
...props
|
|
3321
|
-
}
|
|
3322
|
-
);
|
|
3323
|
-
});
|
|
3324
|
-
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3325
|
-
var SidebarContent = React38.forwardRef(
|
|
3326
|
-
({ className, ...props }, ref) => {
|
|
3327
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3328
|
-
"div",
|
|
3329
|
-
{
|
|
3330
|
-
ref,
|
|
3331
|
-
"data-sidebar": "content",
|
|
3332
|
-
className: cn(
|
|
3333
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto",
|
|
3334
|
-
className
|
|
3335
|
-
),
|
|
3336
|
-
...props
|
|
3337
|
-
}
|
|
3338
|
-
);
|
|
3253
|
+
var SidebarContent = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3254
|
+
"div",
|
|
3255
|
+
{
|
|
3256
|
+
ref,
|
|
3257
|
+
"data-sidebar": "content",
|
|
3258
|
+
className: cn("dl-sidebar-content", className),
|
|
3259
|
+
...props
|
|
3339
3260
|
}
|
|
3340
|
-
);
|
|
3261
|
+
));
|
|
3341
3262
|
SidebarContent.displayName = "SidebarContent";
|
|
3342
|
-
|
|
3263
|
+
|
|
3264
|
+
// src/components/sidebar/sidebar-group.tsx
|
|
3265
|
+
var React48 = __toESM(require("react"), 1);
|
|
3266
|
+
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
3267
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3268
|
+
var SidebarGroup = React48.forwardRef(
|
|
3343
3269
|
({ className, ...props }, ref) => {
|
|
3344
|
-
return /* @__PURE__ */ (0,
|
|
3270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3345
3271
|
"div",
|
|
3346
3272
|
{
|
|
3347
3273
|
ref,
|
|
3348
3274
|
"data-sidebar": "group",
|
|
3349
|
-
className: cn("
|
|
3275
|
+
className: cn("dl-sidebar-group", className),
|
|
3350
3276
|
...props
|
|
3351
3277
|
}
|
|
3352
3278
|
);
|
|
3353
3279
|
}
|
|
3354
3280
|
);
|
|
3355
3281
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3356
|
-
var SidebarGroupLabel =
|
|
3282
|
+
var SidebarGroupLabel = React48.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3357
3283
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
3358
|
-
return /* @__PURE__ */ (0,
|
|
3284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3359
3285
|
Comp,
|
|
3360
3286
|
{
|
|
3361
3287
|
ref,
|
|
3362
3288
|
"data-sidebar": "group-label",
|
|
3363
|
-
className: cn(
|
|
3364
|
-
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4",
|
|
3365
|
-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3366
|
-
className
|
|
3367
|
-
),
|
|
3289
|
+
className: cn("dl-sidebar-group-label", className),
|
|
3368
3290
|
...props
|
|
3369
3291
|
}
|
|
3370
3292
|
);
|
|
3371
3293
|
});
|
|
3372
3294
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3373
|
-
var SidebarGroupAction =
|
|
3295
|
+
var SidebarGroupAction = React48.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3374
3296
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
3375
|
-
return /* @__PURE__ */ (0,
|
|
3297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3376
3298
|
Comp,
|
|
3377
3299
|
{
|
|
3378
3300
|
ref,
|
|
3379
3301
|
"data-sidebar": "group-action",
|
|
3380
|
-
className: cn(
|
|
3381
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring cursor-pointer transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3382
|
-
// Increases the hit area of the button on mobile.
|
|
3383
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
3384
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3385
|
-
className
|
|
3386
|
-
),
|
|
3302
|
+
className: cn("dl-sidebar-group-action", className),
|
|
3387
3303
|
...props
|
|
3388
3304
|
}
|
|
3389
3305
|
);
|
|
3390
3306
|
});
|
|
3391
3307
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3392
|
-
var SidebarGroupContent =
|
|
3308
|
+
var SidebarGroupContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3393
3309
|
"div",
|
|
3394
3310
|
{
|
|
3395
3311
|
ref,
|
|
3396
3312
|
"data-sidebar": "group-content",
|
|
3397
|
-
className: cn("
|
|
3313
|
+
className: cn("dl-sidebar-group-content", className),
|
|
3398
3314
|
...props
|
|
3399
3315
|
}
|
|
3400
3316
|
));
|
|
3401
3317
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3402
|
-
|
|
3403
|
-
|
|
3318
|
+
|
|
3319
|
+
// src/components/sidebar/sidebar-menu.tsx
|
|
3320
|
+
var React49 = __toESM(require("react"), 1);
|
|
3321
|
+
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
3322
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3323
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3324
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)("dl-sidebar-menu-button", {
|
|
3325
|
+
variants: {
|
|
3326
|
+
variant: {
|
|
3327
|
+
default: "dl-sidebar-menu-button--default",
|
|
3328
|
+
outline: "dl-sidebar-menu-button--outline"
|
|
3329
|
+
},
|
|
3330
|
+
size: {
|
|
3331
|
+
default: "dl-sidebar-menu-button--md",
|
|
3332
|
+
sm: "dl-sidebar-menu-button--sm",
|
|
3333
|
+
lg: "dl-sidebar-menu-button--lg"
|
|
3334
|
+
}
|
|
3335
|
+
},
|
|
3336
|
+
defaultVariants: {
|
|
3337
|
+
variant: "default",
|
|
3338
|
+
size: "default"
|
|
3339
|
+
}
|
|
3340
|
+
});
|
|
3341
|
+
var SidebarMenu = React49.forwardRef(
|
|
3342
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3404
3343
|
"ul",
|
|
3405
3344
|
{
|
|
3406
3345
|
ref,
|
|
3407
3346
|
"data-sidebar": "menu",
|
|
3408
|
-
className: cn("
|
|
3347
|
+
className: cn("dl-sidebar-menu", className),
|
|
3409
3348
|
...props
|
|
3410
3349
|
}
|
|
3411
3350
|
)
|
|
3412
3351
|
);
|
|
3413
3352
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3414
|
-
var SidebarMenuItem =
|
|
3415
|
-
|
|
3416
|
-
"li",
|
|
3417
|
-
{
|
|
3418
|
-
ref,
|
|
3419
|
-
"data-sidebar": "menu-item",
|
|
3420
|
-
className: cn("group/menu-item relative", className),
|
|
3421
|
-
...props
|
|
3422
|
-
}
|
|
3423
|
-
)
|
|
3424
|
-
);
|
|
3425
|
-
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3426
|
-
var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
3427
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring cursor-pointer transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3353
|
+
var SidebarMenuItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3354
|
+
"li",
|
|
3428
3355
|
{
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
},
|
|
3434
|
-
size: {
|
|
3435
|
-
default: "h-8 text-sm",
|
|
3436
|
-
sm: "h-7 text-xs",
|
|
3437
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
3438
|
-
}
|
|
3439
|
-
},
|
|
3440
|
-
defaultVariants: {
|
|
3441
|
-
variant: "default",
|
|
3442
|
-
size: "default"
|
|
3443
|
-
}
|
|
3356
|
+
ref,
|
|
3357
|
+
"data-sidebar": "menu-item",
|
|
3358
|
+
className: cn("dl-sidebar-menu-item", className),
|
|
3359
|
+
...props
|
|
3444
3360
|
}
|
|
3445
|
-
);
|
|
3446
|
-
|
|
3361
|
+
));
|
|
3362
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3363
|
+
var SidebarMenuButton = React49.forwardRef(
|
|
3447
3364
|
({
|
|
3448
3365
|
asChild = false,
|
|
3449
3366
|
isActive = false,
|
|
@@ -3453,14 +3370,15 @@ var SidebarMenuButton = React38.forwardRef(
|
|
|
3453
3370
|
className,
|
|
3454
3371
|
...props
|
|
3455
3372
|
}, ref) => {
|
|
3456
|
-
const Comp = asChild ?
|
|
3373
|
+
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
3457
3374
|
const { isMobile, state } = useSidebar();
|
|
3458
|
-
const button = /* @__PURE__ */ (0,
|
|
3375
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3459
3376
|
Comp,
|
|
3460
3377
|
{
|
|
3461
3378
|
ref,
|
|
3462
3379
|
"data-sidebar": "menu-button",
|
|
3463
3380
|
"data-size": size,
|
|
3381
|
+
"data-variant": variant,
|
|
3464
3382
|
"data-active": isActive,
|
|
3465
3383
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
3466
3384
|
...props
|
|
@@ -3469,42 +3387,33 @@ var SidebarMenuButton = React38.forwardRef(
|
|
|
3469
3387
|
if (!tooltip) {
|
|
3470
3388
|
return button;
|
|
3471
3389
|
}
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
}
|
|
3477
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Tooltip2, { children: [
|
|
3478
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
3479
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3390
|
+
const tooltipProps = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
3391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Tooltip2, { children: [
|
|
3392
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
3393
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3480
3394
|
TooltipContent,
|
|
3481
3395
|
{
|
|
3482
3396
|
side: "right",
|
|
3483
3397
|
align: "center",
|
|
3484
3398
|
hidden: state !== "collapsed" || isMobile,
|
|
3485
|
-
...
|
|
3399
|
+
...tooltipProps
|
|
3486
3400
|
}
|
|
3487
3401
|
)
|
|
3488
3402
|
] });
|
|
3489
3403
|
}
|
|
3490
3404
|
);
|
|
3491
3405
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3492
|
-
var SidebarMenuAction =
|
|
3493
|
-
const Comp = asChild ?
|
|
3494
|
-
return /* @__PURE__ */ (0,
|
|
3406
|
+
var SidebarMenuAction = React49.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3407
|
+
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
3408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3495
3409
|
Comp,
|
|
3496
3410
|
{
|
|
3497
3411
|
ref,
|
|
3498
3412
|
"data-sidebar": "menu-action",
|
|
3413
|
+
"data-show-on-hover": showOnHover ? "true" : void 0,
|
|
3499
3414
|
className: cn(
|
|
3500
|
-
"
|
|
3501
|
-
|
|
3502
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
3503
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
3504
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3505
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3506
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3507
|
-
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
|
|
3415
|
+
"dl-sidebar-menu-action",
|
|
3416
|
+
showOnHover && "dl-sidebar-menu-action--hover-only",
|
|
3508
3417
|
className
|
|
3509
3418
|
),
|
|
3510
3419
|
...props
|
|
@@ -3512,51 +3421,46 @@ var SidebarMenuAction = React38.forwardRef(({ className, asChild = false, showOn
|
|
|
3512
3421
|
);
|
|
3513
3422
|
});
|
|
3514
3423
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3515
|
-
var SidebarMenuBadge =
|
|
3424
|
+
var SidebarMenuBadge = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3516
3425
|
"div",
|
|
3517
3426
|
{
|
|
3518
3427
|
ref,
|
|
3519
3428
|
"data-sidebar": "menu-badge",
|
|
3520
|
-
className: cn(
|
|
3521
|
-
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
|
|
3522
|
-
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3523
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
3524
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3525
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3526
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3527
|
-
className
|
|
3528
|
-
),
|
|
3429
|
+
className: cn("dl-sidebar-menu-badge", className),
|
|
3529
3430
|
...props
|
|
3530
3431
|
}
|
|
3531
3432
|
));
|
|
3532
3433
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3533
|
-
|
|
3534
|
-
|
|
3434
|
+
|
|
3435
|
+
// src/components/sidebar/sidebar-submenu.tsx
|
|
3436
|
+
var React50 = __toESM(require("react"), 1);
|
|
3437
|
+
var import_react_slot6 = require("@radix-ui/react-slot");
|
|
3438
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3439
|
+
var SidebarMenuSkeleton = React50.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3440
|
+
const width = React50.useMemo(() => {
|
|
3535
3441
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3536
3442
|
}, []);
|
|
3537
|
-
return /* @__PURE__ */ (0,
|
|
3443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3538
3444
|
"div",
|
|
3539
3445
|
{
|
|
3540
3446
|
ref,
|
|
3541
3447
|
"data-sidebar": "menu-skeleton",
|
|
3542
|
-
className: cn("
|
|
3448
|
+
className: cn("dl-sidebar-menu-skeleton", className),
|
|
3543
3449
|
...props,
|
|
3544
3450
|
children: [
|
|
3545
|
-
showIcon && /* @__PURE__ */ (0,
|
|
3451
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3546
3452
|
Skeleton,
|
|
3547
3453
|
{
|
|
3548
|
-
className: "
|
|
3454
|
+
className: "dl-sidebar-menu-skeleton-icon",
|
|
3549
3455
|
"data-sidebar": "menu-skeleton-icon"
|
|
3550
3456
|
}
|
|
3551
3457
|
),
|
|
3552
|
-
/* @__PURE__ */ (0,
|
|
3458
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3553
3459
|
Skeleton,
|
|
3554
3460
|
{
|
|
3555
|
-
className: "
|
|
3461
|
+
className: "dl-sidebar-menu-skeleton-text",
|
|
3556
3462
|
"data-sidebar": "menu-skeleton-text",
|
|
3557
|
-
style: {
|
|
3558
|
-
"--skeleton-width": width
|
|
3559
|
-
}
|
|
3463
|
+
style: { "--skeleton-width": width }
|
|
3560
3464
|
}
|
|
3561
3465
|
)
|
|
3562
3466
|
]
|
|
@@ -3564,27 +3468,21 @@ var SidebarMenuSkeleton = React38.forwardRef(({ className, showIcon = false, ...
|
|
|
3564
3468
|
);
|
|
3565
3469
|
});
|
|
3566
3470
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3567
|
-
var SidebarMenuSub =
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
className
|
|
3577
|
-
),
|
|
3578
|
-
...props
|
|
3579
|
-
}
|
|
3580
|
-
)
|
|
3581
|
-
);
|
|
3471
|
+
var SidebarMenuSub = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3472
|
+
"ul",
|
|
3473
|
+
{
|
|
3474
|
+
ref,
|
|
3475
|
+
"data-sidebar": "menu-sub",
|
|
3476
|
+
className: cn("dl-sidebar-menu-sub", className),
|
|
3477
|
+
...props
|
|
3478
|
+
}
|
|
3479
|
+
));
|
|
3582
3480
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3583
|
-
var SidebarMenuSubItem =
|
|
3481
|
+
var SidebarMenuSubItem = React50.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { ref, ...props }));
|
|
3584
3482
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3585
|
-
var SidebarMenuSubButton =
|
|
3586
|
-
const Comp = asChild ?
|
|
3587
|
-
return /* @__PURE__ */ (0,
|
|
3483
|
+
var SidebarMenuSubButton = React50.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3484
|
+
const Comp = asChild ? import_react_slot6.Slot : "a";
|
|
3485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3588
3486
|
Comp,
|
|
3589
3487
|
{
|
|
3590
3488
|
ref,
|
|
@@ -3592,11 +3490,8 @@ var SidebarMenuSubButton = React38.forwardRef(({ asChild = false, size = "md", i
|
|
|
3592
3490
|
"data-size": size,
|
|
3593
3491
|
"data-active": isActive,
|
|
3594
3492
|
className: cn(
|
|
3595
|
-
"
|
|
3596
|
-
"
|
|
3597
|
-
size === "sm" && "text-xs",
|
|
3598
|
-
size === "md" && "text-sm",
|
|
3599
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3493
|
+
"dl-sidebar-menu-sub-button",
|
|
3494
|
+
size === "sm" && "dl-sidebar-menu-sub-button--sm",
|
|
3600
3495
|
className
|
|
3601
3496
|
),
|
|
3602
3497
|
...props
|
|
@@ -3605,19 +3500,71 @@ var SidebarMenuSubButton = React38.forwardRef(({ asChild = false, size = "md", i
|
|
|
3605
3500
|
});
|
|
3606
3501
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
3607
3502
|
|
|
3503
|
+
// src/components/sidebar/sidebar-controls.tsx
|
|
3504
|
+
var React51 = __toESM(require("react"), 1);
|
|
3505
|
+
var import_lucide_react23 = require("lucide-react");
|
|
3506
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3507
|
+
var SidebarTrigger = React51.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3508
|
+
const { toggleSidebar } = useSidebar();
|
|
3509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3510
|
+
Button,
|
|
3511
|
+
{
|
|
3512
|
+
ref,
|
|
3513
|
+
"data-sidebar": "trigger",
|
|
3514
|
+
variant: "ghost",
|
|
3515
|
+
size: "icon",
|
|
3516
|
+
className: cn("dl-sidebar-trigger", className),
|
|
3517
|
+
onClick: (event) => {
|
|
3518
|
+
onClick?.(event);
|
|
3519
|
+
toggleSidebar();
|
|
3520
|
+
},
|
|
3521
|
+
...props,
|
|
3522
|
+
children: [
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react23.PanelLeft, {}),
|
|
3524
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3525
|
+
]
|
|
3526
|
+
}
|
|
3527
|
+
);
|
|
3528
|
+
});
|
|
3529
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3530
|
+
var SidebarSeparator = React51.forwardRef(({ className, ...props }, ref) => {
|
|
3531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3532
|
+
Separator6,
|
|
3533
|
+
{
|
|
3534
|
+
ref,
|
|
3535
|
+
"data-sidebar": "separator",
|
|
3536
|
+
className: cn("dl-sidebar-separator", className),
|
|
3537
|
+
...props
|
|
3538
|
+
}
|
|
3539
|
+
);
|
|
3540
|
+
});
|
|
3541
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3542
|
+
var SidebarInput = React51.forwardRef(({ className, ...props }, ref) => {
|
|
3543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3544
|
+
Input,
|
|
3545
|
+
{
|
|
3546
|
+
ref,
|
|
3547
|
+
"data-sidebar": "input",
|
|
3548
|
+
className: cn("dl-sidebar-input", className),
|
|
3549
|
+
...props
|
|
3550
|
+
}
|
|
3551
|
+
);
|
|
3552
|
+
});
|
|
3553
|
+
SidebarInput.displayName = "SidebarInput";
|
|
3554
|
+
|
|
3608
3555
|
// src/components/slider/slider.tsx
|
|
3609
|
-
var
|
|
3556
|
+
var React52 = __toESM(require("react"), 1);
|
|
3610
3557
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
3611
|
-
var
|
|
3612
|
-
var Slider =
|
|
3558
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3559
|
+
var Slider = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3613
3560
|
SliderPrimitive.Root,
|
|
3614
3561
|
{
|
|
3615
3562
|
ref,
|
|
3616
3563
|
className: cn("dl-slider", className),
|
|
3617
3564
|
...props,
|
|
3618
3565
|
children: [
|
|
3619
|
-
/* @__PURE__ */ (0,
|
|
3620
|
-
/* @__PURE__ */ (0,
|
|
3566
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SliderPrimitive.Track, { className: "dl-slider__track", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SliderPrimitive.Range, { className: "dl-slider__range" }) }),
|
|
3567
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SliderPrimitive.Thumb, { className: "dl-slider__thumb" })
|
|
3621
3568
|
]
|
|
3622
3569
|
}
|
|
3623
3570
|
));
|
|
@@ -3626,7 +3573,7 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
3626
3573
|
// src/components/sonner/sonner.tsx
|
|
3627
3574
|
var import_react2 = require("react");
|
|
3628
3575
|
var import_sonner = require("sonner");
|
|
3629
|
-
var
|
|
3576
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3630
3577
|
var Toaster = ({ theme: propTheme, ...props }) => {
|
|
3631
3578
|
const [resolvedTheme, setResolvedTheme] = (0, import_react2.useState)("system");
|
|
3632
3579
|
(0, import_react2.useEffect)(() => {
|
|
@@ -3651,7 +3598,7 @@ var Toaster = ({ theme: propTheme, ...props }) => {
|
|
|
3651
3598
|
});
|
|
3652
3599
|
return () => observer.disconnect();
|
|
3653
3600
|
}, [propTheme]);
|
|
3654
|
-
return /* @__PURE__ */ (0,
|
|
3601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3655
3602
|
import_sonner.Toaster,
|
|
3656
3603
|
{
|
|
3657
3604
|
theme: propTheme ?? resolvedTheme,
|
|
@@ -3670,8 +3617,8 @@ var Toaster = ({ theme: propTheme, ...props }) => {
|
|
|
3670
3617
|
};
|
|
3671
3618
|
|
|
3672
3619
|
// src/components/status-badge/status-badge.tsx
|
|
3673
|
-
var
|
|
3674
|
-
var
|
|
3620
|
+
var React54 = __toESM(require("react"), 1);
|
|
3621
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3675
3622
|
var statusCategoryMap = {
|
|
3676
3623
|
Completed: "dl-status-badge--success",
|
|
3677
3624
|
COMPLETED: "dl-status-badge--success",
|
|
@@ -3691,18 +3638,18 @@ var statusCategoryMap = {
|
|
|
3691
3638
|
DISABLED: "dl-status-badge--muted",
|
|
3692
3639
|
IDLE: "dl-status-badge--muted"
|
|
3693
3640
|
};
|
|
3694
|
-
var StatusBadge =
|
|
3641
|
+
var StatusBadge = React54.forwardRef(
|
|
3695
3642
|
({ status, className, ...props }, ref) => {
|
|
3696
3643
|
const normalizedStatus = status?.trim() ?? "";
|
|
3697
3644
|
const colorClass = statusCategoryMap[normalizedStatus] ?? "dl-status-badge--muted";
|
|
3698
|
-
return /* @__PURE__ */ (0,
|
|
3645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3699
3646
|
"span",
|
|
3700
3647
|
{
|
|
3701
3648
|
ref,
|
|
3702
3649
|
className: cn("dl-status-badge", colorClass, className),
|
|
3703
3650
|
...props,
|
|
3704
3651
|
children: [
|
|
3705
|
-
/* @__PURE__ */ (0,
|
|
3652
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "dl-status-badge__dot" }),
|
|
3706
3653
|
normalizedStatus
|
|
3707
3654
|
]
|
|
3708
3655
|
}
|
|
@@ -3712,8 +3659,8 @@ var StatusBadge = React41.forwardRef(
|
|
|
3712
3659
|
StatusBadge.displayName = "StatusBadge";
|
|
3713
3660
|
|
|
3714
3661
|
// src/components/status-chip/status-chip.tsx
|
|
3715
|
-
var
|
|
3716
|
-
var
|
|
3662
|
+
var React55 = __toESM(require("react"), 1);
|
|
3663
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3717
3664
|
var statusToneMap = {
|
|
3718
3665
|
active: "dl-status-chip--primary",
|
|
3719
3666
|
running: "dl-status-chip--primary",
|
|
@@ -3735,17 +3682,17 @@ var statusToneMap = {
|
|
|
3735
3682
|
error: "dl-status-chip--destructive",
|
|
3736
3683
|
offline: "dl-status-chip--destructive"
|
|
3737
3684
|
};
|
|
3738
|
-
var StatusChip =
|
|
3685
|
+
var StatusChip = React55.forwardRef(
|
|
3739
3686
|
({ status, className, ...props }, ref) => {
|
|
3740
3687
|
const toneClass = statusToneMap[status] ?? "dl-status-chip--muted";
|
|
3741
|
-
return /* @__PURE__ */ (0,
|
|
3688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3742
3689
|
"span",
|
|
3743
3690
|
{
|
|
3744
3691
|
ref,
|
|
3745
3692
|
className: cn("dl-status-chip", toneClass, className),
|
|
3746
3693
|
...props,
|
|
3747
3694
|
children: [
|
|
3748
|
-
/* @__PURE__ */ (0,
|
|
3695
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "dl-status-chip__dot" }),
|
|
3749
3696
|
status
|
|
3750
3697
|
]
|
|
3751
3698
|
}
|
|
@@ -3755,52 +3702,52 @@ var StatusChip = React42.forwardRef(
|
|
|
3755
3702
|
StatusChip.displayName = "StatusChip";
|
|
3756
3703
|
|
|
3757
3704
|
// src/components/switch/switch.tsx
|
|
3758
|
-
var
|
|
3705
|
+
var React56 = __toESM(require("react"), 1);
|
|
3759
3706
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
3760
|
-
var
|
|
3761
|
-
var Switch =
|
|
3707
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3708
|
+
var Switch = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3762
3709
|
SwitchPrimitives.Root,
|
|
3763
3710
|
{
|
|
3764
3711
|
className: cn("dl-switch", className),
|
|
3765
3712
|
...props,
|
|
3766
3713
|
ref,
|
|
3767
|
-
children: /* @__PURE__ */ (0,
|
|
3714
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SwitchPrimitives.Thumb, { className: "dl-switch__thumb" })
|
|
3768
3715
|
}
|
|
3769
3716
|
));
|
|
3770
3717
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3771
3718
|
|
|
3772
3719
|
// src/components/table/table.tsx
|
|
3773
|
-
var
|
|
3774
|
-
var
|
|
3775
|
-
var Table =
|
|
3776
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3720
|
+
var React57 = __toESM(require("react"), 1);
|
|
3721
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3722
|
+
var Table = React57.forwardRef(
|
|
3723
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "dl-table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("table", { ref, className: cn("dl-table", className), ...props }) })
|
|
3777
3724
|
);
|
|
3778
3725
|
Table.displayName = "Table";
|
|
3779
|
-
var TableHeader =
|
|
3780
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3726
|
+
var TableHeader = React57.forwardRef(
|
|
3727
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("thead", { ref, className: cn("dl-table__head", className), ...props })
|
|
3781
3728
|
);
|
|
3782
3729
|
TableHeader.displayName = "TableHeader";
|
|
3783
|
-
var TableBody =
|
|
3784
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3730
|
+
var TableBody = React57.forwardRef(
|
|
3731
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tbody", { ref, className: cn("dl-table__body", className), ...props })
|
|
3785
3732
|
);
|
|
3786
3733
|
TableBody.displayName = "TableBody";
|
|
3787
|
-
var TableFooter =
|
|
3788
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3734
|
+
var TableFooter = React57.forwardRef(
|
|
3735
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tfoot", { ref, className: cn("dl-table__foot", className), ...props })
|
|
3789
3736
|
);
|
|
3790
3737
|
TableFooter.displayName = "TableFooter";
|
|
3791
|
-
var TableRow =
|
|
3792
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3738
|
+
var TableRow = React57.forwardRef(
|
|
3739
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { ref, className: cn("dl-table__row", className), ...props })
|
|
3793
3740
|
);
|
|
3794
3741
|
TableRow.displayName = "TableRow";
|
|
3795
|
-
var TableHead =
|
|
3796
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3742
|
+
var TableHead = React57.forwardRef(
|
|
3743
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("th", { ref, className: cn("dl-table__head-cell", className), ...props })
|
|
3797
3744
|
);
|
|
3798
3745
|
TableHead.displayName = "TableHead";
|
|
3799
|
-
var TableCell =
|
|
3800
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3746
|
+
var TableCell = React57.forwardRef(
|
|
3747
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("td", { ref, className: cn("dl-table__cell", className), ...props })
|
|
3801
3748
|
);
|
|
3802
3749
|
TableCell.displayName = "TableCell";
|
|
3803
|
-
var TableCaption =
|
|
3750
|
+
var TableCaption = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3804
3751
|
"caption",
|
|
3805
3752
|
{
|
|
3806
3753
|
ref,
|
|
@@ -3811,11 +3758,11 @@ var TableCaption = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3811
3758
|
TableCaption.displayName = "TableCaption";
|
|
3812
3759
|
|
|
3813
3760
|
// src/components/tabs/tabs.tsx
|
|
3814
|
-
var
|
|
3761
|
+
var React58 = __toESM(require("react"), 1);
|
|
3815
3762
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
3816
|
-
var
|
|
3763
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3817
3764
|
var Tabs = TabsPrimitive.Root;
|
|
3818
|
-
var TabsList =
|
|
3765
|
+
var TabsList = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3819
3766
|
TabsPrimitive.List,
|
|
3820
3767
|
{
|
|
3821
3768
|
ref,
|
|
@@ -3824,7 +3771,7 @@ var TabsList = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3824
3771
|
}
|
|
3825
3772
|
));
|
|
3826
3773
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3827
|
-
var TabsTrigger =
|
|
3774
|
+
var TabsTrigger = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3828
3775
|
TabsPrimitive.Trigger,
|
|
3829
3776
|
{
|
|
3830
3777
|
ref,
|
|
@@ -3833,7 +3780,7 @@ var TabsTrigger = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3833
3780
|
}
|
|
3834
3781
|
));
|
|
3835
3782
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3836
|
-
var TabsContent =
|
|
3783
|
+
var TabsContent = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3837
3784
|
TabsPrimitive.Content,
|
|
3838
3785
|
{
|
|
3839
3786
|
ref,
|
|
@@ -3844,18 +3791,18 @@ var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3844
3791
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3845
3792
|
|
|
3846
3793
|
// src/components/textarea/textarea.tsx
|
|
3847
|
-
var
|
|
3848
|
-
var
|
|
3849
|
-
var Textarea =
|
|
3850
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3794
|
+
var React59 = __toESM(require("react"), 1);
|
|
3795
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3796
|
+
var Textarea = React59.forwardRef(
|
|
3797
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("textarea", { className: cn("dl-textarea", className), ref, ...props })
|
|
3851
3798
|
);
|
|
3852
3799
|
Textarea.displayName = "Textarea";
|
|
3853
3800
|
|
|
3854
3801
|
// src/components/toggle/toggle.tsx
|
|
3855
|
-
var
|
|
3802
|
+
var React60 = __toESM(require("react"), 1);
|
|
3856
3803
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
3857
3804
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
3858
|
-
var
|
|
3805
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3859
3806
|
var toggleVariants = (0, import_class_variance_authority8.cva)("dl-toggle", {
|
|
3860
3807
|
variants: {
|
|
3861
3808
|
variant: {
|
|
@@ -3873,7 +3820,7 @@ var toggleVariants = (0, import_class_variance_authority8.cva)("dl-toggle", {
|
|
|
3873
3820
|
size: "default"
|
|
3874
3821
|
}
|
|
3875
3822
|
});
|
|
3876
|
-
var Toggle =
|
|
3823
|
+
var Toggle = React60.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3877
3824
|
TogglePrimitive.Root,
|
|
3878
3825
|
{
|
|
3879
3826
|
ref,
|
|
@@ -3884,26 +3831,26 @@ var Toggle = React47.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
3884
3831
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3885
3832
|
|
|
3886
3833
|
// src/components/toggle-group/toggle-group.tsx
|
|
3887
|
-
var
|
|
3834
|
+
var React61 = __toESM(require("react"), 1);
|
|
3888
3835
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
3889
|
-
var
|
|
3890
|
-
var ToggleGroupContext =
|
|
3836
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3837
|
+
var ToggleGroupContext = React61.createContext({
|
|
3891
3838
|
size: "default",
|
|
3892
3839
|
variant: "default"
|
|
3893
3840
|
});
|
|
3894
|
-
var ToggleGroup =
|
|
3841
|
+
var ToggleGroup = React61.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3895
3842
|
ToggleGroupPrimitive.Root,
|
|
3896
3843
|
{
|
|
3897
3844
|
ref,
|
|
3898
3845
|
className: cn("dl-toggle-group", className),
|
|
3899
3846
|
...props,
|
|
3900
|
-
children: /* @__PURE__ */ (0,
|
|
3847
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3901
3848
|
}
|
|
3902
3849
|
));
|
|
3903
3850
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3904
|
-
var ToggleGroupItem =
|
|
3905
|
-
const context =
|
|
3906
|
-
return /* @__PURE__ */ (0,
|
|
3851
|
+
var ToggleGroupItem = React61.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3852
|
+
const context = React61.useContext(ToggleGroupContext);
|
|
3853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3907
3854
|
ToggleGroupPrimitive.Item,
|
|
3908
3855
|
{
|
|
3909
3856
|
ref,
|
|
@@ -3922,17 +3869,17 @@ var ToggleGroupItem = React48.forwardRef(({ className, children, variant, size,
|
|
|
3922
3869
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3923
3870
|
|
|
3924
3871
|
// src/components/metric-card/metric-card.tsx
|
|
3925
|
-
var
|
|
3926
|
-
var
|
|
3927
|
-
var MetricCard =
|
|
3872
|
+
var React62 = __toESM(require("react"), 1);
|
|
3873
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3874
|
+
var MetricCard = React62.forwardRef(
|
|
3928
3875
|
({ label, value, note, positive, icon, className, ...props }, ref) => {
|
|
3929
|
-
return /* @__PURE__ */ (0,
|
|
3930
|
-
/* @__PURE__ */ (0,
|
|
3931
|
-
/* @__PURE__ */ (0,
|
|
3932
|
-
icon && /* @__PURE__ */ (0,
|
|
3876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ref, className: cn("dl-metric-card", className), ...props, children: [
|
|
3877
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "dl-metric-card__header", children: [
|
|
3878
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "dl-metric-card__label", children: label }),
|
|
3879
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "dl-metric-card__icon", children: icon })
|
|
3933
3880
|
] }),
|
|
3934
|
-
/* @__PURE__ */ (0,
|
|
3935
|
-
note && /* @__PURE__ */ (0,
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "dl-metric-card__value-row", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "dl-metric-card__value", children: value }) }),
|
|
3882
|
+
note && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3936
3883
|
"div",
|
|
3937
3884
|
{
|
|
3938
3885
|
className: cn(
|
|
@@ -3947,18 +3894,18 @@ var MetricCard = React49.forwardRef(
|
|
|
3947
3894
|
}
|
|
3948
3895
|
);
|
|
3949
3896
|
MetricCard.displayName = "MetricCard";
|
|
3950
|
-
var MetricsGrid =
|
|
3897
|
+
var MetricsGrid = React62.forwardRef(
|
|
3951
3898
|
({ children, className, ...props }, ref) => {
|
|
3952
|
-
return /* @__PURE__ */ (0,
|
|
3899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { ref, className: cn("dl-metrics-grid", className), ...props, children });
|
|
3953
3900
|
}
|
|
3954
3901
|
);
|
|
3955
3902
|
MetricsGrid.displayName = "MetricsGrid";
|
|
3956
3903
|
|
|
3957
3904
|
// src/components/copy-button/copy-button.tsx
|
|
3958
|
-
var
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var CopyButton =
|
|
3905
|
+
var React63 = __toESM(require("react"), 1);
|
|
3906
|
+
var import_lucide_react24 = require("lucide-react");
|
|
3907
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3908
|
+
var CopyButton = React63.forwardRef(
|
|
3962
3909
|
({
|
|
3963
3910
|
textToCopy,
|
|
3964
3911
|
label = "Copy",
|
|
@@ -3968,7 +3915,7 @@ var CopyButton = React50.forwardRef(
|
|
|
3968
3915
|
onClick,
|
|
3969
3916
|
...props
|
|
3970
3917
|
}, ref) => {
|
|
3971
|
-
const [isCopied, setIsCopied] =
|
|
3918
|
+
const [isCopied, setIsCopied] = React63.useState(false);
|
|
3972
3919
|
const handleCopy = async (e) => {
|
|
3973
3920
|
onClick?.(e);
|
|
3974
3921
|
if (e.defaultPrevented) return;
|
|
@@ -3979,7 +3926,7 @@ var CopyButton = React50.forwardRef(
|
|
|
3979
3926
|
} catch {
|
|
3980
3927
|
}
|
|
3981
3928
|
};
|
|
3982
|
-
return /* @__PURE__ */ (0,
|
|
3929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
3983
3930
|
"button",
|
|
3984
3931
|
{
|
|
3985
3932
|
ref,
|
|
@@ -3992,8 +3939,8 @@ var CopyButton = React50.forwardRef(
|
|
|
3992
3939
|
onClick: handleCopy,
|
|
3993
3940
|
...props,
|
|
3994
3941
|
children: [
|
|
3995
|
-
isCopied ? /* @__PURE__ */ (0,
|
|
3996
|
-
/* @__PURE__ */ (0,
|
|
3942
|
+
isCopied ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react24.Check, { className: "dl-copy-button__icon" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react24.Copy, { className: "dl-copy-button__icon" }),
|
|
3943
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: isCopied ? copiedLabel : label })
|
|
3997
3944
|
]
|
|
3998
3945
|
}
|
|
3999
3946
|
);
|
|
@@ -4002,10 +3949,10 @@ var CopyButton = React50.forwardRef(
|
|
|
4002
3949
|
CopyButton.displayName = "CopyButton";
|
|
4003
3950
|
|
|
4004
3951
|
// src/components/secret-reveal-card/secret-reveal-card.tsx
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4007
|
-
var
|
|
4008
|
-
var SecretRevealCard =
|
|
3952
|
+
var React64 = __toESM(require("react"), 1);
|
|
3953
|
+
var import_lucide_react25 = require("lucide-react");
|
|
3954
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3955
|
+
var SecretRevealCard = React64.forwardRef(
|
|
4009
3956
|
({
|
|
4010
3957
|
secret,
|
|
4011
3958
|
warningMessage = "One-time reveal. Please copy and store this credential securely before closing.",
|
|
@@ -4013,19 +3960,281 @@ var SecretRevealCard = React51.forwardRef(
|
|
|
4013
3960
|
className,
|
|
4014
3961
|
...props
|
|
4015
3962
|
}, ref) => {
|
|
4016
|
-
return /* @__PURE__ */ (0,
|
|
4017
|
-
warningMessage && /* @__PURE__ */ (0,
|
|
4018
|
-
/* @__PURE__ */ (0,
|
|
4019
|
-
/* @__PURE__ */ (0,
|
|
3963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { ref, className: cn("dl-secret-reveal", className), ...props, children: [
|
|
3964
|
+
warningMessage && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "dl-secret-reveal__warning", children: [
|
|
3965
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react25.AlertTriangle, {}),
|
|
3966
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: warningMessage })
|
|
4020
3967
|
] }),
|
|
4021
|
-
/* @__PURE__ */ (0,
|
|
4022
|
-
/* @__PURE__ */ (0,
|
|
4023
|
-
/* @__PURE__ */ (0,
|
|
3968
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "dl-secret-reveal__code-wrap", children: [
|
|
3969
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("code", { className: "dl-secret-reveal__code", children: secret }),
|
|
3970
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CopyButton, { textToCopy: secret, label: copyLabel })
|
|
4024
3971
|
] })
|
|
4025
3972
|
] });
|
|
4026
3973
|
}
|
|
4027
3974
|
);
|
|
4028
3975
|
SecretRevealCard.displayName = "SecretRevealCard";
|
|
3976
|
+
|
|
3977
|
+
// src/components/typography/heading.tsx
|
|
3978
|
+
var import_react3 = require("react");
|
|
3979
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3980
|
+
function resolveDefaultTag(size) {
|
|
3981
|
+
if (size === "display") return "h1";
|
|
3982
|
+
if (size === "h1" || size === "h2" || size === "h3" || size === "h4" || size === "h5" || size === "h6") {
|
|
3983
|
+
return size;
|
|
3984
|
+
}
|
|
3985
|
+
return "h2";
|
|
3986
|
+
}
|
|
3987
|
+
var Heading = (0, import_react3.forwardRef)(
|
|
3988
|
+
function Heading2({
|
|
3989
|
+
as,
|
|
3990
|
+
size = "h2",
|
|
3991
|
+
color = "default",
|
|
3992
|
+
weight,
|
|
3993
|
+
align = "left",
|
|
3994
|
+
truncate = false,
|
|
3995
|
+
className,
|
|
3996
|
+
children,
|
|
3997
|
+
...props
|
|
3998
|
+
}, ref) {
|
|
3999
|
+
const Component = as ?? resolveDefaultTag(size);
|
|
4000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4001
|
+
Component,
|
|
4002
|
+
{
|
|
4003
|
+
ref,
|
|
4004
|
+
className: cn("dl-heading", `dl-${size}`, className),
|
|
4005
|
+
"data-typography-color": color !== "default" ? color : void 0,
|
|
4006
|
+
"data-typography-align": align !== "left" ? align : void 0,
|
|
4007
|
+
"data-typography-weight": weight,
|
|
4008
|
+
"data-typography-truncate": truncate ? "true" : void 0,
|
|
4009
|
+
...props,
|
|
4010
|
+
children
|
|
4011
|
+
}
|
|
4012
|
+
);
|
|
4013
|
+
}
|
|
4014
|
+
);
|
|
4015
|
+
Heading.displayName = "Heading";
|
|
4016
|
+
|
|
4017
|
+
// src/components/typography/text.tsx
|
|
4018
|
+
var import_react4 = require("react");
|
|
4019
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4020
|
+
var Text = (0, import_react4.forwardRef)(function Text2({
|
|
4021
|
+
as: Component = "p",
|
|
4022
|
+
variant = "body",
|
|
4023
|
+
color = "default",
|
|
4024
|
+
weight,
|
|
4025
|
+
align = "left",
|
|
4026
|
+
truncate = false,
|
|
4027
|
+
className,
|
|
4028
|
+
children,
|
|
4029
|
+
...props
|
|
4030
|
+
}, ref) {
|
|
4031
|
+
const Element = Component;
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4033
|
+
Element,
|
|
4034
|
+
{
|
|
4035
|
+
ref,
|
|
4036
|
+
className: cn("dl-text", `dl-${variant}`, className),
|
|
4037
|
+
"data-typography-color": color !== "default" ? color : void 0,
|
|
4038
|
+
"data-typography-align": align !== "left" ? align : void 0,
|
|
4039
|
+
"data-typography-weight": weight,
|
|
4040
|
+
"data-typography-truncate": truncate ? "true" : void 0,
|
|
4041
|
+
...props,
|
|
4042
|
+
children
|
|
4043
|
+
}
|
|
4044
|
+
);
|
|
4045
|
+
});
|
|
4046
|
+
Text.displayName = "Text";
|
|
4047
|
+
|
|
4048
|
+
// src/components/layout/box.tsx
|
|
4049
|
+
var React65 = __toESM(require("react"), 1);
|
|
4050
|
+
var import_react_slot7 = require("@radix-ui/react-slot");
|
|
4051
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4052
|
+
var Box = React65.forwardRef(
|
|
4053
|
+
({
|
|
4054
|
+
className,
|
|
4055
|
+
asChild = false,
|
|
4056
|
+
as,
|
|
4057
|
+
p,
|
|
4058
|
+
px,
|
|
4059
|
+
py,
|
|
4060
|
+
radius,
|
|
4061
|
+
shadow,
|
|
4062
|
+
border = false,
|
|
4063
|
+
bg,
|
|
4064
|
+
style,
|
|
4065
|
+
...props
|
|
4066
|
+
}, ref) => {
|
|
4067
|
+
const Comp = asChild ? import_react_slot7.Slot : as || "div";
|
|
4068
|
+
const inlineStyles = { ...style };
|
|
4069
|
+
if (p) inlineStyles.padding = `var(--space-${p})`;
|
|
4070
|
+
if (px) {
|
|
4071
|
+
inlineStyles.paddingLeft = `var(--space-${px})`;
|
|
4072
|
+
inlineStyles.paddingRight = `var(--space-${px})`;
|
|
4073
|
+
}
|
|
4074
|
+
if (py) {
|
|
4075
|
+
inlineStyles.paddingTop = `var(--space-${py})`;
|
|
4076
|
+
inlineStyles.paddingBottom = `var(--space-${py})`;
|
|
4077
|
+
}
|
|
4078
|
+
if (radius && radius !== "none") {
|
|
4079
|
+
inlineStyles.borderRadius = `var(--radius-${radius}, var(--radius))`;
|
|
4080
|
+
}
|
|
4081
|
+
if (border) {
|
|
4082
|
+
inlineStyles.border = "1px solid var(--border)";
|
|
4083
|
+
}
|
|
4084
|
+
if (bg) {
|
|
4085
|
+
inlineStyles.backgroundColor = `var(--${bg})`;
|
|
4086
|
+
}
|
|
4087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4088
|
+
Comp,
|
|
4089
|
+
{
|
|
4090
|
+
ref,
|
|
4091
|
+
className: cn(
|
|
4092
|
+
"dl-box",
|
|
4093
|
+
shadow && shadow !== "none" && `dl-shadow-${shadow}`,
|
|
4094
|
+
className
|
|
4095
|
+
),
|
|
4096
|
+
style: inlineStyles,
|
|
4097
|
+
...props
|
|
4098
|
+
}
|
|
4099
|
+
);
|
|
4100
|
+
}
|
|
4101
|
+
);
|
|
4102
|
+
Box.displayName = "Box";
|
|
4103
|
+
|
|
4104
|
+
// src/components/layout/flex.tsx
|
|
4105
|
+
var React66 = __toESM(require("react"), 1);
|
|
4106
|
+
var import_react_slot8 = require("@radix-ui/react-slot");
|
|
4107
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4108
|
+
var Flex = React66.forwardRef(
|
|
4109
|
+
({
|
|
4110
|
+
className,
|
|
4111
|
+
asChild = false,
|
|
4112
|
+
as,
|
|
4113
|
+
direction = "row",
|
|
4114
|
+
justify,
|
|
4115
|
+
align,
|
|
4116
|
+
wrap = false,
|
|
4117
|
+
gap,
|
|
4118
|
+
inline = false,
|
|
4119
|
+
...props
|
|
4120
|
+
}, ref) => {
|
|
4121
|
+
const Comp = asChild ? import_react_slot8.Slot : as || "div";
|
|
4122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4123
|
+
Comp,
|
|
4124
|
+
{
|
|
4125
|
+
ref,
|
|
4126
|
+
className: cn(
|
|
4127
|
+
"dl-flex",
|
|
4128
|
+
inline && "dl-flex--inline",
|
|
4129
|
+
direction && `dl-flex--${direction}`,
|
|
4130
|
+
justify && `dl-flex--justify-${justify}`,
|
|
4131
|
+
align && `dl-flex--align-${align}`,
|
|
4132
|
+
(wrap === true || wrap === "wrap") && "dl-flex--wrap",
|
|
4133
|
+
wrap === "nowrap" && "dl-flex--nowrap",
|
|
4134
|
+
wrap === "reverse" && "dl-flex--wrap-reverse",
|
|
4135
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
4136
|
+
className
|
|
4137
|
+
),
|
|
4138
|
+
...props
|
|
4139
|
+
}
|
|
4140
|
+
);
|
|
4141
|
+
}
|
|
4142
|
+
);
|
|
4143
|
+
Flex.displayName = "Flex";
|
|
4144
|
+
|
|
4145
|
+
// src/components/layout/stack.tsx
|
|
4146
|
+
var React67 = __toESM(require("react"), 1);
|
|
4147
|
+
var import_react_slot9 = require("@radix-ui/react-slot");
|
|
4148
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4149
|
+
var Stack = React67.forwardRef(
|
|
4150
|
+
({
|
|
4151
|
+
className,
|
|
4152
|
+
asChild = false,
|
|
4153
|
+
as,
|
|
4154
|
+
direction = "col",
|
|
4155
|
+
gap = "3",
|
|
4156
|
+
align = "stretch",
|
|
4157
|
+
...props
|
|
4158
|
+
}, ref) => {
|
|
4159
|
+
const Comp = asChild ? import_react_slot9.Slot : as || "div";
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4161
|
+
Comp,
|
|
4162
|
+
{
|
|
4163
|
+
ref,
|
|
4164
|
+
className: cn(
|
|
4165
|
+
"dl-stack",
|
|
4166
|
+
`dl-stack--${direction}`,
|
|
4167
|
+
`dl-flex--align-${align}`,
|
|
4168
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
4169
|
+
className
|
|
4170
|
+
),
|
|
4171
|
+
...props
|
|
4172
|
+
}
|
|
4173
|
+
);
|
|
4174
|
+
}
|
|
4175
|
+
);
|
|
4176
|
+
Stack.displayName = "Stack";
|
|
4177
|
+
|
|
4178
|
+
// src/components/layout/grid.tsx
|
|
4179
|
+
var React68 = __toESM(require("react"), 1);
|
|
4180
|
+
var import_react_slot10 = require("@radix-ui/react-slot");
|
|
4181
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4182
|
+
var Grid = React68.forwardRef(
|
|
4183
|
+
({
|
|
4184
|
+
className,
|
|
4185
|
+
asChild = false,
|
|
4186
|
+
as,
|
|
4187
|
+
cols,
|
|
4188
|
+
columns,
|
|
4189
|
+
gap = "4",
|
|
4190
|
+
inline = false,
|
|
4191
|
+
style,
|
|
4192
|
+
...props
|
|
4193
|
+
}, ref) => {
|
|
4194
|
+
const Comp = asChild ? import_react_slot10.Slot : as || "div";
|
|
4195
|
+
const resolvedCols = cols ?? columns ?? 1;
|
|
4196
|
+
const inlineStyles = { ...style };
|
|
4197
|
+
if (typeof resolvedCols === "number") {
|
|
4198
|
+
inlineStyles.gridTemplateColumns = `repeat(${resolvedCols}, minmax(0, 1fr))`;
|
|
4199
|
+
} else if (typeof resolvedCols === "string") {
|
|
4200
|
+
inlineStyles.gridTemplateColumns = `repeat(auto-fit, minmax(${resolvedCols}, 1fr))`;
|
|
4201
|
+
}
|
|
4202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4203
|
+
Comp,
|
|
4204
|
+
{
|
|
4205
|
+
ref,
|
|
4206
|
+
className: cn(
|
|
4207
|
+
"dl-grid",
|
|
4208
|
+
inline && "dl-grid--inline",
|
|
4209
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
4210
|
+
className
|
|
4211
|
+
),
|
|
4212
|
+
style: inlineStyles,
|
|
4213
|
+
...props
|
|
4214
|
+
}
|
|
4215
|
+
);
|
|
4216
|
+
}
|
|
4217
|
+
);
|
|
4218
|
+
Grid.displayName = "Grid";
|
|
4219
|
+
|
|
4220
|
+
// src/components/layout/container.tsx
|
|
4221
|
+
var React69 = __toESM(require("react"), 1);
|
|
4222
|
+
var import_react_slot11 = require("@radix-ui/react-slot");
|
|
4223
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4224
|
+
var Container = React69.forwardRef(
|
|
4225
|
+
({ className, asChild = false, as, size = "xl", ...props }, ref) => {
|
|
4226
|
+
const Comp = asChild ? import_react_slot11.Slot : as || "div";
|
|
4227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4228
|
+
Comp,
|
|
4229
|
+
{
|
|
4230
|
+
ref,
|
|
4231
|
+
className: cn("dl-container", `dl-container--${size}`, className),
|
|
4232
|
+
...props
|
|
4233
|
+
}
|
|
4234
|
+
);
|
|
4235
|
+
}
|
|
4236
|
+
);
|
|
4237
|
+
Container.displayName = "Container";
|
|
4029
4238
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4030
4239
|
0 && (module.exports = {
|
|
4031
4240
|
Accordion,
|
|
@@ -4051,6 +4260,7 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4051
4260
|
AvatarFallback,
|
|
4052
4261
|
AvatarImage,
|
|
4053
4262
|
Badge,
|
|
4263
|
+
Box,
|
|
4054
4264
|
Breadcrumb,
|
|
4055
4265
|
BreadcrumbEllipsis,
|
|
4056
4266
|
BreadcrumbItem,
|
|
@@ -4069,10 +4279,12 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4069
4279
|
CardTitle,
|
|
4070
4280
|
Carousel,
|
|
4071
4281
|
CarouselContent,
|
|
4282
|
+
CarouselContext,
|
|
4072
4283
|
CarouselItem,
|
|
4073
4284
|
CarouselNext,
|
|
4074
4285
|
CarouselPrevious,
|
|
4075
4286
|
ChartContainer,
|
|
4287
|
+
ChartContext,
|
|
4076
4288
|
ChartLegend,
|
|
4077
4289
|
ChartLegendContent,
|
|
4078
4290
|
ChartStyle,
|
|
@@ -4093,6 +4305,7 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4093
4305
|
CommandShortcut,
|
|
4094
4306
|
ConfigProvider,
|
|
4095
4307
|
ConfirmDialog,
|
|
4308
|
+
Container,
|
|
4096
4309
|
ContextMenu,
|
|
4097
4310
|
ContextMenuCheckboxItem,
|
|
4098
4311
|
ContextMenuContent,
|
|
@@ -4146,6 +4359,8 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4146
4359
|
DropdownMenuSubContent,
|
|
4147
4360
|
DropdownMenuSubTrigger,
|
|
4148
4361
|
DropdownMenuTrigger,
|
|
4362
|
+
EmptyState,
|
|
4363
|
+
Flex,
|
|
4149
4364
|
Form,
|
|
4150
4365
|
FormControl,
|
|
4151
4366
|
FormDescription,
|
|
@@ -4153,6 +4368,8 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4153
4368
|
FormItem,
|
|
4154
4369
|
FormLabel,
|
|
4155
4370
|
FormMessage,
|
|
4371
|
+
Grid,
|
|
4372
|
+
Heading,
|
|
4156
4373
|
HoverCard,
|
|
4157
4374
|
HoverCardContent,
|
|
4158
4375
|
HoverCardTrigger,
|
|
@@ -4207,6 +4424,12 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4207
4424
|
ResizableHandle,
|
|
4208
4425
|
ResizablePanel,
|
|
4209
4426
|
ResizablePanelGroup,
|
|
4427
|
+
SIDEBAR_COOKIE_MAX_AGE,
|
|
4428
|
+
SIDEBAR_COOKIE_NAME,
|
|
4429
|
+
SIDEBAR_KEYBOARD_SHORTCUT,
|
|
4430
|
+
SIDEBAR_WIDTH,
|
|
4431
|
+
SIDEBAR_WIDTH_ICON,
|
|
4432
|
+
SIDEBAR_WIDTH_MOBILE,
|
|
4210
4433
|
ScrollArea,
|
|
4211
4434
|
ScrollBar,
|
|
4212
4435
|
SearchableSelect,
|
|
@@ -4234,6 +4457,7 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4234
4457
|
SheetTrigger,
|
|
4235
4458
|
Sidebar,
|
|
4236
4459
|
SidebarContent,
|
|
4460
|
+
SidebarContext,
|
|
4237
4461
|
SidebarFooter,
|
|
4238
4462
|
SidebarGroup,
|
|
4239
4463
|
SidebarGroupAction,
|
|
@@ -4257,9 +4481,11 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4257
4481
|
SidebarTrigger,
|
|
4258
4482
|
Skeleton,
|
|
4259
4483
|
Slider,
|
|
4484
|
+
Stack,
|
|
4260
4485
|
StatusBadge,
|
|
4261
4486
|
StatusChip,
|
|
4262
4487
|
Switch,
|
|
4488
|
+
THEMES,
|
|
4263
4489
|
Table,
|
|
4264
4490
|
TableBody,
|
|
4265
4491
|
TableCaption,
|
|
@@ -4272,6 +4498,7 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4272
4498
|
TabsContent,
|
|
4273
4499
|
TabsList,
|
|
4274
4500
|
TabsTrigger,
|
|
4501
|
+
Text,
|
|
4275
4502
|
Textarea,
|
|
4276
4503
|
ThemeProvider,
|
|
4277
4504
|
Toaster,
|
|
@@ -4286,12 +4513,16 @@ SecretRevealCard.displayName = "SecretRevealCard";
|
|
|
4286
4513
|
badgeVariants,
|
|
4287
4514
|
buttonVariants,
|
|
4288
4515
|
cn,
|
|
4516
|
+
cx,
|
|
4517
|
+
getPayloadConfigFromPayload,
|
|
4289
4518
|
labelVariants,
|
|
4290
4519
|
navigationMenuTriggerStyle,
|
|
4291
4520
|
sheetVariants,
|
|
4521
|
+
sidebarMenuButtonVariants,
|
|
4292
4522
|
toast,
|
|
4293
4523
|
toggleVariants,
|
|
4294
4524
|
useCarousel,
|
|
4525
|
+
useChart,
|
|
4295
4526
|
useConfig,
|
|
4296
4527
|
useFormField,
|
|
4297
4528
|
useIsMobile,
|