kuzenbo 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/accordion-trigger-D5XnBMS6.d.ts +24 -0
- package/dist/accordion-trigger-TjAe8JHy.js +53 -0
- package/dist/alert-dialog-trigger-BV0BsaVU.d.ts +638 -0
- package/dist/alert-dialog-trigger-D5BRoizR.js +98 -0
- package/dist/alert-title-CISzcj0X.js +28 -0
- package/dist/alert-title-CVC9G-Xf.d.ts +22 -0
- package/dist/announcement-title-CCZuGB1O.d.ts +18 -0
- package/dist/announcement-title-CIwzt9Wl.js +18 -0
- package/dist/autocomplete-value-BhyszIrf.d.ts +111 -0
- package/dist/autocomplete-value-DNJ3sAIH.js +141 -0
- package/dist/avatar-image-BKgKyzVw.d.ts +35 -0
- package/dist/avatar-image-Bw3G-Bl6.js +45 -0
- package/dist/breadcrumb-separator-D66-B1DA.d.ts +44 -0
- package/dist/breadcrumb-separator-Do-19Uow.js +74 -0
- package/dist/button-group-text-D98w78rH.js +25 -0
- package/dist/calendar-week-number-6AXvZ4Ij.js +72 -0
- package/dist/calendar-week-number-in2gpvA_.d.ts +36 -0
- package/dist/card-title-CbRPAh3M.js +52 -0
- package/dist/card-title-DSDluDoy.d.ts +40 -0
- package/dist/carousel-previous-B_jysGv_.js +89 -0
- package/dist/chart-tooltip-content-h5oLtil-.js +144 -0
- package/dist/collapsible-trigger-DcQWODN-.js +20 -0
- package/dist/collapsible-trigger-aZF7_mPR.d.ts +15 -0
- package/dist/command-shortcut-DoWM7Mnm.js +97 -0
- package/dist/context-menu-trigger-CYBhdcpg.js +147 -0
- package/dist/context-menu-trigger-Du2vcTco.d.ts +103 -0
- package/dist/dialog-trigger-CR23tYql.js +97 -0
- package/dist/dialog-trigger-xeE4e96-.d.ts +74 -0
- package/dist/drawer-trigger-7jI4Zmqs.js +79 -0
- package/dist/drawer-trigger-H_Wv5R00.d.ts +67 -0
- package/dist/dropdown-menu-trigger-CFdruqOk.d.ts +108 -0
- package/dist/dropdown-menu-trigger-IKeAoU_a.js +152 -0
- package/dist/dropzone-context-BRX1K7nw.d.ts +45 -0
- package/dist/dropzone-status-CW-3AXuh.js +33 -0
- package/dist/emoji-picker-skin-tone-selector-Cmv-1vDO.js +117 -0
- package/dist/emoji-picker-skin-tone-selector-yMYxt4oJ.d.ts +67 -0
- package/dist/empty-title-CH3DhcfT.d.ts +53 -0
- package/dist/empty-title-CHNBH7WJ.js +53 -0
- package/dist/form-field-title-CNrq8v88.js +101 -0
- package/dist/hooks/use-isomorphic-effect.d.ts +7 -0
- package/dist/hooks/use-isomorphic-effect.js +7 -0
- package/dist/hooks/use-mobile.d.ts +4 -0
- package/dist/hooks/use-mobile.js +20 -0
- package/dist/hover-card-trigger-B9jf3FEB.js +31 -0
- package/dist/hover-card-trigger-BqVoZ7h4.d.ts +20 -0
- package/dist/index.d.ts +122 -0
- package/dist/index.js +130 -0
- package/dist/input-group-textarea-voYOV11-.js +79 -0
- package/dist/input-otp-slot-DWbXhUmU.js +45 -0
- package/dist/input-otp-slot-eVdOjx8C.d.ts +24 -0
- package/dist/item-title-BYrYJZpa.js +89 -0
- package/dist/kbd-group-CT-Xtgug.js +12 -0
- package/dist/kbd-group-D3yVrb2D.d.ts +10 -0
- package/dist/marquee-item-BGJ5NSiz.js +29 -0
- package/dist/marquee-item-DD6JuLJ4.d.ts +32 -0
- package/dist/menubar-trigger-BLg3XdRv.d.ts +104 -0
- package/dist/menubar-trigger-aKMWAxdz.js +146 -0
- package/dist/meter-value-BmxUICOA.js +37 -0
- package/dist/meter-value-DYkZLCtx.d.ts +30 -0
- package/dist/navigation-menu-trigger-Bf60DnIz.d.ts +53 -0
- package/dist/navigation-menu-trigger-D80wiliM.js +82 -0
- package/dist/number-field-scrub-area-CXSyafBE.js +80 -0
- package/dist/optional-portal-C7TpYnOc.js +15 -0
- package/dist/pagination-previous-DPZrRgiD.js +88 -0
- package/dist/pagination-previous-qJeZZTou.d.ts +45 -0
- package/dist/pill-status-CD9XXuE7.js +74 -0
- package/dist/pill-status-rg-3AMSI.d.ts +77 -0
- package/dist/popover-trigger-B9PVErig.d.ts +39 -0
- package/dist/popover-trigger-C8dP_u7N.js +52 -0
- package/dist/progress-value-CFlgP0nv.d.ts +28 -0
- package/dist/progress-value-CfCodKnX.js +37 -0
- package/dist/radio-group-item-09fw05Va.d.ts +10 -0
- package/dist/radio-group-item-CQjCazjw.js +24 -0
- package/dist/rating-star-6ov3lbpn.d.ts +57 -0
- package/dist/rating-star-BuLQfAnZ.js +110 -0
- package/dist/resizable-panel-B4lAr8Vb.d.ts +19 -0
- package/dist/resizable-panel-BO97wcPj.js +21 -0
- package/dist/scroll-bar-BQzpb5hF.js +19 -0
- package/dist/scroll-bar-vYvxEOph.d.ts +11 -0
- package/dist/select-value-BUnWentK.js +117 -0
- package/dist/select-value-DG31IHy3.d.ts +70 -0
- package/dist/sheet-trigger-CLgKANrf.d.ts +64 -0
- package/dist/sheet-trigger-CUU7xwUn.js +95 -0
- package/dist/sidebar-trigger-BCjVuIqi.js +366 -0
- package/dist/styles.css +145 -0
- package/dist/table-row-BxhKJPfE.d.ts +46 -0
- package/dist/table-row-D63xalkM.js +60 -0
- package/dist/tabs-trigger-B2mBxFgq.js +38 -0
- package/dist/tabs-trigger-BGo2XGvh.d.ts +41 -0
- package/dist/timeline-title-BH8JxX2n.js +389 -0
- package/dist/toggle-group-item-Bz_ohmnY.d.ts +53 -0
- package/dist/toggle-group-item-aggwtgam.js +34 -0
- package/dist/toolbar-separator-7CgKz2aX.d.ts +40 -0
- package/dist/toolbar-separator-Bre5OtBI.js +41 -0
- package/dist/tooltip-trigger-CrAGfaqr.d.ts +27 -0
- package/dist/tooltip-trigger-Z-aPDRog.js +37 -0
- package/dist/ui/accordion.d.ts +27 -0
- package/dist/ui/accordion.js +17 -0
- package/dist/ui/affix.d.ts +49 -0
- package/dist/ui/affix.js +57 -0
- package/dist/ui/alert-dialog.d.ts +123 -0
- package/dist/ui/alert-dialog.js +23 -0
- package/dist/ui/alert.d.ts +58 -0
- package/dist/ui/alert.js +59 -0
- package/dist/ui/announcement.d.ts +27 -0
- package/dist/ui/announcement.js +16 -0
- package/dist/ui/aspect-ratio.d.ts +13 -0
- package/dist/ui/aspect-ratio.js +13 -0
- package/dist/ui/autocomplete.d.ts +67 -0
- package/dist/ui/autocomplete.js +30 -0
- package/dist/ui/avatar.d.ts +37 -0
- package/dist/ui/avatar.js +22 -0
- package/dist/ui/badge.d.ts +54 -0
- package/dist/ui/badge.js +33 -0
- package/dist/ui/breadcrumb.d.ts +41 -0
- package/dist/ui/breadcrumb.js +20 -0
- package/dist/ui/button-group.d.ts +94 -0
- package/dist/ui/button-group.js +24 -0
- package/dist/ui/button.d.ts +91 -0
- package/dist/ui/button.js +64 -0
- package/dist/ui/calendar.d.ts +52 -0
- package/dist/ui/calendar.js +64 -0
- package/dist/ui/card.d.ts +40 -0
- package/dist/ui/card.js +20 -0
- package/dist/ui/carousel.d.ts +100 -0
- package/dist/ui/carousel.js +76 -0
- package/dist/ui/chart.d.ts +61 -0
- package/dist/ui/chart.js +34 -0
- package/dist/ui/checkbox-group.d.ts +12 -0
- package/dist/ui/checkbox-group.js +13 -0
- package/dist/ui/checkbox.d.ts +12 -0
- package/dist/ui/checkbox.js +27 -0
- package/dist/ui/collapsible.d.ts +19 -0
- package/dist/ui/collapsible.js +16 -0
- package/dist/ui/combobox.d.ts +95 -0
- package/dist/ui/combobox.js +31 -0
- package/dist/ui/command.d.ts +146 -0
- package/dist/ui/command.js +24 -0
- package/dist/ui/context-menu.d.ts +83 -0
- package/dist/ui/context-menu.js +26 -0
- package/dist/ui/country-flag.d.ts +18 -0
- package/dist/ui/country-flag.js +36 -0
- package/dist/ui/dialog.d.ts +53 -0
- package/dist/ui/dialog.js +23 -0
- package/dist/ui/drawer.d.ts +52 -0
- package/dist/ui/drawer.js +24 -0
- package/dist/ui/dropdown-menu.d.ts +88 -0
- package/dist/ui/dropdown-menu.js +26 -0
- package/dist/ui/dropzone.d.ts +233 -0
- package/dist/ui/dropzone.js +180 -0
- package/dist/ui/emoji-picker.d.ts +46 -0
- package/dist/ui/emoji-picker.js +23 -0
- package/dist/ui/empty.d.ts +50 -0
- package/dist/ui/empty.js +18 -0
- package/dist/ui/form-field.d.ts +134 -0
- package/dist/ui/form-field.js +33 -0
- package/dist/ui/google-logo.d.ts +13 -0
- package/dist/ui/google-logo.js +36 -0
- package/dist/ui/hover-card.d.ts +24 -0
- package/dist/ui/hover-card.js +16 -0
- package/dist/ui/input-group.d.ts +141 -0
- package/dist/ui/input-group.js +21 -0
- package/dist/ui/input-otp.d.ts +31 -0
- package/dist/ui/input-otp.js +19 -0
- package/dist/ui/input.d.ts +12 -0
- package/dist/ui/input.js +14 -0
- package/dist/ui/item.d.ts +158 -0
- package/dist/ui/item.js +50 -0
- package/dist/ui/kbd.d.ts +18 -0
- package/dist/ui/kbd.js +14 -0
- package/dist/ui/label.d.ts +12 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/marquee.d.ts +30 -0
- package/dist/ui/marquee.js +17 -0
- package/dist/ui/menubar.d.ts +228 -0
- package/dist/ui/menubar.js +29 -0
- package/dist/ui/meter.d.ts +29 -0
- package/dist/ui/meter.js +19 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/navigation-menu.js +15 -0
- package/dist/ui/number-field.d.ts +41 -0
- package/dist/ui/number-field.js +33 -0
- package/dist/ui/pagination.d.ts +38 -0
- package/dist/ui/pagination.js +20 -0
- package/dist/ui/pill.d.ts +49 -0
- package/dist/ui/pill.js +21 -0
- package/dist/ui/popover.d.ts +37 -0
- package/dist/ui/popover.js +19 -0
- package/dist/ui/portal.d.ts +29 -0
- package/dist/ui/portal.js +52 -0
- package/dist/ui/progress.d.ts +31 -0
- package/dist/ui/progress.js +22 -0
- package/dist/ui/qr-code.d.ts +20 -0
- package/dist/ui/qr-code.js +78 -0
- package/dist/ui/radio-group.d.ts +18 -0
- package/dist/ui/radio-group.js +15 -0
- package/dist/ui/rating.d.ts +80 -0
- package/dist/ui/rating.js +59 -0
- package/dist/ui/resizable.d.ts +25 -0
- package/dist/ui/resizable.js +18 -0
- package/dist/ui/scroll-area.d.ts +19 -0
- package/dist/ui/scroll-area.js +24 -0
- package/dist/ui/select.d.ts +65 -0
- package/dist/ui/select.js +23 -0
- package/dist/ui/separator.d.ts +12 -0
- package/dist/ui/separator.js +14 -0
- package/dist/ui/sheet.d.ts +54 -0
- package/dist/ui/sheet.js +23 -0
- package/dist/ui/sidebar.d.ts +247 -0
- package/dist/ui/sidebar.js +83 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/skeleton.js +12 -0
- package/dist/ui/slider.d.ts +15 -0
- package/dist/ui/slider.js +47 -0
- package/dist/ui/spacer.d.ts +18 -0
- package/dist/ui/spacer.js +25 -0
- package/dist/ui/spinner.d.ts +12 -0
- package/dist/ui/spinner.js +17 -0
- package/dist/ui/surface.d.ts +41 -0
- package/dist/ui/surface.js +31 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/switch.js +20 -0
- package/dist/ui/table.d.ts +41 -0
- package/dist/ui/table.js +34 -0
- package/dist/ui/tabs.d.ts +43 -0
- package/dist/ui/tabs.js +20 -0
- package/dist/ui/textarea.d.ts +13 -0
- package/dist/ui/textarea.js +14 -0
- package/dist/ui/theme-icon.d.ts +77 -0
- package/dist/ui/theme-icon.js +56 -0
- package/dist/ui/timeline.d.ts +96 -0
- package/dist/ui/timeline.js +88 -0
- package/dist/ui/toast.d.ts +50 -0
- package/dist/ui/toast.js +23 -0
- package/dist/ui/toggle-group.d.ts +31 -0
- package/dist/ui/toggle-group.js +31 -0
- package/dist/ui/toggle.d.ts +46 -0
- package/dist/ui/toggle.js +34 -0
- package/dist/ui/toolbar.d.ts +33 -0
- package/dist/ui/toolbar.js +19 -0
- package/dist/ui/tooltip.d.ts +29 -0
- package/dist/ui/tooltip.js +17 -0
- package/dist/ui/video-player.d.ts +48 -0
- package/dist/ui/video-player.js +37 -0
- package/dist/use-chart-BRpzPrMJ.d.ts +77 -0
- package/dist/use-combobox-anchor-2KUf_cBk.js +198 -0
- package/dist/use-combobox-anchor-ByuqnpKH.d.ts +120 -0
- package/dist/use-number-field-Dzl9JLNK.d.ts +55 -0
- package/dist/use-timeline-BRlmxoQ7.d.ts +81 -0
- package/dist/use-toast-BGG4leSx.d.ts +118 -0
- package/dist/use-toast-DjRKuQG6.js +129 -0
- package/dist/video-player-volume-range-D971L6mz.d.ts +65 -0
- package/dist/video-player-volume-range-V7x0b1-r.js +66 -0
- package/package.json +128 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import "../accordion-trigger-D5XnBMS6.js";
|
|
2
|
+
import "../alert-title-CVC9G-Xf.js";
|
|
3
|
+
import "../announcement-title-CCZuGB1O.js";
|
|
4
|
+
import "../autocomplete-value-BhyszIrf.js";
|
|
5
|
+
import "../avatar-image-BKgKyzVw.js";
|
|
6
|
+
import "../breadcrumb-separator-D66-B1DA.js";
|
|
7
|
+
import { ButtonProps } from "./button.js";
|
|
8
|
+
import { SeparatorProps } from "./separator.js";
|
|
9
|
+
import { A as SidebarGroupContent, C as SidebarMenuBadge, D as SidebarInput, E as SidebarInset, M as SidebarGroup, N as SidebarFooter, O as SidebarHeader, P as SidebarContent, S as SidebarMenuButton, T as SidebarMenu, _ as SidebarMenuSubItem, b as SidebarMenuSkeleton, f as useSidebar, g as SidebarProvider, h as SidebarRail, j as SidebarGroupAction, k as SidebarGroupLabel, m as SidebarSeparator, p as SidebarTrigger, v as SidebarMenuSubButton, w as SidebarMenuAction, x as SidebarMenuItem, y as SidebarMenuSub } from "../alert-dialog-trigger-BV0BsaVU.js";
|
|
10
|
+
import "../calendar-week-number-in2gpvA_.js";
|
|
11
|
+
import "../card-title-DSDluDoy.js";
|
|
12
|
+
import "../use-chart-BRpzPrMJ.js";
|
|
13
|
+
import "../collapsible-trigger-aZF7_mPR.js";
|
|
14
|
+
import "../use-combobox-anchor-ByuqnpKH.js";
|
|
15
|
+
import "../dialog-trigger-xeE4e96-.js";
|
|
16
|
+
import "../context-menu-trigger-Du2vcTco.js";
|
|
17
|
+
import "../drawer-trigger-H_Wv5R00.js";
|
|
18
|
+
import "../dropdown-menu-trigger-CFdruqOk.js";
|
|
19
|
+
import "../dropzone-context-BRX1K7nw.js";
|
|
20
|
+
import "../emoji-picker-skin-tone-selector-yMYxt4oJ.js";
|
|
21
|
+
import "../empty-title-CH3DhcfT.js";
|
|
22
|
+
import "../hover-card-trigger-BqVoZ7h4.js";
|
|
23
|
+
import { InputProps } from "./input.js";
|
|
24
|
+
import "../input-otp-slot-eVdOjx8C.js";
|
|
25
|
+
import "../kbd-group-D3yVrb2D.js";
|
|
26
|
+
import "../marquee-item-DD6JuLJ4.js";
|
|
27
|
+
import "../menubar-trigger-BLg3XdRv.js";
|
|
28
|
+
import "../meter-value-DYkZLCtx.js";
|
|
29
|
+
import "../navigation-menu-trigger-Bf60DnIz.js";
|
|
30
|
+
import "../use-number-field-Dzl9JLNK.js";
|
|
31
|
+
import "../pagination-previous-qJeZZTou.js";
|
|
32
|
+
import "../pill-status-rg-3AMSI.js";
|
|
33
|
+
import "../popover-trigger-B9PVErig.js";
|
|
34
|
+
import "../progress-value-CFlgP0nv.js";
|
|
35
|
+
import "../radio-group-item-09fw05Va.js";
|
|
36
|
+
import "../rating-star-6ov3lbpn.js";
|
|
37
|
+
import "../resizable-panel-B4lAr8Vb.js";
|
|
38
|
+
import "../scroll-bar-vYvxEOph.js";
|
|
39
|
+
import "../select-value-DG31IHy3.js";
|
|
40
|
+
import "../sheet-trigger-CLgKANrf.js";
|
|
41
|
+
import "../tooltip-trigger-CrAGfaqr.js";
|
|
42
|
+
import "../table-row-BxhKJPfE.js";
|
|
43
|
+
import "../tabs-trigger-BGo2XGvh.js";
|
|
44
|
+
import "../use-timeline-BRlmxoQ7.js";
|
|
45
|
+
import "../use-toast-BGG4leSx.js";
|
|
46
|
+
import "../toggle-group-item-Bz_ohmnY.js";
|
|
47
|
+
import "../toolbar-separator-7CgKz2aX.js";
|
|
48
|
+
import "../video-player-volume-range-D971L6mz.js";
|
|
49
|
+
import "../index.js";
|
|
50
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
51
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
52
|
+
import * as react from "react";
|
|
53
|
+
import { ComponentProps } from "react";
|
|
54
|
+
import * as _base_ui_react0 from "@base-ui/react";
|
|
55
|
+
|
|
56
|
+
//#region src/components/sidebar/sidebar.d.ts
|
|
57
|
+
declare const Sidebar: {
|
|
58
|
+
({
|
|
59
|
+
side,
|
|
60
|
+
variant,
|
|
61
|
+
collapsible,
|
|
62
|
+
className,
|
|
63
|
+
children,
|
|
64
|
+
...props
|
|
65
|
+
}: ComponentProps<"div"> & {
|
|
66
|
+
side?: "left" | "right";
|
|
67
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
68
|
+
collapsible?: "offExamples" | "icon" | "none";
|
|
69
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
70
|
+
Content: ({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
74
|
+
Footer: ({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
78
|
+
Group: ({
|
|
79
|
+
className,
|
|
80
|
+
...props
|
|
81
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
82
|
+
GroupAction: ({
|
|
83
|
+
className,
|
|
84
|
+
render,
|
|
85
|
+
...props
|
|
86
|
+
}: _base_ui_react0.useRender.ComponentProps<"button"> & ComponentProps<"button">) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
87
|
+
GroupContent: ({
|
|
88
|
+
className,
|
|
89
|
+
...props
|
|
90
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
91
|
+
GroupLabel: ({
|
|
92
|
+
className,
|
|
93
|
+
render,
|
|
94
|
+
...props
|
|
95
|
+
}: _base_ui_react0.useRender.ComponentProps<"div"> & ComponentProps<"div">) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
96
|
+
Header: ({
|
|
97
|
+
className,
|
|
98
|
+
...props
|
|
99
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
100
|
+
Input: ({
|
|
101
|
+
className,
|
|
102
|
+
...props
|
|
103
|
+
}: ComponentProps<({
|
|
104
|
+
className,
|
|
105
|
+
type,
|
|
106
|
+
...props
|
|
107
|
+
}: InputProps) => react_jsx_runtime0.JSX.Element>) => react_jsx_runtime0.JSX.Element;
|
|
108
|
+
Inset: ({
|
|
109
|
+
className,
|
|
110
|
+
...props
|
|
111
|
+
}: ComponentProps<"main">) => react_jsx_runtime0.JSX.Element;
|
|
112
|
+
Menu: ({
|
|
113
|
+
className,
|
|
114
|
+
...props
|
|
115
|
+
}: ComponentProps<"ul">) => react_jsx_runtime0.JSX.Element;
|
|
116
|
+
MenuAction: ({
|
|
117
|
+
className,
|
|
118
|
+
render,
|
|
119
|
+
showOnHover,
|
|
120
|
+
...props
|
|
121
|
+
}: _base_ui_react0.useRender.ComponentProps<"button"> & ComponentProps<"button"> & {
|
|
122
|
+
showOnHover?: boolean;
|
|
123
|
+
}) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
124
|
+
MenuBadge: ({
|
|
125
|
+
className,
|
|
126
|
+
...props
|
|
127
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
128
|
+
MenuButton: ({
|
|
129
|
+
render,
|
|
130
|
+
isActive,
|
|
131
|
+
variant,
|
|
132
|
+
size,
|
|
133
|
+
tooltip,
|
|
134
|
+
className,
|
|
135
|
+
...props
|
|
136
|
+
}: _base_ui_react0.useRender.ComponentProps<"button"> & ComponentProps<"button"> & {
|
|
137
|
+
isActive?: boolean;
|
|
138
|
+
tooltip?: string | ComponentProps<({
|
|
139
|
+
className,
|
|
140
|
+
side,
|
|
141
|
+
sideOffset,
|
|
142
|
+
align,
|
|
143
|
+
alignOffset,
|
|
144
|
+
children,
|
|
145
|
+
...props
|
|
146
|
+
}: _base_ui_react0.TooltipPopup.Props & Pick<_base_ui_react0.TooltipPositioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) => react_jsx_runtime0.JSX.Element>;
|
|
147
|
+
} & tailwind_variants0.VariantProps<tailwind_variants0.TVReturnType<{
|
|
148
|
+
variant: {
|
|
149
|
+
default: string;
|
|
150
|
+
outline: string;
|
|
151
|
+
};
|
|
152
|
+
size: {
|
|
153
|
+
default: string;
|
|
154
|
+
sm: string;
|
|
155
|
+
lg: string;
|
|
156
|
+
};
|
|
157
|
+
}, undefined, "peer/menu-button group/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-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", {
|
|
158
|
+
variant: {
|
|
159
|
+
default: string;
|
|
160
|
+
outline: string;
|
|
161
|
+
};
|
|
162
|
+
size: {
|
|
163
|
+
default: string;
|
|
164
|
+
sm: string;
|
|
165
|
+
lg: string;
|
|
166
|
+
};
|
|
167
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
168
|
+
variant: {
|
|
169
|
+
default: string;
|
|
170
|
+
outline: string;
|
|
171
|
+
};
|
|
172
|
+
size: {
|
|
173
|
+
default: string;
|
|
174
|
+
sm: string;
|
|
175
|
+
lg: string;
|
|
176
|
+
};
|
|
177
|
+
}, undefined, "peer/menu-button group/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-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", unknown, unknown, undefined>>>) => react_jsx_runtime0.JSX.Element;
|
|
178
|
+
MenuItem: ({
|
|
179
|
+
className,
|
|
180
|
+
...props
|
|
181
|
+
}: ComponentProps<"li">) => react_jsx_runtime0.JSX.Element;
|
|
182
|
+
MenuSkeleton: ({
|
|
183
|
+
className,
|
|
184
|
+
showIcon,
|
|
185
|
+
...props
|
|
186
|
+
}: ComponentProps<"div"> & {
|
|
187
|
+
showIcon?: boolean;
|
|
188
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
189
|
+
MenuSub: ({
|
|
190
|
+
className,
|
|
191
|
+
...props
|
|
192
|
+
}: ComponentProps<"ul">) => react_jsx_runtime0.JSX.Element;
|
|
193
|
+
MenuSubButton: ({
|
|
194
|
+
render,
|
|
195
|
+
size,
|
|
196
|
+
isActive,
|
|
197
|
+
className,
|
|
198
|
+
...props
|
|
199
|
+
}: _base_ui_react0.useRender.ComponentProps<"a"> & ComponentProps<"a"> & {
|
|
200
|
+
size?: "sm" | "md";
|
|
201
|
+
isActive?: boolean;
|
|
202
|
+
}) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
203
|
+
MenuSubItem: ({
|
|
204
|
+
className,
|
|
205
|
+
...props
|
|
206
|
+
}: ComponentProps<"li">) => react_jsx_runtime0.JSX.Element;
|
|
207
|
+
Provider: ({
|
|
208
|
+
defaultOpen,
|
|
209
|
+
open: openProp,
|
|
210
|
+
onOpenChange: setOpenProp,
|
|
211
|
+
className,
|
|
212
|
+
style,
|
|
213
|
+
children,
|
|
214
|
+
...props
|
|
215
|
+
}: ComponentProps<"div"> & {
|
|
216
|
+
defaultOpen?: boolean;
|
|
217
|
+
open?: boolean;
|
|
218
|
+
onOpenChange?: (open: boolean) => void;
|
|
219
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
220
|
+
Rail: ({
|
|
221
|
+
className,
|
|
222
|
+
...props
|
|
223
|
+
}: ComponentProps<"button">) => react_jsx_runtime0.JSX.Element;
|
|
224
|
+
Separator: ({
|
|
225
|
+
className,
|
|
226
|
+
...props
|
|
227
|
+
}: ComponentProps<({
|
|
228
|
+
className,
|
|
229
|
+
orientation,
|
|
230
|
+
...props
|
|
231
|
+
}: SeparatorProps) => react_jsx_runtime0.JSX.Element>) => react_jsx_runtime0.JSX.Element;
|
|
232
|
+
Trigger: ({
|
|
233
|
+
className,
|
|
234
|
+
onClick,
|
|
235
|
+
...props
|
|
236
|
+
}: ComponentProps<({
|
|
237
|
+
className,
|
|
238
|
+
variant,
|
|
239
|
+
size,
|
|
240
|
+
isLoading,
|
|
241
|
+
children,
|
|
242
|
+
disabled,
|
|
243
|
+
...props
|
|
244
|
+
}: ButtonProps) => react_jsx_runtime0.JSX.Element>) => react_jsx_runtime0.JSX.Element;
|
|
245
|
+
};
|
|
246
|
+
//#endregion
|
|
247
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { a as SheetDescription, n as SheetTitle, o as SheetContent, r as SheetHeader } from "../sheet-trigger-CUU7xwUn.js";
|
|
2
|
+
import { Sheet } from "./sheet.js";
|
|
3
|
+
import { C as SidebarContent, S as SidebarFooter, _ as SidebarHeader, a as SidebarMenuSubItem, b as SidebarGroupAction, c as SidebarMenuSkeleton, d as useSidebar, f as SidebarMenuBadge, g as SidebarInput, h as SidebarInset, i as SidebarProvider, l as SidebarMenuItem, m as SidebarMenu, n as SidebarSeparator, o as SidebarMenuSubButton, p as SidebarMenuAction, r as SidebarRail, s as SidebarMenuSub, t as SidebarTrigger, u as SidebarMenuButton, v as SidebarGroupLabel, w as SIDEBAR_WIDTH_MOBILE, x as SidebarGroup, y as SidebarGroupContent } from "../sidebar-trigger-BCjVuIqi.js";
|
|
4
|
+
import { cn } from "tailwind-variants";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/sidebar/sidebar.tsx
|
|
8
|
+
const Sidebar = ({ side = "left", variant = "sidebar", collapsible = "offExamples", className, children, ...props }) => {
|
|
9
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
10
|
+
if (collapsible === "none") return /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
12
|
+
"data-slot": "sidebar",
|
|
13
|
+
...props,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
if (isMobile) return /* @__PURE__ */ jsx(Sheet, {
|
|
17
|
+
onOpenChange: setOpenMobile,
|
|
18
|
+
open: openMobile,
|
|
19
|
+
...props,
|
|
20
|
+
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
21
|
+
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
22
|
+
"data-mobile": "true",
|
|
23
|
+
"data-sidebar": "sidebar",
|
|
24
|
+
"data-slot": "sidebar",
|
|
25
|
+
side,
|
|
26
|
+
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
27
|
+
children: [/* @__PURE__ */ jsxs(SheetHeader, {
|
|
28
|
+
className: "sr-only",
|
|
29
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }), /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })]
|
|
30
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: "flex h-full w-full flex-col",
|
|
32
|
+
children
|
|
33
|
+
})]
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
37
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
38
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
39
|
+
"data-side": side,
|
|
40
|
+
"data-slot": "sidebar",
|
|
41
|
+
"data-state": state,
|
|
42
|
+
"data-variant": variant,
|
|
43
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
44
|
+
className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offExamples]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),
|
|
45
|
+
"data-slot": "sidebar-gap"
|
|
46
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", side === "left" ? "left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]", 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", className),
|
|
48
|
+
"data-slot": "sidebar-container",
|
|
49
|
+
...props,
|
|
50
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: "flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",
|
|
52
|
+
"data-sidebar": "sidebar",
|
|
53
|
+
"data-slot": "sidebar-inner",
|
|
54
|
+
children
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
Sidebar.Content = SidebarContent;
|
|
60
|
+
Sidebar.Footer = SidebarFooter;
|
|
61
|
+
Sidebar.Group = SidebarGroup;
|
|
62
|
+
Sidebar.GroupAction = SidebarGroupAction;
|
|
63
|
+
Sidebar.GroupContent = SidebarGroupContent;
|
|
64
|
+
Sidebar.GroupLabel = SidebarGroupLabel;
|
|
65
|
+
Sidebar.Header = SidebarHeader;
|
|
66
|
+
Sidebar.Input = SidebarInput;
|
|
67
|
+
Sidebar.Inset = SidebarInset;
|
|
68
|
+
Sidebar.Menu = SidebarMenu;
|
|
69
|
+
Sidebar.MenuAction = SidebarMenuAction;
|
|
70
|
+
Sidebar.MenuBadge = SidebarMenuBadge;
|
|
71
|
+
Sidebar.MenuButton = SidebarMenuButton;
|
|
72
|
+
Sidebar.MenuItem = SidebarMenuItem;
|
|
73
|
+
Sidebar.MenuSkeleton = SidebarMenuSkeleton;
|
|
74
|
+
Sidebar.MenuSub = SidebarMenuSub;
|
|
75
|
+
Sidebar.MenuSubButton = SidebarMenuSubButton;
|
|
76
|
+
Sidebar.MenuSubItem = SidebarMenuSubItem;
|
|
77
|
+
Sidebar.Provider = SidebarProvider;
|
|
78
|
+
Sidebar.Rail = SidebarRail;
|
|
79
|
+
Sidebar.Separator = SidebarSeparator;
|
|
80
|
+
Sidebar.Trigger = SidebarTrigger;
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/skeleton/skeleton.d.ts
|
|
5
|
+
type SkeletonProps = ComponentProps<"div">;
|
|
6
|
+
declare const Skeleton: ({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: SkeletonProps) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Skeleton, SkeletonProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/skeleton/skeleton.tsx
|
|
5
|
+
const Skeleton = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
7
|
+
"data-slot": "skeleton",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Skeleton };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/slider/slider.d.ts
|
|
5
|
+
type SliderProps = Slider$1.Root.Props;
|
|
6
|
+
declare const Slider: ({
|
|
7
|
+
className,
|
|
8
|
+
defaultValue,
|
|
9
|
+
value,
|
|
10
|
+
min,
|
|
11
|
+
max,
|
|
12
|
+
...props
|
|
13
|
+
}: SliderProps) => react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Slider, SliderProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "tailwind-variants";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
7
|
+
|
|
8
|
+
//#region src/components/slider/slider.tsx
|
|
9
|
+
const Slider = ({ className, defaultValue, value, min = 0, max = 100, ...props }) => {
|
|
10
|
+
const _values = useMemo(() => {
|
|
11
|
+
if (Array.isArray(value)) return value;
|
|
12
|
+
if (Array.isArray(defaultValue)) return defaultValue;
|
|
13
|
+
return [min, max];
|
|
14
|
+
}, [
|
|
15
|
+
value,
|
|
16
|
+
defaultValue,
|
|
17
|
+
min,
|
|
18
|
+
max
|
|
19
|
+
]);
|
|
20
|
+
return /* @__PURE__ */ jsx(Slider$1.Root, {
|
|
21
|
+
className: "data-vertical:h-full data-horizontal:w-full",
|
|
22
|
+
"data-slot": "slider",
|
|
23
|
+
defaultValue,
|
|
24
|
+
max,
|
|
25
|
+
min,
|
|
26
|
+
thumbAlignment: "edge",
|
|
27
|
+
value,
|
|
28
|
+
...props,
|
|
29
|
+
children: /* @__PURE__ */ jsxs(Slider$1.Control, {
|
|
30
|
+
className: cn("relative flex w-full touch-none select-none items-center data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col data-disabled:opacity-50", className),
|
|
31
|
+
children: [/* @__PURE__ */ jsx(Slider$1.Track, {
|
|
32
|
+
className: "relative select-none overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-vertical:h-full data-horizontal:w-full data-vertical:w-1",
|
|
33
|
+
"data-slot": "slider-track",
|
|
34
|
+
children: /* @__PURE__ */ jsx(Slider$1.Indicator, {
|
|
35
|
+
className: "select-none bg-primary data-horizontal:h-full data-vertical:w-full",
|
|
36
|
+
"data-slot": "slider-range"
|
|
37
|
+
})
|
|
38
|
+
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(Slider$1.Thumb, {
|
|
39
|
+
className: "relative block size-3 shrink-0 select-none rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] after:absolute after:-inset-2 hover:ring-[3px] focus-visible:outline-hidden focus-visible:ring-[3px] active:ring-[3px] disabled:pointer-events-none disabled:opacity-50",
|
|
40
|
+
"data-slot": "slider-thumb"
|
|
41
|
+
}, index))]
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Slider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/spacer/spacer.d.ts
|
|
5
|
+
type SpacerOrientation = "horizontal" | "vertical";
|
|
6
|
+
type SpacerProps = ComponentProps<"div"> & {
|
|
7
|
+
orientation?: SpacerOrientation;
|
|
8
|
+
size?: string | number;
|
|
9
|
+
};
|
|
10
|
+
declare const Spacer: ({
|
|
11
|
+
orientation,
|
|
12
|
+
size,
|
|
13
|
+
style,
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: SpacerProps) => react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Spacer, SpacerOrientation, SpacerProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "tailwind-variants";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/spacer/spacer.tsx
|
|
7
|
+
const Spacer = ({ orientation = "horizontal", size, style = {}, className, ...props }) => {
|
|
8
|
+
const computedStyle = {
|
|
9
|
+
...style,
|
|
10
|
+
...orientation === "horizontal" && !size && { flex: 1 },
|
|
11
|
+
...size && {
|
|
12
|
+
width: orientation === "vertical" ? "1px" : size,
|
|
13
|
+
height: orientation === "horizontal" ? "1px" : size
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: cn(className),
|
|
18
|
+
"data-slot": "spacer",
|
|
19
|
+
style: computedStyle,
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Spacer };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/spinner/spinner.d.ts
|
|
5
|
+
type SpinnerProps = ComponentProps<"svg">;
|
|
6
|
+
declare const Spinner: ({
|
|
7
|
+
className,
|
|
8
|
+
strokeWidth,
|
|
9
|
+
...props
|
|
10
|
+
}: SpinnerProps) => react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Spinner, SpinnerProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Loading03Icon } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/spinner/spinner.tsx
|
|
7
|
+
const Spinner = ({ className, strokeWidth = 2, ...props }) => /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
8
|
+
"aria-label": "Loading",
|
|
9
|
+
className: cn("size-4 animate-spin", className),
|
|
10
|
+
icon: Loading03Icon,
|
|
11
|
+
role: "status",
|
|
12
|
+
strokeWidth: typeof strokeWidth === "string" ? Number(strokeWidth) : strokeWidth,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Spinner };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import * as react from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/surface/surface.d.ts
|
|
7
|
+
declare const surfaceVariants: tailwind_variants0.TVReturnType<{
|
|
8
|
+
variant: {
|
|
9
|
+
default: string[];
|
|
10
|
+
secondary: string[];
|
|
11
|
+
tertiary: string[];
|
|
12
|
+
quaternary: string[];
|
|
13
|
+
};
|
|
14
|
+
}, undefined, undefined, {
|
|
15
|
+
variant: {
|
|
16
|
+
default: string[];
|
|
17
|
+
secondary: string[];
|
|
18
|
+
tertiary: string[];
|
|
19
|
+
quaternary: string[];
|
|
20
|
+
};
|
|
21
|
+
}, undefined, tailwind_variants0.TVReturnType<{
|
|
22
|
+
variant: {
|
|
23
|
+
default: string[];
|
|
24
|
+
secondary: string[];
|
|
25
|
+
tertiary: string[];
|
|
26
|
+
quaternary: string[];
|
|
27
|
+
};
|
|
28
|
+
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
29
|
+
type SurfaceVariants = VariantProps<typeof surfaceVariants>;
|
|
30
|
+
type SurfaceProps = SurfaceVariants & useRender.ComponentProps<"div"> & {
|
|
31
|
+
"data-slot"?: string;
|
|
32
|
+
"data-variant"?: string;
|
|
33
|
+
};
|
|
34
|
+
declare const Surface: ({
|
|
35
|
+
className,
|
|
36
|
+
variant,
|
|
37
|
+
render,
|
|
38
|
+
...props
|
|
39
|
+
}: SurfaceProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Surface, SurfaceProps, surfaceVariants };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
|
|
5
|
+
//#region src/components/surface/surface.tsx
|
|
6
|
+
const surfaceVariants = tv({
|
|
7
|
+
variants: { variant: {
|
|
8
|
+
default: ["bg-surface-1"],
|
|
9
|
+
secondary: ["bg-surface-2"],
|
|
10
|
+
tertiary: ["bg-surface-3"],
|
|
11
|
+
quaternary: ["bg-surface-4"]
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { variant: "default" }
|
|
14
|
+
});
|
|
15
|
+
const Surface = ({ className, variant, render, ...props }) => {
|
|
16
|
+
return useRender({
|
|
17
|
+
defaultTagName: "div",
|
|
18
|
+
render,
|
|
19
|
+
props: mergeProps({ className: surfaceVariants({
|
|
20
|
+
variant,
|
|
21
|
+
className
|
|
22
|
+
}) }, {
|
|
23
|
+
"data-slot": "surface",
|
|
24
|
+
"data-variant": variant,
|
|
25
|
+
...props
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Surface, surfaceVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/switch.d.ts
|
|
5
|
+
type SwitchProps = Switch$1.Root.Props & {
|
|
6
|
+
size?: "sm" | "default";
|
|
7
|
+
};
|
|
8
|
+
declare const Switch: ({
|
|
9
|
+
className,
|
|
10
|
+
size,
|
|
11
|
+
...props
|
|
12
|
+
}: SwitchProps) => react_jsx_runtime0.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Switch, SwitchProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "tailwind-variants";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/switch.tsx
|
|
8
|
+
const Switch = ({ className, size = "default", ...props }) => /* @__PURE__ */ jsx(Switch$1.Root, {
|
|
9
|
+
className: cn("peer group/switch relative inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs outline-none transition-all after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=sm]:h-[14px] data-[size=default]:w-[32px] data-[size=sm]:w-[24px] data-disabled:cursor-not-allowed data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-50 dark:data-unchecked:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
|
|
10
|
+
"data-size": size,
|
|
11
|
+
"data-slot": "switch",
|
|
12
|
+
...props,
|
|
13
|
+
children: /* @__PURE__ */ jsx(Switch$1.Thumb, {
|
|
14
|
+
className: "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground",
|
|
15
|
+
"data-slot": "switch-thumb"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Switch };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { a as TableCell, i as TableFooter, n as TableHeader, o as TableCaption, r as TableHead, s as TableBody, t as TableRow } from "../table-row-BxhKJPfE.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/table/table.d.ts
|
|
6
|
+
declare const Table: {
|
|
7
|
+
({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: ComponentProps<"table">): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
Body: ({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: ComponentProps<"tbody">) => react_jsx_runtime0.JSX.Element;
|
|
15
|
+
Caption: ({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: ComponentProps<"caption">) => react_jsx_runtime0.JSX.Element;
|
|
19
|
+
Cell: ({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: ComponentProps<"td">) => react_jsx_runtime0.JSX.Element;
|
|
23
|
+
Footer: ({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: ComponentProps<"tfoot">) => react_jsx_runtime0.JSX.Element;
|
|
27
|
+
Head: ({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: ComponentProps<"th">) => react_jsx_runtime0.JSX.Element;
|
|
31
|
+
Header: ({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: ComponentProps<"thead">) => react_jsx_runtime0.JSX.Element;
|
|
35
|
+
Row: ({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: ComponentProps<"tr">) => react_jsx_runtime0.JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|