@inspirare/design-system 0.0.22 → 0.0.24
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 +82 -61
- package/dist/book-logo-filled.svg +55 -0
- package/dist/components/ui/accessibility-improvements.js +26 -23
- package/dist/components/ui/accordion.js +34 -24
- package/dist/components/ui/alert-dialog.js +91 -57
- package/dist/components/ui/alert.js +38 -26
- package/dist/components/ui/aspect-ratio.js +11 -3
- package/dist/components/ui/avatar.js +30 -8
- package/dist/components/ui/badge.js +20 -14
- package/dist/components/ui/breadcrumb.js +69 -56
- package/dist/components/ui/button-group.js +17 -13
- package/dist/components/ui/button.js +19 -15
- package/dist/components/ui/calendar.js +63 -59
- package/dist/components/ui/card.js +11 -9
- package/dist/components/ui/carousel.js +70 -75
- package/dist/components/ui/chart.js +75 -72
- package/dist/components/ui/checkbox.js +4 -5
- package/dist/components/ui/collapsible.js +12 -14
- package/dist/components/ui/color-picker.js +60 -80
- package/dist/components/ui/combobox.js +153 -33
- package/dist/components/ui/command.js +50 -48
- package/dist/components/ui/context-menu.js +129 -68
- package/dist/components/ui/dialog.js +65 -60
- package/dist/components/ui/drawer.js +81 -40
- package/dist/components/ui/dropdown-menu.js +100 -87
- package/dist/components/ui/empty.js +7 -6
- package/dist/components/ui/field.js +44 -47
- package/dist/components/ui/form.js +22 -23
- package/dist/components/ui/hover-card.js +14 -11
- package/dist/components/ui/input-group.js +16 -13
- package/dist/components/ui/input-otp.js +37 -32
- package/dist/components/ui/input.js +9 -7
- package/dist/components/ui/item.js +42 -36
- package/dist/components/ui/kbd.js +2 -1
- package/dist/components/ui/label.js +6 -7
- package/dist/components/ui/menubar.js +124 -93
- package/dist/components/ui/navigation-menu.js +79 -54
- package/dist/components/ui/pagination.js +78 -58
- package/dist/components/ui/popover.js +35 -16
- package/dist/components/ui/progress.js +37 -13
- package/dist/components/ui/radio-group.js +14 -14
- package/dist/components/ui/resizable.js +24 -15
- package/dist/components/ui/scroll-area.js +29 -11
- package/dist/components/ui/select.js +98 -56
- package/dist/components/ui/separator.js +5 -7
- package/dist/components/ui/sheet.js +47 -42
- package/dist/components/ui/sidebar.js +279 -248
- package/dist/components/ui/skeleton.js +4 -40
- package/dist/components/ui/slider.js +27 -29
- package/dist/components/ui/sonner.js +27 -10
- package/dist/components/ui/spinner.js +2 -0
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/table.js +6 -6
- package/dist/components/ui/tabs.js +45 -22
- package/dist/components/ui/textarea.js +3 -2
- package/dist/components/ui/theme-toggle.js +38 -41
- package/dist/components/ui/toggle-group.js +30 -21
- package/dist/components/ui/toggle.js +8 -9
- package/dist/components/ui/tooltip.js +28 -23
- package/dist/index.css +1 -1
- package/dist/index.d.ts +446 -468
- package/dist/index.js +58 -58
- package/package.json +42 -41
- package/src/App.tsx +28 -34
- package/src/components/branding/assets/book-logo-filled.svg +55 -0
- package/src/components/branding/logo/logo.tsx +56 -0
- package/src/components/ui/accessibility-improvements.stories.tsx +18 -0
- package/src/components/ui/accessibility-improvements.test.tsx +13 -0
- package/src/components/ui/accessibility-improvements.tsx +16 -6
- package/src/components/ui/accordion.stories.tsx +19 -0
- package/src/components/ui/accordion.test.tsx +14 -0
- package/src/components/ui/accordion.tsx +28 -20
- package/src/components/ui/alert-dialog.stories.tsx +19 -0
- package/src/components/ui/alert-dialog.test.tsx +14 -0
- package/src/components/ui/alert-dialog.tsx +159 -123
- package/src/components/ui/alert.stories.tsx +19 -0
- package/src/components/ui/alert.test.tsx +14 -0
- package/src/components/ui/alert.tsx +60 -41
- package/src/components/ui/aspect-ratio.stories.tsx +19 -0
- package/src/components/ui/aspect-ratio.test.tsx +14 -0
- package/src/components/ui/aspect-ratio.tsx +19 -2
- package/src/components/ui/attachment.stories.tsx +19 -0
- package/src/components/ui/attachment.test.tsx +14 -0
- package/src/components/ui/attachment.tsx +209 -0
- package/src/components/ui/avatar.stories.tsx +19 -0
- package/src/components/ui/avatar.test.tsx +14 -0
- package/src/components/ui/avatar.tsx +73 -17
- package/src/components/ui/badge.stories.tsx +19 -0
- package/src/components/ui/badge.test.tsx +14 -0
- package/src/components/ui/badge.tsx +33 -25
- package/src/components/ui/breadcrumb.stories.tsx +19 -0
- package/src/components/ui/breadcrumb.test.tsx +14 -0
- package/src/components/ui/breadcrumb.tsx +98 -86
- package/src/components/ui/bubble.stories.tsx +19 -0
- package/src/components/ui/bubble.test.tsx +14 -0
- package/src/components/ui/bubble.tsx +130 -0
- package/src/components/ui/button-group.stories.tsx +19 -0
- package/src/components/ui/button-group.test.tsx +14 -0
- package/src/components/ui/button-group.tsx +26 -20
- package/src/components/ui/button.stories.tsx +19 -0
- package/src/components/ui/button.test.tsx +14 -0
- package/src/components/ui/button.tsx +30 -31
- package/src/components/ui/calendar.stories.tsx +19 -0
- package/src/components/ui/calendar.test.tsx +14 -0
- package/src/components/ui/calendar.tsx +28 -26
- package/src/components/ui/card.stories.tsx +19 -0
- package/src/components/ui/card.test.tsx +14 -0
- package/src/components/ui/card.tsx +30 -17
- package/src/components/ui/carousel.stories.tsx +19 -0
- package/src/components/ui/carousel.test.tsx +14 -0
- package/src/components/ui/carousel.tsx +115 -135
- package/src/components/ui/chart.stories.tsx +18 -0
- package/src/components/ui/chart.test.tsx +13 -0
- package/src/components/ui/chart.tsx +220 -216
- package/src/components/ui/checkbox.stories.tsx +19 -0
- package/src/components/ui/checkbox.test.tsx +14 -0
- package/src/components/ui/checkbox.tsx +7 -10
- package/src/components/ui/collapsible.stories.tsx +19 -0
- package/src/components/ui/collapsible.test.tsx +14 -0
- package/src/components/ui/collapsible.tsx +11 -26
- package/src/components/ui/color-picker.stories.tsx +19 -0
- package/src/components/ui/color-picker.test.tsx +14 -0
- package/src/components/ui/color-picker.tsx +36 -26
- package/src/components/ui/combobox.stories.tsx +19 -0
- package/src/components/ui/combobox.test.tsx +14 -0
- package/src/components/ui/combobox.tsx +281 -96
- package/src/components/ui/command.stories.tsx +19 -0
- package/src/components/ui/command.test.tsx +14 -0
- package/src/components/ui/command.tsx +59 -47
- package/src/components/ui/context-menu.stories.tsx +19 -0
- package/src/components/ui/context-menu.test.tsx +14 -0
- package/src/components/ui/context-menu.tsx +231 -160
- package/src/components/ui/dialog.stories.tsx +19 -0
- package/src/components/ui/dialog.test.tsx +14 -0
- package/src/components/ui/dialog.tsx +81 -72
- package/src/components/ui/direction.stories.tsx +19 -0
- package/src/components/ui/direction.test.tsx +14 -0
- package/src/components/ui/direction.tsx +6 -0
- package/src/components/ui/drawer.stories.tsx +19 -0
- package/src/components/ui/drawer.test.tsx +14 -0
- package/src/components/ui/drawer.tsx +143 -64
- package/src/components/ui/dropdown-menu.stories.tsx +19 -0
- package/src/components/ui/dropdown-menu.test.tsx +14 -0
- package/src/components/ui/dropdown-menu.tsx +199 -153
- package/src/components/ui/empty.stories.tsx +18 -0
- package/src/components/ui/empty.test.tsx +13 -0
- package/src/components/ui/empty.tsx +11 -9
- package/src/components/ui/field.stories.tsx +18 -0
- package/src/components/ui/field.test.tsx +13 -0
- package/src/components/ui/field.tsx +26 -32
- package/src/components/ui/form.stories.tsx +22 -0
- package/src/components/ui/form.test.tsx +15 -0
- package/src/components/ui/form.tsx +1 -2
- package/src/components/ui/hover-card.stories.tsx +19 -0
- package/src/components/ui/hover-card.test.tsx +14 -0
- package/src/components/ui/hover-card.tsx +34 -32
- package/src/components/ui/input-group.stories.tsx +18 -0
- package/src/components/ui/input-group.test.tsx +13 -0
- package/src/components/ui/input-group.tsx +21 -28
- package/src/components/ui/input-otp.stories.tsx +19 -0
- package/src/components/ui/input-otp.test.tsx +14 -0
- package/src/components/ui/input-otp.tsx +58 -42
- package/src/components/ui/input.stories.tsx +19 -0
- package/src/components/ui/input.test.tsx +14 -0
- package/src/components/ui/input.tsx +9 -8
- package/src/components/ui/item.stories.tsx +18 -0
- package/src/components/ui/item.test.tsx +13 -0
- package/src/components/ui/item.tsx +38 -28
- package/src/components/ui/kbd.stories.tsx +18 -0
- package/src/components/ui/kbd.test.tsx +13 -0
- package/src/components/ui/kbd.tsx +3 -3
- package/src/components/ui/label.stories.tsx +18 -0
- package/src/components/ui/label.test.tsx +13 -0
- package/src/components/ui/label.tsx +7 -11
- package/src/components/ui/marker.stories.tsx +19 -0
- package/src/components/ui/marker.test.tsx +14 -0
- package/src/components/ui/marker.tsx +73 -0
- package/src/components/ui/menubar.stories.tsx +19 -0
- package/src/components/ui/menubar.test.tsx +14 -0
- package/src/components/ui/menubar.tsx +226 -202
- package/src/components/ui/message-scroller.stories.tsx +19 -0
- package/src/components/ui/message-scroller.test.tsx +14 -0
- package/src/components/ui/message-scroller.tsx +131 -0
- package/src/components/ui/message.stories.tsx +19 -0
- package/src/components/ui/message.test.tsx +14 -0
- package/src/components/ui/message.tsx +94 -0
- package/src/components/ui/native-select.stories.tsx +18 -0
- package/src/components/ui/native-select.test.tsx +13 -0
- package/src/components/ui/native-select.tsx +63 -0
- package/src/components/ui/navigation-menu.stories.tsx +19 -0
- package/src/components/ui/navigation-menu.test.tsx +14 -0
- package/src/components/ui/navigation-menu.tsx +145 -103
- package/src/components/ui/pagination.stories.tsx +19 -0
- package/src/components/ui/pagination.test.tsx +14 -0
- package/src/components/ui/pagination.tsx +114 -83
- package/src/components/ui/popover.stories.tsx +19 -0
- package/src/components/ui/popover.test.tsx +14 -0
- package/src/components/ui/popover.tsx +68 -33
- package/src/components/ui/progress.stories.tsx +19 -0
- package/src/components/ui/progress.test.tsx +14 -0
- package/src/components/ui/progress.tsx +67 -15
- package/src/components/ui/questionnaire.stories.tsx +19 -0
- package/src/components/ui/questionnaire.test.tsx +14 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.stories.tsx +19 -0
- package/src/components/ui/radio-group.test.tsx +14 -0
- package/src/components/ui/radio-group.tsx +15 -20
- package/src/components/ui/resizable.stories.tsx +19 -0
- package/src/components/ui/resizable.test.tsx +14 -0
- package/src/components/ui/resizable.tsx +37 -30
- package/src/components/ui/scroll-area.stories.tsx +19 -0
- package/src/components/ui/scroll-area.test.tsx +14 -0
- package/src/components/ui/scroll-area.tsx +41 -19
- package/src/components/ui/select.stories.tsx +19 -0
- package/src/components/ui/select.test.tsx +14 -0
- package/src/components/ui/select.tsx +145 -78
- package/src/components/ui/separator.stories.tsx +19 -0
- package/src/components/ui/separator.test.tsx +14 -0
- package/src/components/ui/separator.tsx +8 -11
- package/src/components/ui/sheet.stories.tsx +19 -0
- package/src/components/ui/sheet.test.tsx +14 -0
- package/src/components/ui/sheet.tsx +56 -71
- package/src/components/ui/sidebar.stories.tsx +18 -0
- package/src/components/ui/sidebar.test.tsx +13 -0
- package/src/components/ui/sidebar.tsx +469 -513
- package/src/components/ui/skeleton.stories.tsx +19 -0
- package/src/components/ui/skeleton.test.tsx +14 -0
- package/src/components/ui/skeleton.tsx +8 -114
- package/src/components/ui/slider.stories.tsx +19 -0
- package/src/components/ui/slider.test.tsx +14 -0
- package/src/components/ui/slider.tsx +31 -40
- package/src/components/ui/sonner.stories.tsx +19 -0
- package/src/components/ui/sonner.test.tsx +14 -0
- package/src/components/ui/sonner.tsx +39 -7
- package/src/components/ui/spinner.stories.tsx +18 -0
- package/src/components/ui/spinner.test.tsx +13 -0
- package/src/components/ui/spinner.tsx +3 -7
- package/src/components/ui/switch.stories.tsx +19 -0
- package/src/components/ui/switch.test.tsx +14 -0
- package/src/components/ui/switch.tsx +4 -7
- package/src/components/ui/table.stories.tsx +19 -0
- package/src/components/ui/table.test.tsx +14 -0
- package/src/components/ui/table.tsx +17 -17
- package/src/components/ui/tabs.stories.tsx +19 -0
- package/src/components/ui/tabs.test.tsx +14 -0
- package/src/components/ui/tabs.tsx +71 -31
- package/src/components/ui/textarea.stories.tsx +19 -0
- package/src/components/ui/textarea.test.tsx +14 -0
- package/src/components/ui/textarea.tsx +7 -5
- package/src/components/ui/theme-toggle.stories.tsx +18 -0
- package/src/components/ui/theme-toggle.test.tsx +13 -0
- package/src/components/ui/theme-toggle.tsx +35 -37
- package/src/components/ui/toggle-group.stories.tsx +19 -0
- package/src/components/ui/toggle-group.test.tsx +14 -0
- package/src/components/ui/toggle-group.tsx +41 -25
- package/src/components/ui/toggle.stories.tsx +19 -0
- package/src/components/ui/toggle.test.tsx +14 -0
- package/src/components/ui/toggle.tsx +17 -19
- package/src/components/ui/tooltip.stories.tsx +19 -0
- package/src/components/ui/tooltip.test.tsx +14 -0
- package/src/components/ui/tooltip.tsx +53 -44
- package/src/demo/AIDemo.tsx +50 -0
- package/src/demo/ButtonsDemo.tsx +41 -18
- package/src/demo/CalendarDemo.tsx +1 -1
- package/src/demo/FeedbackDemo.tsx +4 -6
- package/src/demo/FormsDemo.tsx +34 -11
- package/src/demo/NavigationDemo.tsx +38 -13
- package/src/demo/OverlaysDemo.tsx +22 -36
- package/src/demo/update-demos.js +82 -0
- package/src/index.css +66 -46
- package/src/lib/utils.ts +3 -3
- package/src/stories/Button.stories.ts +54 -0
- package/src/stories/Button.tsx +36 -0
- package/src/stories/Configure.mdx +388 -0
- package/src/stories/Header.stories.ts +34 -0
- package/src/stories/Header.tsx +55 -0
- package/src/stories/Page.stories.ts +33 -0
- package/src/stories/Page.tsx +73 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +68 -0
|
@@ -1,58 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import * as o from "@radix-ui/react-navigation-menu";
|
|
3
|
+
import { ChevronDownIcon as t } from "lucide-react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { cva as i } from "class-variance-authority";
|
|
6
|
+
import { NavigationMenu as a } from "@base-ui/react/navigation-menu";
|
|
7
7
|
//#region src/components/ui/navigation-menu.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
function o({ align: t = "start", className: i, children: o, ...s }) {
|
|
9
|
+
return /* @__PURE__ */ r(a.Root, {
|
|
10
|
+
"data-slot": "navigation-menu",
|
|
11
|
+
className: e("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", i),
|
|
12
|
+
...s,
|
|
13
|
+
children: [o, /* @__PURE__ */ n(f, { align: t })]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function s({ className: t, ...r }) {
|
|
17
|
+
return /* @__PURE__ */ n(a.List, {
|
|
18
|
+
"data-slot": "navigation-menu-list",
|
|
19
|
+
className: e("group flex flex-1 list-none items-center justify-center gap-0", t),
|
|
20
|
+
...r
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function c({ className: t, ...r }) {
|
|
24
|
+
return /* @__PURE__ */ n(a.Item, {
|
|
25
|
+
"data-slot": "navigation-menu-item",
|
|
26
|
+
className: e("relative", t),
|
|
27
|
+
...r
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
var l = i("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");
|
|
31
|
+
function u({ className: i, children: o, ...s }) {
|
|
32
|
+
return /* @__PURE__ */ r(a.Trigger, {
|
|
33
|
+
"data-slot": "navigation-menu-trigger",
|
|
34
|
+
className: e(l(), "group", i),
|
|
35
|
+
...s,
|
|
36
|
+
children: [
|
|
37
|
+
o,
|
|
38
|
+
" ",
|
|
39
|
+
/* @__PURE__ */ n(t, {
|
|
40
|
+
className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function d({ className: t, ...r }) {
|
|
47
|
+
return /* @__PURE__ */ n(a.Content, {
|
|
48
|
+
"data-slot": "navigation-menu-content",
|
|
49
|
+
className: e("data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-ending-style:opacity-0 data-starting-style:opacity-0 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", t),
|
|
50
|
+
...r
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function f({ className: t, side: r = "bottom", sideOffset: i = 8, align: o = "start", alignOffset: s = 0, ...c }) {
|
|
54
|
+
return /* @__PURE__ */ n(a.Portal, { children: /* @__PURE__ */ n(a.Positioner, {
|
|
55
|
+
side: r,
|
|
56
|
+
sideOffset: i,
|
|
57
|
+
align: o,
|
|
58
|
+
alignOffset: s,
|
|
59
|
+
className: e("isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", t),
|
|
60
|
+
...c,
|
|
61
|
+
children: /* @__PURE__ */ n(a.Popup, {
|
|
62
|
+
className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0",
|
|
63
|
+
children: /* @__PURE__ */ n(a.Viewport, { className: "relative size-full overflow-hidden" })
|
|
31
64
|
})
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
className: e("
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
48
|
-
}
|
|
49
|
-
m.displayName = o.Viewport.displayName;
|
|
50
|
-
var h = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Indicator, {
|
|
51
|
-
ref: i,
|
|
52
|
-
className: e("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", t),
|
|
53
|
-
...n,
|
|
54
|
-
children: /* @__PURE__ */ r("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
55
|
-
}));
|
|
56
|
-
h.displayName = o.Indicator.displayName;
|
|
65
|
+
}) });
|
|
66
|
+
}
|
|
67
|
+
function p({ className: t, ...r }) {
|
|
68
|
+
return /* @__PURE__ */ n(a.Link, {
|
|
69
|
+
"data-slot": "navigation-menu-link",
|
|
70
|
+
className: e("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", t),
|
|
71
|
+
...r
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function m({ className: t, ...r }) {
|
|
75
|
+
return /* @__PURE__ */ n(a.Icon, {
|
|
76
|
+
"data-slot": "navigation-menu-indicator",
|
|
77
|
+
className: e("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", t),
|
|
78
|
+
...r,
|
|
79
|
+
children: /* @__PURE__ */ n("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
80
|
+
});
|
|
81
|
+
}
|
|
57
82
|
//#endregion
|
|
58
|
-
export {
|
|
83
|
+
export { o as NavigationMenu, d as NavigationMenuContent, m as NavigationMenuIndicator, c as NavigationMenuItem, p as NavigationMenuLink, s as NavigationMenuList, f as NavigationMenuPositioner, u as NavigationMenuTrigger, l as navigationMenuTriggerStyle };
|
|
@@ -1,62 +1,82 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
3
|
+
import { Button as t } from "./button.js";
|
|
4
|
+
import { Tooltip as n, TooltipContent as r, TooltipTrigger as i } from "./tooltip.js";
|
|
5
|
+
import { ChevronLeftIcon as a, ChevronRightIcon as o, MoreHorizontalIcon as s } from "lucide-react";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
import "react";
|
|
6
8
|
//#region src/components/ui/pagination.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
function u({ className: t, ...n }) {
|
|
10
|
+
return /* @__PURE__ */ c("nav", {
|
|
11
|
+
role: "navigation",
|
|
12
|
+
"aria-label": "pagination",
|
|
13
|
+
"data-slot": "pagination",
|
|
14
|
+
className: e("mx-auto flex w-full justify-center", t),
|
|
15
|
+
...n
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function d({ className: t, ...n }) {
|
|
19
|
+
return /* @__PURE__ */ c("ul", {
|
|
20
|
+
"data-slot": "pagination-content",
|
|
21
|
+
className: e("flex items-center gap-0.5", t),
|
|
22
|
+
...n
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function f({ ...e }) {
|
|
26
|
+
return /* @__PURE__ */ c("li", {
|
|
27
|
+
"data-slot": "pagination-item",
|
|
28
|
+
...e
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function p({ className: n, isActive: r, size: i = "icon", ...a }) {
|
|
32
|
+
return /* @__PURE__ */ c(t, {
|
|
29
33
|
variant: r ? "outline" : "ghost",
|
|
30
|
-
size: i
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
34
|
+
size: i,
|
|
35
|
+
className: e(n),
|
|
36
|
+
nativeButton: !1,
|
|
37
|
+
render: /* @__PURE__ */ c("a", {
|
|
38
|
+
"aria-current": r ? "page" : void 0,
|
|
39
|
+
"data-slot": "pagination-link",
|
|
40
|
+
"data-active": r,
|
|
41
|
+
...a
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function m({ className: t, text: o = "Previous", ...s }) {
|
|
46
|
+
return /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ c(i, { render: /* @__PURE__ */ l(p, {
|
|
47
|
+
"aria-label": "Go to previous page",
|
|
48
|
+
size: "default",
|
|
49
|
+
className: e("pl-1.5!", t),
|
|
50
|
+
...s,
|
|
51
|
+
children: [/* @__PURE__ */ c(a, { "data-icon": "inline-start" }), /* @__PURE__ */ c("span", {
|
|
52
|
+
className: "hidden sm:block",
|
|
53
|
+
children: o
|
|
54
|
+
})]
|
|
55
|
+
}) }), /* @__PURE__ */ c(r, { children: "Voltar" })] });
|
|
56
|
+
}
|
|
57
|
+
function h({ className: t, text: a = "Next", ...s }) {
|
|
58
|
+
return /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ c(i, { render: /* @__PURE__ */ l(p, {
|
|
59
|
+
"aria-label": "Go to next page",
|
|
60
|
+
size: "default",
|
|
61
|
+
className: e("pr-1.5!", t),
|
|
62
|
+
...s,
|
|
63
|
+
children: [/* @__PURE__ */ c("span", {
|
|
64
|
+
className: "hidden sm:block",
|
|
65
|
+
children: a
|
|
66
|
+
}), /* @__PURE__ */ c(o, { "data-icon": "inline-end" })]
|
|
67
|
+
}) }), /* @__PURE__ */ c(r, { children: "Próximo" })] });
|
|
68
|
+
}
|
|
69
|
+
function g({ className: t, ...n }) {
|
|
70
|
+
return /* @__PURE__ */ l("span", {
|
|
71
|
+
"aria-hidden": !0,
|
|
72
|
+
"data-slot": "pagination-ellipsis",
|
|
73
|
+
className: e("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4", t),
|
|
74
|
+
...n,
|
|
75
|
+
children: [/* @__PURE__ */ c(s, {}), /* @__PURE__ */ c("span", {
|
|
76
|
+
className: "sr-only",
|
|
77
|
+
children: "More pages"
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
61
81
|
//#endregion
|
|
62
|
-
export {
|
|
82
|
+
export { u as Pagination, d as PaginationContent, g as PaginationEllipsis, f as PaginationItem, p as PaginationLink, h as PaginationNext, m as PaginationPrevious };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
4
|
+
import "react";
|
|
5
|
+
import { Popover as n } from "@base-ui/react/popover";
|
|
6
6
|
//#region src/components/ui/popover.tsx
|
|
7
7
|
function r({ ...e }) {
|
|
8
8
|
return /* @__PURE__ */ t(n.Root, {
|
|
@@ -10,27 +10,46 @@ function r({ ...e }) {
|
|
|
10
10
|
...e
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function i({
|
|
13
|
+
function i({ ...e }) {
|
|
14
14
|
return /* @__PURE__ */ t(n.Trigger, {
|
|
15
15
|
"data-slot": "popover-trigger",
|
|
16
|
-
|
|
17
|
-
...i
|
|
16
|
+
...e
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
function a({ className: r, align: i = "center",
|
|
21
|
-
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.
|
|
22
|
-
"data-slot": "popover-content",
|
|
19
|
+
function a({ className: r, align: i = "center", alignOffset: a = 0, side: o = "bottom", sideOffset: s = 4, ...c }) {
|
|
20
|
+
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.Positioner, {
|
|
23
21
|
align: i,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
alignOffset: a,
|
|
23
|
+
side: o,
|
|
24
|
+
sideOffset: s,
|
|
25
|
+
className: "isolate z-50",
|
|
26
|
+
children: /* @__PURE__ */ t(n.Popup, {
|
|
27
|
+
"data-slot": "popover-content",
|
|
28
|
+
className: e("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", r),
|
|
29
|
+
...c
|
|
30
|
+
})
|
|
27
31
|
}) });
|
|
28
32
|
}
|
|
29
|
-
function o({ ...
|
|
30
|
-
return /* @__PURE__ */ t(
|
|
31
|
-
"data-slot": "popover-
|
|
32
|
-
|
|
33
|
+
function o({ className: n, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ t("div", {
|
|
35
|
+
"data-slot": "popover-header",
|
|
36
|
+
className: e("flex flex-col gap-0.5 text-sm", n),
|
|
37
|
+
...r
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function s({ className: r, ...i }) {
|
|
41
|
+
return /* @__PURE__ */ t(n.Title, {
|
|
42
|
+
"data-slot": "popover-title",
|
|
43
|
+
className: e("font-medium", r),
|
|
44
|
+
...i
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function c({ className: r, ...i }) {
|
|
48
|
+
return /* @__PURE__ */ t(n.Description, {
|
|
49
|
+
"data-slot": "popover-description",
|
|
50
|
+
className: e("text-muted-foreground", r),
|
|
51
|
+
...i
|
|
33
52
|
});
|
|
34
53
|
}
|
|
35
54
|
//#endregion
|
|
36
|
-
export { r as Popover, o as
|
|
55
|
+
export { r as Popover, a as PopoverContent, c as PopoverDescription, o as PopoverHeader, s as PopoverTitle, i as PopoverTrigger };
|
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import {
|
|
5
|
-
import * as n from "@radix-ui/react-progress";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { Progress as r } from "@base-ui/react/progress";
|
|
6
5
|
//#region src/components/ui/progress.tsx
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
6
|
+
function i({ className: i, children: s, value: c, ...l }) {
|
|
7
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
8
|
+
value: c,
|
|
9
9
|
"data-slot": "progress",
|
|
10
|
-
className: e("
|
|
11
|
-
...
|
|
12
|
-
children: /* @__PURE__ */ t(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
className: e("flex flex-wrap gap-3", i),
|
|
11
|
+
...l,
|
|
12
|
+
children: [s, /* @__PURE__ */ t(a, { children: /* @__PURE__ */ t(o, {}) })]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function a({ className: n, ...i }) {
|
|
16
|
+
return /* @__PURE__ */ t(r.Track, {
|
|
17
|
+
className: e("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", n),
|
|
18
|
+
"data-slot": "progress-track",
|
|
19
|
+
...i
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function o({ className: n, ...i }) {
|
|
23
|
+
return /* @__PURE__ */ t(r.Indicator, {
|
|
24
|
+
"data-slot": "progress-indicator",
|
|
25
|
+
className: e("h-full bg-primary transition-all", n),
|
|
26
|
+
...i
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function s({ className: n, ...i }) {
|
|
30
|
+
return /* @__PURE__ */ t(r.Label, {
|
|
31
|
+
className: e("text-sm font-medium", n),
|
|
32
|
+
"data-slot": "progress-label",
|
|
33
|
+
...i
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function c({ className: n, ...i }) {
|
|
37
|
+
return /* @__PURE__ */ t(r.Value, {
|
|
38
|
+
className: e("ml-auto text-sm text-muted-foreground tabular-nums", n),
|
|
39
|
+
"data-slot": "progress-value",
|
|
40
|
+
...i
|
|
17
41
|
});
|
|
18
42
|
}
|
|
19
43
|
//#endregion
|
|
20
|
-
export {
|
|
44
|
+
export { i as Progress, o as ProgressIndicator, s as ProgressLabel, a as ProgressTrack, c as ProgressValue };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroup as r } from "radix-ui";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { Radio as n } from "@base-ui/react/radio";
|
|
5
|
+
import { RadioGroup as r } from "@base-ui/react/radio-group";
|
|
6
6
|
//#region src/components/ui/radio-group.tsx
|
|
7
|
-
function i({ className:
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function i({ className: n, ...i }) {
|
|
8
|
+
return /* @__PURE__ */ t(r, {
|
|
9
9
|
"data-slot": "radio-group",
|
|
10
|
-
className: e("grid gap-
|
|
10
|
+
className: e("grid w-full gap-2", n),
|
|
11
11
|
...i
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function a({ className:
|
|
15
|
-
return /* @__PURE__ */ n
|
|
14
|
+
function a({ className: r, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
16
16
|
"data-slot": "radio-group-item",
|
|
17
|
-
className: e("aspect-square size-4 shrink-0 rounded-full border border-input
|
|
18
|
-
...
|
|
19
|
-
children: /* @__PURE__ */ n
|
|
17
|
+
className: e("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary cursor-pointer cursor-pointer", r),
|
|
18
|
+
...i,
|
|
19
|
+
children: /* @__PURE__ */ t(n.Indicator, {
|
|
20
20
|
"data-slot": "radio-group-indicator",
|
|
21
|
-
className: "
|
|
22
|
-
children: /* @__PURE__ */
|
|
21
|
+
className: "flex size-4 items-center justify-center",
|
|
22
|
+
children: /* @__PURE__ */ t("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import * as r from "react-resizable-panels";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import * as n from "react-resizable-panels";
|
|
6
5
|
//#region src/components/ui/resizable.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
function r({ className: r, ...i }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Group, {
|
|
8
|
+
"data-slot": "resizable-panel-group",
|
|
9
|
+
className: e("flex h-full w-full aria-[orientation=vertical]:flex-col", r),
|
|
10
|
+
...i
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function i({ ...e }) {
|
|
14
|
+
return /* @__PURE__ */ t(n.Panel, {
|
|
15
|
+
"data-slot": "resizable-panel",
|
|
16
|
+
...e
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function a({ withHandle: r, className: i, ...a }) {
|
|
20
|
+
return /* @__PURE__ */ t(n.Separator, {
|
|
21
|
+
"data-slot": "resizable-handle",
|
|
22
|
+
className: e("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", i),
|
|
23
|
+
...a,
|
|
24
|
+
children: r && /* @__PURE__ */ t("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })
|
|
25
|
+
});
|
|
26
|
+
}
|
|
18
27
|
//#endregion
|
|
19
|
-
export {
|
|
28
|
+
export { a as ResizableHandle, i as ResizablePanel, r as ResizablePanelGroup };
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { ScrollArea as r } from "@base-ui/react/scroll-area";
|
|
5
5
|
//#region src/components/ui/scroll-area.tsx
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ n(
|
|
6
|
+
function i({ className: i, children: o, ...s }) {
|
|
7
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
8
8
|
"data-slot": "scroll-area",
|
|
9
|
-
className: e("relative
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
className: e("relative", i),
|
|
10
|
+
...s,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t(r.Viewport, {
|
|
13
|
+
"data-slot": "scroll-area-viewport",
|
|
14
|
+
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
15
|
+
children: o
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ t(a, {}),
|
|
18
|
+
/* @__PURE__ */ t(r.Corner, {})
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function a({ className: n, orientation: i = "vertical", ...a }) {
|
|
23
|
+
return /* @__PURE__ */ t(r.Scrollbar, {
|
|
24
|
+
"data-slot": "scroll-area-scrollbar",
|
|
25
|
+
"data-orientation": i,
|
|
26
|
+
orientation: i,
|
|
27
|
+
className: e("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", n),
|
|
28
|
+
...a,
|
|
29
|
+
children: /* @__PURE__ */ t(r.Thumb, {
|
|
30
|
+
"data-slot": "scroll-area-thumb",
|
|
31
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
14
32
|
})
|
|
15
33
|
});
|
|
16
|
-
}
|
|
34
|
+
}
|
|
17
35
|
//#endregion
|
|
18
|
-
export {
|
|
36
|
+
export { i as ScrollArea, a as ScrollBar };
|