@gv-tech/design-system 2.29.0 → 2.29.2
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 +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.mjs +12 -13
- package/dist/accordion.mjs.map +1 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.cjs.map +1 -1
- package/dist/alert-dialog.mjs +16 -17
- package/dist/alert-dialog.mjs.map +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.cjs.map +1 -1
- package/dist/alert.mjs +4 -5
- package/dist/alert.mjs.map +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.cjs.map +1 -1
- package/dist/aspect-ratio.mjs +2 -3
- package/dist/aspect-ratio.mjs.map +1 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.cjs.map +1 -1
- package/dist/attachment.mjs +6 -6
- package/dist/attachment.mjs.map +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.mjs +3 -4
- package/dist/avatar.mjs.map +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.cjs.map +1 -1
- package/dist/badge.mjs +6 -6
- package/dist/badge.mjs.map +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.mjs +4 -6
- package/dist/breadcrumb.mjs.map +1 -1
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.cjs.map +1 -1
- package/dist/bubble.mjs +7 -7
- package/dist/bubble.mjs.map +1 -1
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.cjs.map +1 -1
- package/dist/button-group.mjs +5 -6
- package/dist/button-group.mjs.map +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.cjs.map +1 -1
- package/dist/button.mjs +6 -6
- package/dist/button.mjs.map +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.cjs.map +1 -1
- package/dist/calendar.mjs +9 -10
- package/dist/calendar.mjs.map +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.cjs.map +1 -1
- package/dist/card.mjs +2 -3
- package/dist/card.mjs.map +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.cjs.map +1 -1
- package/dist/carousel.mjs +5 -8
- package/dist/carousel.mjs.map +1 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.cjs.map +1 -1
- package/dist/chart.mjs +14 -15
- package/dist/chart.mjs.map +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.mjs +2 -3
- package/dist/checkbox.mjs.map +1 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.cjs.map +1 -1
- package/dist/collapsible.mjs +5 -6
- package/dist/collapsible.mjs.map +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.cjs.map +1 -1
- package/dist/combobox.mjs +2 -3
- package/dist/combobox.mjs.map +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.cjs.map +1 -1
- package/dist/command.mjs +2 -3
- package/dist/command.mjs.map +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.cjs.map +1 -1
- package/dist/context-menu.mjs +24 -25
- package/dist/context-menu.mjs.map +1 -1
- package/dist/design-system.css +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.mjs +2 -3
- package/dist/dialog.mjs.map +1 -1
- package/dist/direction.cjs +1 -1
- package/dist/direction.cjs.map +1 -1
- package/dist/direction.mjs +2 -3
- package/dist/direction.mjs.map +1 -1
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.cjs.map +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/drawer.mjs.map +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.mjs +24 -25
- package/dist/dropdown-menu.mjs.map +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.cjs.map +1 -1
- package/dist/empty.mjs +3 -4
- package/dist/empty.mjs.map +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.cjs.map +1 -1
- package/dist/field.mjs +4 -6
- package/dist/field.mjs.map +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.cjs.map +1 -1
- package/dist/form.mjs +11 -12
- package/dist/form.mjs.map +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.cjs.map +1 -1
- package/dist/hover-card.mjs +7 -8
- package/dist/hover-card.mjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +260 -74
- package/dist/index.mjs.map +1 -0
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.cjs.map +1 -1
- package/dist/input-group.mjs +5 -11
- package/dist/input-group.mjs.map +1 -1
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.cjs.map +1 -1
- package/dist/input-otp.mjs +3 -4
- package/dist/input-otp.mjs.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.cjs.map +1 -1
- package/dist/input.mjs +2 -3
- package/dist/input.mjs.map +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.cjs.map +1 -1
- package/dist/item.mjs +7 -8
- package/dist/item.mjs.map +1 -1
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.cjs.map +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/kbd.mjs.map +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.mjs +2 -3
- package/dist/label.mjs.map +1 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.cjs.map +1 -1
- package/dist/marker.mjs +7 -7
- package/dist/marker.mjs.map +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.cjs.map +1 -1
- package/dist/menubar.mjs +21 -22
- package/dist/menubar.mjs.map +1 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.cjs.map +1 -1
- package/dist/message-scroller.mjs +2 -3
- package/dist/message-scroller.mjs.map +1 -1
- package/dist/message.cjs +1 -1
- package/dist/message.cjs.map +1 -1
- package/dist/message.mjs +2 -3
- package/dist/message.mjs.map +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.cjs.map +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/native-select.mjs.map +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.mjs +9 -10
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/packages/design-tokens/src/index.d.ts +75 -69
- package/dist/packages/design-tokens/src/palette.d.ts +23 -17
- package/dist/packages/design-tokens/src/preset.d.ts +6 -0
- package/dist/packages/design-tokens/src/theme.d.ts +52 -52
- package/dist/packages/ui-core/src/contracts/scroll-to-top.d.ts +1 -2
- package/dist/packages/ui-core/src/contracts/table-of-contents.d.ts +5 -18
- package/dist/packages/ui-web/src/__contracts.d.ts +0 -1
- package/dist/packages/ui-web/src/accordion.d.ts +1 -1
- package/dist/packages/ui-web/src/alert-dialog.d.ts +1 -1
- package/dist/packages/ui-web/src/alert.d.ts +1 -1
- package/dist/packages/ui-web/src/aspect-ratio.d.ts +2 -2
- package/dist/packages/ui-web/src/attachment.d.ts +1 -1
- package/dist/packages/ui-web/src/avatar.d.ts +1 -1
- package/dist/packages/ui-web/src/badge.d.ts +1 -1
- package/dist/packages/ui-web/src/bubble.d.ts +1 -1
- package/dist/packages/ui-web/src/button-group.d.ts +3 -3
- package/dist/packages/ui-web/src/button.d.ts +1 -1
- package/dist/packages/ui-web/src/calendar.d.ts +1 -1
- package/dist/packages/ui-web/src/carousel.d.ts +3 -3
- package/dist/packages/ui-web/src/checkbox.d.ts +1 -1
- package/dist/packages/ui-web/src/collapsible.d.ts +4 -4
- package/dist/packages/ui-web/src/command.d.ts +1 -1
- package/dist/packages/ui-web/src/context-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/dialog.d.ts +1 -1
- package/dist/packages/ui-web/src/direction.d.ts +1 -1
- package/dist/packages/ui-web/src/drawer.d.ts +1 -1
- package/dist/packages/ui-web/src/dropdown-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/empty.d.ts +7 -7
- package/dist/packages/ui-web/src/field.d.ts +11 -11
- package/dist/packages/ui-web/src/form.d.ts +3 -3
- package/dist/packages/ui-web/src/hooks/use-theme.d.ts +52 -52
- package/dist/packages/ui-web/src/hover-card.d.ts +1 -1
- package/dist/packages/ui-web/src/input-group.d.ts +3 -3
- package/dist/packages/ui-web/src/input-otp.d.ts +1 -1
- package/dist/packages/ui-web/src/item.d.ts +2 -2
- package/dist/packages/ui-web/src/kbd.d.ts +2 -2
- package/dist/packages/ui-web/src/label.d.ts +1 -1
- package/dist/packages/ui-web/src/marker.d.ts +1 -1
- package/dist/packages/ui-web/src/menubar.d.ts +1 -1
- package/dist/packages/ui-web/src/message-scroller.d.ts +1 -1
- package/dist/packages/ui-web/src/navigation-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/pagination.d.ts +2 -2
- package/dist/packages/ui-web/src/popover.d.ts +1 -1
- package/dist/packages/ui-web/src/progress.d.ts +1 -1
- package/dist/packages/ui-web/src/questionnaire.d.ts +1 -1
- package/dist/packages/ui-web/src/resizable.d.ts +3 -3
- package/dist/packages/ui-web/src/scroll-area.d.ts +1 -1
- package/dist/packages/ui-web/src/select.d.ts +1 -1
- package/dist/packages/ui-web/src/separator.d.ts +1 -1
- package/dist/packages/ui-web/src/sheet.d.ts +1 -1
- package/dist/packages/ui-web/src/sidebar.d.ts +1 -1
- package/dist/packages/ui-web/src/skeleton.d.ts +1 -1
- package/dist/packages/ui-web/src/slider.d.ts +1 -1
- package/dist/packages/ui-web/src/sonner.d.ts +1 -1
- package/dist/packages/ui-web/src/spinner.d.ts +2 -1
- package/dist/packages/ui-web/src/switch.d.ts +1 -1
- package/dist/packages/ui-web/src/table-of-contents.d.ts +5 -10
- package/dist/packages/ui-web/src/tabs.d.ts +1 -1
- package/dist/packages/ui-web/src/text.d.ts +1 -1
- package/dist/packages/ui-web/src/theme-provider.d.ts +1 -1
- package/dist/packages/ui-web/src/theme-toggle.d.ts +1 -1
- package/dist/packages/ui-web/src/toast.d.ts +1 -1
- package/dist/packages/ui-web/src/toaster.d.ts +1 -1
- package/dist/packages/ui-web/src/toggle-group.d.ts +1 -1
- package/dist/packages/ui-web/src/toggle.d.ts +1 -1
- package/dist/packages/ui-web/src/tooltip.d.ts +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.cjs.map +1 -1
- package/dist/pagination.mjs +5 -5
- package/dist/pagination.mjs.map +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.mjs +8 -9
- package/dist/popover.mjs.map +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.mjs +4 -5
- package/dist/progress.mjs.map +1 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.cjs.map +1 -1
- package/dist/questionnaire.mjs +2 -3
- package/dist/questionnaire.mjs.map +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.mjs +2 -3
- package/dist/radio-group.mjs.map +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.cjs.map +1 -1
- package/dist/resizable.mjs +2 -3
- package/dist/resizable.mjs.map +1 -1
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.cjs.map +1 -1
- package/dist/scroll-area.mjs +4 -5
- package/dist/scroll-area.mjs.map +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.cjs.map +1 -1
- package/dist/scroll-to-top.mjs +14 -17
- package/dist/scroll-to-top.mjs.map +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.cjs.map +1 -1
- package/dist/search.mjs +14 -15
- package/dist/search.mjs.map +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.mjs +2 -3
- package/dist/select.mjs.map +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.mjs +2 -3
- package/dist/separator.mjs.map +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.mjs +2 -3
- package/dist/sheet.mjs.map +1 -1
- package/dist/{sidebar-C5ukZKYH.mjs → sidebar-BY-0Gann.mjs} +17 -15
- package/dist/sidebar-BY-0Gann.mjs.map +1 -0
- package/dist/sidebar-BwaRpzdR.js +2 -0
- package/dist/sidebar-BwaRpzdR.js.map +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +1 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/skeleton.mjs.map +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.mjs +2 -3
- package/dist/slider.mjs.map +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.cjs.map +1 -1
- package/dist/sonner.mjs +2 -3
- package/dist/sonner.mjs.map +1 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.cjs.map +1 -1
- package/dist/spinner.mjs +10 -7
- package/dist/spinner.mjs.map +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.cjs.map +1 -1
- package/dist/support-fab.mjs +22 -23
- package/dist/support-fab.mjs.map +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.mjs +2 -3
- package/dist/switch.mjs.map +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.cjs.map +1 -1
- package/dist/table-of-contents.mjs +29 -29
- package/dist/table-of-contents.mjs.map +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.cjs.map +1 -1
- package/dist/table.mjs +2 -3
- package/dist/table.mjs.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.mjs +8 -9
- package/dist/tabs.mjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.cjs.map +1 -1
- package/dist/text.mjs +18 -16
- package/dist/text.mjs.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/textarea.mjs.map +1 -1
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.cjs.map +1 -1
- package/dist/theme-provider.mjs +2 -3
- package/dist/theme-provider.mjs.map +1 -1
- package/dist/theme-toggle-B7jIk1EJ.mjs +173 -0
- package/dist/theme-toggle-B7jIk1EJ.mjs.map +1 -0
- package/dist/theme-toggle-CsR6DVEV.js +2 -0
- package/dist/theme-toggle-CsR6DVEV.js.map +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.mjs +20 -21
- package/dist/toast.mjs.map +1 -1
- package/dist/{toaster-CfNd-vsx.mjs → toaster-Cr-qFHE_.mjs} +15 -17
- package/dist/toaster-Cr-qFHE_.mjs.map +1 -0
- package/dist/{toaster-D9OZF7hL.js → toaster-CsRfPupI.js} +2 -2
- package/dist/toaster-CsRfPupI.js.map +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.mjs +2 -3
- package/dist/toggle-group.mjs.map +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.cjs.map +1 -1
- package/dist/toggle.mjs +4 -5
- package/dist/toggle.mjs.map +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.mjs +7 -8
- package/dist/tooltip.mjs.map +1 -1
- package/dist/{utils-CnOgTvBJ.js → utils-BKlmn6yB.js} +2 -2
- package/dist/{utils-CnOgTvBJ.js.map → utils-BKlmn6yB.js.map} +1 -1
- package/dist/{utils-BtHTUEvP.mjs → utils-MPB0bG0d.mjs} +3 -4
- package/dist/utils-MPB0bG0d.mjs.map +1 -0
- package/dist/vendor-Ceu--gxM.js +113 -0
- package/dist/vendor-Ceu--gxM.js.map +1 -0
- package/dist/{vendor-D9rWr_E8.mjs → vendor-PEVwmg1D.mjs} +15976 -15161
- package/dist/vendor-PEVwmg1D.mjs.map +1 -0
- package/package.json +77 -85
- package/dist/rolldown-runtime-CWhphoD1.mjs +0 -23
- package/dist/rolldown-runtime-mLOUI7ql.js +0 -1
- package/dist/sidebar-C5ukZKYH.mjs.map +0 -1
- package/dist/sidebar-DyP2Q-Ru.js +0 -2
- package/dist/sidebar-DyP2Q-Ru.js.map +0 -1
- package/dist/theme-toggle-BGVdrh4J.mjs +0 -337
- package/dist/theme-toggle-BGVdrh4J.mjs.map +0 -1
- package/dist/theme-toggle-CMdzi7Y8.js +0 -2
- package/dist/theme-toggle-CMdzi7Y8.js.map +0 -1
- package/dist/toaster-CfNd-vsx.mjs.map +0 -1
- package/dist/toaster-D9OZF7hL.js.map +0 -1
- package/dist/utils-BtHTUEvP.mjs.map +0 -1
- package/dist/vendor-D9rWr_E8.mjs.map +0 -1
- package/dist/vendor-i1KCLryV.js +0 -101
- package/dist/vendor-i1KCLryV.js.map +0 -1
package/dist/attachment.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, H as t, ei as n, jr as r } from "./vendor-
|
|
2
|
+
import { Ar as e, H as t, ei as n, jr as r } from "./vendor-PEVwmg1D.mjs";
|
|
3
3
|
import { Button as i } from "./button.mjs";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
6
|
-
var a = e(), o = t("group/attachment
|
|
5
|
+
// packages/ui-web/src/attachment.tsx
|
|
6
|
+
var a = e(), o = t("group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed", { variants: {
|
|
7
7
|
size: {
|
|
8
8
|
default: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
|
|
9
9
|
sm: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",
|
|
@@ -27,7 +27,7 @@ function s({ className: e, state: t = "done", size: r = "default", orientation:
|
|
|
27
27
|
...s
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
var c = t("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg
|
|
30
|
+
var c = t("bg-muted text-foreground group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", {
|
|
31
31
|
variants: { variant: {
|
|
32
32
|
icon: "",
|
|
33
33
|
image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
|
|
@@ -80,7 +80,8 @@ function m({ className: e, variant: t, size: r = "icon-xs", ...o }) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
function h({ className: e, asChild: t = !1, type: i, ...o }) {
|
|
83
|
-
|
|
83
|
+
let s = t ? r : "button";
|
|
84
|
+
return /* @__PURE__ */ (0, a.jsx)(s, {
|
|
84
85
|
"data-slot": "attachment-trigger",
|
|
85
86
|
type: t ? void 0 : i ?? "button",
|
|
86
87
|
className: n("absolute inset-0 z-10 outline-none", e),
|
|
@@ -94,7 +95,6 @@ function g({ className: e, ...t }) {
|
|
|
94
95
|
...t
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
//#endregion
|
|
98
98
|
export { s as Attachment, m as AttachmentAction, p as AttachmentActions, u as AttachmentContent, f as AttachmentDescription, g as AttachmentGroup, l as AttachmentMedia, d as AttachmentTitle, h as AttachmentTrigger };
|
|
99
99
|
|
|
100
100
|
//# sourceMappingURL=attachment.mjs.map
|
package/dist/attachment.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.mjs","names":[],"sources":["../packages/ui-web/src/attachment.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\
|
|
1
|
+
{"version":3,"file":"attachment.mjs","names":["Slot.Root","require_jsx_runtime","cva","cn","Slot","import_jsx_runtime","attachmentVariants","Attachment","props","state","size","orientation","className","attachmentMediaVariants","AttachmentMedia","variant","AttachmentContent","AttachmentTitle","AttachmentDescription","AttachmentActions","AttachmentAction","Button","AttachmentTrigger","Comp","asChild","type","AttachmentGroup"],"sources":["../packages/ui-web/src/attachment.tsx"],"sourcesContent":["import type {\n AttachmentActionBaseProps,\n AttachmentActionsBaseProps,\n AttachmentBaseProps,\n AttachmentContentBaseProps,\n AttachmentDescriptionBaseProps,\n AttachmentGroupBaseProps,\n AttachmentMediaBaseProps,\n AttachmentTitleBaseProps,\n AttachmentTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\nconst attachmentVariants = cva(\n 'group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed',\n {\n variants: {\n size: {\n default:\n 'gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2',\n sm: 'gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5',\n xs: 'gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1',\n },\n orientation: {\n horizontal: 'min-w-40 items-center',\n vertical: 'w-24 flex-col has-data-[slot=attachment-content]:w-30',\n },\n },\n },\n);\n\nfunction Attachment({\n className,\n state = 'done',\n size = 'default',\n orientation = 'horizontal',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & AttachmentBaseProps) {\n return (\n <div\n data-slot=\"attachment\"\n data-state={state}\n data-size={size}\n data-orientation={orientation}\n className={cn(attachmentVariants({ size, orientation }), className)}\n {...props}\n />\n );\n}\n\nconst attachmentMediaVariants = cva(\n \"bg-muted text-foreground group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5\",\n {\n variants: {\n variant: {\n icon: '',\n image:\n 'opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover',\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n },\n);\n\nfunction AttachmentMedia({\n className,\n variant = 'icon',\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants> & AttachmentMediaBaseProps) {\n return (\n <div\n data-slot=\"attachment-media\"\n data-variant={variant}\n className={cn(attachmentMediaVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AttachmentContent({ className, ...props }: React.ComponentProps<'div'> & AttachmentContentBaseProps) {\n return (\n <div\n data-slot=\"attachment-content\"\n className={cn(\n 'max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AttachmentTitle({ className, ...props }: React.ComponentProps<'span'> & AttachmentTitleBaseProps) {\n return (\n <span\n data-slot=\"attachment-title\"\n className={cn(\n 'group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0 truncate font-medium',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AttachmentDescription({ className, ...props }: React.ComponentProps<'span'> & AttachmentDescriptionBaseProps) {\n return (\n <span\n data-slot=\"attachment-description\"\n className={cn(\n 'text-muted-foreground group-data-[state=error]/attachment:text-destructive/80 mt-0.5 block min-w-0 truncate text-xs',\n 'max-w-full',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AttachmentActions({ className, ...props }: React.ComponentProps<'div'> & AttachmentActionsBaseProps) {\n return (\n <div\n data-slot=\"attachment-actions\"\n className={cn(\n 'relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AttachmentAction({\n className,\n variant,\n size = 'icon-xs',\n ...props\n}: React.ComponentProps<typeof Button> & AttachmentActionBaseProps) {\n return (\n <Button\n data-slot=\"attachment-action\"\n variant={variant ?? 'ghost'}\n size={size}\n className={cn(className)}\n {...props}\n />\n );\n}\n\nfunction AttachmentTrigger({\n className,\n asChild = false,\n type,\n ...props\n}: React.ComponentProps<'button'> & AttachmentTriggerBaseProps) {\n const Comp = asChild ? Slot.Root : 'button';\n\n return (\n <Comp\n data-slot=\"attachment-trigger\"\n type={asChild ? undefined : (type ?? 'button')}\n className={cn('absolute inset-0 z-10 outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction AttachmentGroup({ className, ...props }: React.ComponentProps<'div'> & AttachmentGroupBaseProps) {\n return (\n <div\n data-slot=\"attachment-group\"\n className={cn(\n 'scroll-fade-x flex min-w-0 snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentGroup,\n AttachmentMedia,\n AttachmentTitle,\n AttachmentTrigger,\n};\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyAttachmentContract =\n React.ComponentProps<typeof Attachment> extends AttachmentBaseProps ? true : false;\n"],"mappings":";;;;;A,aAkBMM,IAAqBJ,EACzB,ySACA,EACE,UAAU;CACR,MAAM;EACJ,SACE;EACF,IAAI;EACJ,IAAI;CACN;CACA,aAAa;EACX,YAAY;EACZ,UAAU;CACZ;AACF,EACF,CACF;AAEA,SAASK,EAAW,EAClB,cACA,WAAQ,QACR,UAAO,WACP,iBAAc,cACd,GAAGC,KAC2F;CAC9F,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,cAAYI;EACZ,aAAWC;EACX,oBAAkBC;EAClB,WAAWR,EAAGG,EAAmB;GAAE;GAAM;EAAY,CAAC,GAAGM,CAAS;EAClE,GAAIJ;CACL,CAAA;AAEL;AAEA,IAAMK,IAA0BX,EAC9B,orBACA;CACE,UAAU,EACR,SAAS;EACP,MAAM;EACN,OACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CACF;AAEA,SAASY,EAAgB,EACvB,cACA,aAAU,QACV,GAAGN,KACqG;CACxG,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,gBAAcU;EACd,WAAWZ,EAAGU,EAAwB,EAAE,WAAQ,CAAC,GAAGD,CAAS;EAC7D,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASQ,EAAkB,EAAE,cAAW,GAAGR,KAAmE;CAC5G,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWF,EACT,6FACAS,CACF;EACA,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASS,EAAgB,EAAE,cAAW,GAAGT,KAAkE;CACzG,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,QAAD;EACE,aAAU;EACV,WAAWF,EACT,kJACAS,CACF;EACA,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASU,EAAsB,EAAE,cAAW,GAAGV,KAAwE;CACrH,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,QAAD;EACE,aAAU;EACV,WAAWF,EACT,uHACA,cACAS,CACF;EACA,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASW,EAAkB,EAAE,cAAW,GAAGX,KAAmE;CAC5G,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWF,EACT,2PACAS,CACF;EACA,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASY,EAAiB,EACxB,cACA,YACA,UAAO,WACP,GAAGZ,KAC+D;CAClE,OACE,iBAAA,GAAAH,EAAA,IAAA,CAACgB,GAAD;EACE,aAAU;EACV,SAASN,KAAW;EACd;EACN,WAAWZ,EAAGS,CAAS;EACvB,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASc,EAAkB,EACzB,cACA,aAAU,IACV,SACA,GAAGd,KAC2D;CAC9D,IAAMe,IAAOC,IAAUxB,IAAY;CAEnC,OACE,iBAAA,GAAAK,EAAA,IAAA,CAACkB,GAAD;EACE,aAAU;EACV,MAAMC,IAAU,KAAA,IAAaC,KAAQ;EACrC,WAAWtB,EAAG,sCAAsCS,CAAS;EAC7D,GAAIJ;CACL,CAAA;AAEL;AAEA,SAASkB,EAAgB,EAAE,cAAW,GAAGlB,KAAiE;CACxG,OACE,iBAAA,GAAAH,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWF,EACT,sMACAS,CACF;EACA,GAAIJ;CACL,CAAA;AAEL"}
|
package/dist/avatar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./utils-BKlmn6yB.js");let r=require("react");r=e.r(r);var i=t.Ar();function a({className:e,size:r=`default`,...a}){return(0,i.jsx)(t.$n,{"data-slot":`avatar`,"data-size":r,className:n.t(`group/avatar after:border-border relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,e),...a})}function o({className:e,...r}){return(0,i.jsx)(t.tr,{"data-slot":`avatar-image`,className:n.t(`aspect-square size-full rounded-full object-cover`,e),...r})}function s({className:e,...r}){return(0,i.jsx)(t.er,{"data-slot":`avatar-fallback`,className:n.t(`bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs`,e),...r})}function c({className:e,...t}){return(0,i.jsx)(`span`,{"data-slot":`avatar-badge`,className:n.t(`bg-primary text-primary-foreground ring-background absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none`,`group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden`,`group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2`,`group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2`,e),...t})}function l({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`avatar-group`,className:n.t(`group/avatar-group *:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2`,e),...t})}function u({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`avatar-group-count`,className:n.t(`bg-muted text-muted-foreground ring-background relative flex size-8 shrink-0 items-center justify-center rounded-full text-sm ring-2 group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3`,e),...t})}exports.Avatar=a,exports.AvatarBadge=c,exports.AvatarFallback=s,exports.AvatarGroup=l,exports.AvatarGroupCount=u,exports.AvatarImage=o;
|
|
2
2
|
//# sourceMappingURL=avatar.cjs.map
|
package/dist/avatar.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.cjs","names":[],"sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["import { Avatar as AvatarPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\
|
|
1
|
+
{"version":3,"file":"avatar.cjs","names":["cn","require_rolldown_runtime","require_vendor","require_utils","react","import_jsx_runtime","Avatar","props","size","className","AvatarImage","AvatarFallback","AvatarBadge","AvatarGroup","AvatarGroupCount"],"sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["import type { AvatarBaseProps } from '@gv-tech/ui-core';\nimport { Avatar as AvatarPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nfunction Avatar({\n className,\n size = 'default',\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root> & {\n size?: 'default' | 'sm' | 'lg';\n}) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n data-size={size}\n className={cn(\n 'group/avatar after:border-border relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn('aspect-square size-full rounded-full object-cover', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n 'bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"avatar-badge\"\n className={cn(\n 'bg-primary text-primary-foreground ring-background absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none',\n 'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden',\n 'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2',\n 'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"avatar-group\"\n className={cn(\n 'group/avatar-group *:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroupCount({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"avatar-group-count\"\n className={cn(\n 'bg-muted text-muted-foreground ring-background relative flex size-8 shrink-0 items-center justify-center rounded-full text-sm ring-2 group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyAvatarContract = React.ComponentProps<typeof Avatar> extends AvatarBaseProps ? true : false;\n"],"mappings":"A,kPAMA,SAASM,EAAO,CACd,YACA,OAAO,UACP,GAAGC,GAGF,CACD,OACE,EAAAF,EAAA,IAAA,CAAAH,EAAA,GAAA,CACE,YAAU,SACV,YAAWM,EACX,UAAWR,EAAAA,EACT,wPACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,CAEA,SAASG,EAAY,CAAE,YAAW,GAAGH,GAA6D,CAChG,OACE,EAAAF,EAAA,IAAA,CAAAH,EAAA,GAAA,CACE,YAAU,eACV,UAAWF,EAAAA,EAAG,oDAAqDS,CAAS,EAC5E,GAAIF,CACL,CAAA,CAEL,CAEA,SAASI,EAAe,CAAE,YAAW,GAAGJ,GAAgE,CACtG,OACE,EAAAF,EAAA,IAAA,CAAAH,EAAA,GAAA,CACE,YAAU,kBACV,UAAWF,EAAAA,EACT,qIACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,CAEA,SAASK,EAAY,CAAE,YAAW,GAAGL,GAAuC,CAC1E,OACE,EAAAF,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,eACV,UAAWL,EAAAA,EACT,yKACA,gFACA,4FACA,gFACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,CAEA,SAASM,EAAY,CAAE,YAAW,GAAGN,GAAsC,CACzE,OACE,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,eACV,UAAWL,EAAAA,EACT,sGACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,CAEA,SAASO,EAAiB,CAAE,YAAW,GAAGP,GAAsC,CAC9E,OACE,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,qBACV,UAAWL,EAAAA,EACT,2VACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,C"}
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $n as e, Ar as t, er as n, tr as r } from "./vendor-
|
|
3
|
-
import { t as i } from "./utils-
|
|
2
|
+
import { $n as e, Ar as t, er as n, tr as r } from "./vendor-PEVwmg1D.mjs";
|
|
3
|
+
import { t as i } from "./utils-MPB0bG0d.mjs";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
5
|
+
// packages/ui-web/src/avatar.tsx
|
|
6
6
|
var a = t();
|
|
7
7
|
function o({ className: t, size: n = "default", ...r }) {
|
|
8
8
|
return /* @__PURE__ */ (0, a.jsx)(e, {
|
|
@@ -47,7 +47,6 @@ function d({ className: e, ...t }) {
|
|
|
47
47
|
...t
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { o as Avatar, l as AvatarBadge, c as AvatarFallback, u as AvatarGroup, d as AvatarGroupCount, s as AvatarImage };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=avatar.mjs.map
|
package/dist/avatar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.mjs","names":[],"sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["import { Avatar as AvatarPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\
|
|
1
|
+
{"version":3,"file":"avatar.mjs","names":["AvatarPrimitive.Root","AvatarPrimitive.Image","AvatarPrimitive.Fallback","Avatar$1","require_jsx_runtime","AvatarFallback$1","AvatarImage$1","cn","import_jsx_runtime","Avatar","props","size","className","AvatarImage","AvatarFallback","AvatarBadge","AvatarGroup","AvatarGroupCount"],"sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["import type { AvatarBaseProps } from '@gv-tech/ui-core';\nimport { Avatar as AvatarPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nfunction Avatar({\n className,\n size = 'default',\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root> & {\n size?: 'default' | 'sm' | 'lg';\n}) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n data-size={size}\n className={cn(\n 'group/avatar after:border-border relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn('aspect-square size-full rounded-full object-cover', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n 'bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"avatar-badge\"\n className={cn(\n 'bg-primary text-primary-foreground ring-background absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none',\n 'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden',\n 'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2',\n 'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"avatar-group\"\n className={cn(\n 'group/avatar-group *:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarGroupCount({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"avatar-group-count\"\n className={cn(\n 'bg-muted text-muted-foreground ring-background relative flex size-8 shrink-0 items-center justify-center rounded-full text-sm ring-2 group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyAvatarContract = React.ComponentProps<typeof Avatar> extends AvatarBaseProps ? true : false;\n"],"mappings":";;;;;;AAMA,SAASS,EAAO,EACd,cACA,UAAO,WACP,GAAGC,KAGF;CACD,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;EACE,aAAU;EACV,aAAWW;EACX,WAAWJ,EACT,yPACAK,CACF;EACA,GAAIF;CACL,CAAA;AAEL;AAEA,SAASG,EAAY,EAAE,cAAW,GAAGH,KAA6D;CAChG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACP,GAAD;EACE,aAAU;EACV,WAAWM,EAAG,qDAAqDK,CAAS;EAC5E,GAAIF;CACL,CAAA;AAEL;AAEA,SAASI,EAAe,EAAE,cAAW,GAAGJ,KAAgE;CACtG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD;EACE,aAAU;EACV,WAAWK,EACT,sIACAK,CACF;EACA,GAAIF;CACL,CAAA;AAEL;AAEA,SAASK,EAAY,EAAE,cAAW,GAAGL,KAAuC;CAC1E,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,QAAD;EACE,aAAU;EACV,WAAWD,EACT,0KACA,iFACA,6FACA,iFACAK,CACF;EACA,GAAIF;CACL,CAAA;AAEL;AAEA,SAASM,EAAY,EAAE,cAAW,GAAGN,KAAsC;CACzE,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWD,EACT,uGACAK,CACF;EACA,GAAIF;CACL,CAAA;AAEL;AAEA,SAASO,EAAiB,EAAE,cAAW,GAAGP,KAAsC;CAC9E,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWD,EACT,4VACAK,CACF;EACA,GAAIF;CACL,CAAA;AAEL"}
|
package/dist/badge.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./utils-BKlmn6yB.js");let r=require("react");r=e.r(r);var i=t.Ar(),a=t.H(`group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function o({className:e,variant:r=`default`,asChild:o=!1,...s}){let c=o?t.jr:`span`;return(0,i.jsx)(c,{"data-slot":`badge`,"data-variant":r,className:n.t(a({variant:r}),e),...s})}exports.Badge=o,exports.badgeVariants=a;
|
|
2
2
|
//# sourceMappingURL=badge.cjs.map
|
package/dist/badge.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.cjs","names":[],"sources":["../packages/ui-web/src/badge.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\
|
|
1
|
+
{"version":3,"file":"badge.cjs","names":["cva","cn","require_rolldown_runtime","require_vendor","require_utils","react","import_jsx_runtime","badgeVariants","Badge","props","Comp","asChild","variant","className"],"sources":["../packages/ui-web/src/badge.tsx"],"sourcesContent":["import type { BadgeBaseProps } from '@gv-tech/ui-core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst badgeVariants = cva(\n 'group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',\n secondary: 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',\n destructive:\n 'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',\n outline: 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',\n ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Badge({\n className,\n variant = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : 'span';\n\n return (\n <Comp data-slot=\"badge\" data-variant={variant} className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyBadgeContract = React.ComponentProps<typeof Badge> extends BadgeBaseProps ? true : false;\n"],"mappings":"A,kPAOMO,EAAgBP,EAAAA,EACpB,6eACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,6DACT,UAAW,mEACX,YACE,iKACF,QAAS,mFACT,MAAO,oEACP,KAAM,iDACR,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASQ,EAAM,CACb,YACA,UAAU,UACV,UAAU,GACV,GAAGC,GACyF,CAC5F,IAAMC,EAAOC,EAAAR,EAAA,GAAsB,OAEnC,OACE,EAAAG,EAAA,IAAA,CAACI,EAAD,CAAM,YAAU,QAAQ,eAAcE,EAAS,UAAWX,EAAAA,EAAGM,EAAc,CAAE,SAAQ,CAAC,EAAGM,CAAS,EAAG,GAAIJ,CAAQ,CAAA,CAErH,C"}
|
package/dist/badge.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, H as t, jr as n } from "./vendor-
|
|
3
|
-
import { t as r } from "./utils-
|
|
2
|
+
import { Ar as e, H as t, jr as n } from "./vendor-PEVwmg1D.mjs";
|
|
3
|
+
import { t as r } from "./utils-MPB0bG0d.mjs";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
6
|
-
var i = e(), a = t("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:
|
|
5
|
+
// packages/ui-web/src/badge.tsx
|
|
6
|
+
var i = e(), a = t("group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
9
9
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -15,14 +15,14 @@ var i = e(), a = t("group/badge inline-flex h-5 w-fit shrink-0 items-center just
|
|
|
15
15
|
defaultVariants: { variant: "default" }
|
|
16
16
|
});
|
|
17
17
|
function o({ className: e, variant: t = "default", asChild: o = !1, ...s }) {
|
|
18
|
-
|
|
18
|
+
let c = o ? n : "span";
|
|
19
|
+
return /* @__PURE__ */ (0, i.jsx)(c, {
|
|
19
20
|
"data-slot": "badge",
|
|
20
21
|
"data-variant": t,
|
|
21
22
|
className: r(a({ variant: t }), e),
|
|
22
23
|
...s
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
|
-
//#endregion
|
|
26
26
|
export { o as Badge, a as badgeVariants };
|
|
27
27
|
|
|
28
28
|
//# sourceMappingURL=badge.mjs.map
|
package/dist/badge.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.mjs","names":[],"sources":["../packages/ui-web/src/badge.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\
|
|
1
|
+
{"version":3,"file":"badge.mjs","names":["Slot.Root","require_jsx_runtime","cva","Slot","cn","import_jsx_runtime","badgeVariants","Badge","props","Comp","asChild","variant","className"],"sources":["../packages/ui-web/src/badge.tsx"],"sourcesContent":["import type { BadgeBaseProps } from '@gv-tech/ui-core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst badgeVariants = cva(\n 'group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',\n secondary: 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',\n destructive:\n 'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',\n outline: 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',\n ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Badge({\n className,\n variant = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : 'span';\n\n return (\n <Comp data-slot=\"badge\" data-variant={variant} className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyBadgeContract = React.ComponentProps<typeof Badge> extends BadgeBaseProps ? true : false;\n"],"mappings":";;;;;A,aAOMM,IAAgBJ,EACpB,8eACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,WAAW;EACX,aACE;EACF,SAAS;EACT,OAAO;EACP,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,SAASK,EAAM,EACb,cACA,aAAU,WACV,aAAU,IACV,GAAGC,KACyF;CAC5F,IAAMC,IAAOC,IAAUV,IAAY;CAEnC,OACE,iBAAA,GAAAK,EAAA,IAAA,CAACI,GAAD;EAAM,aAAU;EAAQ,gBAAcE;EAAS,WAAWP,EAAGE,EAAc,EAAE,WAAQ,CAAC,GAAGM,CAAS;EAAG,GAAIJ;CAAQ,CAAA;AAErH"}
|
package/dist/breadcrumb.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,...n}){return(0,r.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,className:t.ei(e),...n})}function a({className:e,...n}){return(0,r.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:t.ei(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word`,e),...n})}function o({className:e,...n}){return(0,r.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:t.ei(`inline-flex items-center gap-1`,e),...n})}function s({asChild:e,className:n,...i}){let a=e?t.jr:`a`;return(0,r.jsx)(a,{"data-slot":`breadcrumb-link`,className:t.ei(`hover:text-foreground transition-colors`,n),...i})}function c({className:e,...n}){return(0,r.jsx)(`span`,{"data-slot":`breadcrumb-page`,"aria-current":`page`,className:t.ei(`text-foreground font-normal`,e),...n})}function l({children:e,className:n,...i}){return(0,r.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:t.ei(`[&>svg]:size-3.5`,n),...i,children:e??(0,r.jsx)(t.Jr,{className:`rtl:rotate-180`})})}function u({className:e,...n}){return(0,r.jsxs)(`span`,{"data-slot":`breadcrumb-ellipsis`,role:`presentation`,"aria-hidden":`true`,className:t.ei(`flex size-5 items-center justify-center [&>svg]:size-4`,e),...n,children:[(0,r.jsx)(t.Wr,{}),(0,r.jsx)(`span`,{className:`sr-only`,children:`More`})]})}exports.Breadcrumb=i,exports.BreadcrumbEllipsis=u,exports.BreadcrumbItem=o,exports.BreadcrumbLink=s,exports.BreadcrumbList=a,exports.BreadcrumbPage=c,exports.BreadcrumbSeparator=l;
|
|
2
2
|
//# sourceMappingURL=breadcrumb.cjs.map
|
package/dist/breadcrumb.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.cjs","names":[],"sources":["../packages/ui-web/src/breadcrumb.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"breadcrumb.cjs","names":["cn","ChevronRightIcon","MoreHorizontalIcon","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","Breadcrumb","props","className","BreadcrumbList","BreadcrumbItem","BreadcrumbLink","Comp","asChild","BreadcrumbPage","BreadcrumbSeparator","children","BreadcrumbEllipsis"],"sources":["../packages/ui-web/src/breadcrumb.tsx"],"sourcesContent":["import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" className={cn(className)} {...props} />;\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"breadcrumb-item\" className={cn('inline-flex items-center gap-1', className)} {...props} />;\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<'a'> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot.Root : 'a';\n\n return (\n <Comp data-slot=\"breadcrumb-link\" className={cn('hover:text-foreground transition-colors', className)} {...props} />\n );\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n aria-current=\"page\"\n className={cn('text-foreground font-normal', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('[&>svg]:size-3.5', className)}\n {...props}\n >\n {children ?? <ChevronRightIcon className=\"rtl:rotate-180\" />}\n </li>\n );\n}\n\nfunction BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('flex size-5 items-center justify-center [&>svg]:size-4', className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbEllipsis,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n};\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyBreadcrumbContract =\n React.ComponentProps<typeof Breadcrumb> extends BreadcrumbBaseProps ? true : false;\n"],"mappings":"A,iNAMA,SAASO,EAAW,CAAE,YAAW,GAAGC,GAAsC,CACxE,OAAO,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,aAAW,aAAa,YAAU,aAAa,UAAWN,EAAAA,GAAGS,CAAS,EAAG,GAAID,CAAQ,CAAA,CACnG,CAEA,SAASE,EAAe,CAAE,YAAW,GAAGF,GAAqC,CAC3E,OACE,EAAAF,EAAA,IAAA,CAAC,KAAD,CACE,YAAU,kBACV,UAAWN,EAAAA,GAAG,oFAAqFS,CAAS,EAC5G,GAAID,CACL,CAAA,CAEL,CAEA,SAASG,EAAe,CAAE,YAAW,GAAGH,GAAqC,CAC3E,OAAO,EAAAF,EAAA,IAAA,CAAC,KAAD,CAAI,YAAU,kBAAkB,UAAWN,EAAAA,GAAG,iCAAkCS,CAAS,EAAG,GAAID,CAAQ,CAAA,CACjH,CAEA,SAASI,EAAe,CACtB,UACA,YACA,GAAGJ,GAGF,CACD,IAAMK,EAAOC,EAAAV,EAAA,GAAsB,IAEnC,OACE,EAAAE,EAAA,IAAA,CAACO,EAAD,CAAM,YAAU,kBAAkB,UAAWb,EAAAA,GAAG,0CAA2CS,CAAS,EAAG,GAAID,CAAQ,CAAA,CAEvH,CAEA,SAASO,EAAe,CAAE,YAAW,GAAGP,GAAuC,CAC7E,OACE,EAAAF,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,kBACV,eAAa,OACb,UAAWN,EAAAA,GAAG,8BAA+BS,CAAS,EACtD,GAAID,CACL,CAAA,CAEL,CAEA,SAASQ,EAAoB,CAAE,WAAU,YAAW,GAAGR,GAAqC,CAC1F,OACE,EAAAF,EAAA,IAAA,CAAC,KAAD,CACE,YAAU,uBACV,KAAK,eACL,cAAY,OACZ,UAAWN,EAAAA,GAAG,mBAAoBS,CAAS,EAC3C,GAAID,EAEH,SAAAS,IAAY,EAAAX,EAAA,IAAA,CAACL,EAAAA,GAAD,CAAkB,UAAU,gBAAkB,CAAA,CACzD,CAAA,CAER,CAEA,SAASiB,EAAmB,CAAE,YAAW,GAAGV,GAAuC,CACjF,OACE,EAAAF,EAAA,KAAA,CAAC,OAAD,CACE,YAAU,sBACV,KAAK,eACL,cAAY,OACZ,UAAWN,EAAAA,GAAG,yDAA0DS,CAAS,EACjF,GAAID,EALN,SAAA,EAOE,EAAAF,EAAA,IAAA,CAACJ,EAAAA,GAAD,CAAqB,CAAA,GACrB,EAAAI,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,UAAU,SAAA,MAAU,CAAA,CAChC,C,EAEV,C"}
|
package/dist/breadcrumb.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, Jr as t, Wr as n, ei as r, jr as i } from "./vendor-
|
|
2
|
+
import { Ar as e, Jr as t, Wr as n, ei as r, jr as i } from "./vendor-PEVwmg1D.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
|
|
4
|
+
// packages/ui-web/src/breadcrumb.tsx
|
|
5
5
|
var a = e();
|
|
6
6
|
function o({ className: e, ...t }) {
|
|
7
7
|
return /* @__PURE__ */ (0, a.jsx)("nav", {
|
|
@@ -26,7 +26,8 @@ function c({ className: e, ...t }) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
function l({ asChild: e, className: t, ...n }) {
|
|
29
|
-
|
|
29
|
+
let o = e ? i : "a";
|
|
30
|
+
return /* @__PURE__ */ (0, a.jsx)(o, {
|
|
30
31
|
"data-slot": "breadcrumb-link",
|
|
31
32
|
className: r("hover:text-foreground transition-colors", t),
|
|
32
33
|
...n
|
|
@@ -35,8 +36,6 @@ function l({ asChild: e, className: t, ...n }) {
|
|
|
35
36
|
function u({ className: e, ...t }) {
|
|
36
37
|
return /* @__PURE__ */ (0, a.jsx)("span", {
|
|
37
38
|
"data-slot": "breadcrumb-page",
|
|
38
|
-
role: "link",
|
|
39
|
-
"aria-disabled": "true",
|
|
40
39
|
"aria-current": "page",
|
|
41
40
|
className: r("text-foreground font-normal", e),
|
|
42
41
|
...t
|
|
@@ -65,7 +64,6 @@ function f({ className: e, ...t }) {
|
|
|
65
64
|
})]
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
//#endregion
|
|
69
67
|
export { o as Breadcrumb, f as BreadcrumbEllipsis, c as BreadcrumbItem, l as BreadcrumbLink, s as BreadcrumbList, u as BreadcrumbPage, d as BreadcrumbSeparator };
|
|
70
68
|
|
|
71
69
|
//# sourceMappingURL=breadcrumb.mjs.map
|
package/dist/breadcrumb.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.mjs","names":[],"sources":["../packages/ui-web/src/breadcrumb.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"breadcrumb.mjs","names":["Slot.Root","ChevronRightIcon","MoreHorizontalIcon","require_jsx_runtime","ChevronRight","Ellipsis","cn","Slot","import_jsx_runtime","Breadcrumb","props","className","BreadcrumbList","BreadcrumbItem","BreadcrumbLink","Comp","asChild","BreadcrumbPage","BreadcrumbSeparator","children","BreadcrumbEllipsis"],"sources":["../packages/ui-web/src/breadcrumb.tsx"],"sourcesContent":["import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" className={cn(className)} {...props} />;\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"breadcrumb-item\" className={cn('inline-flex items-center gap-1', className)} {...props} />;\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<'a'> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot.Root : 'a';\n\n return (\n <Comp data-slot=\"breadcrumb-link\" className={cn('hover:text-foreground transition-colors', className)} {...props} />\n );\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n aria-current=\"page\"\n className={cn('text-foreground font-normal', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('[&>svg]:size-3.5', className)}\n {...props}\n >\n {children ?? <ChevronRightIcon className=\"rtl:rotate-180\" />}\n </li>\n );\n}\n\nfunction BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('flex size-5 items-center justify-center [&>svg]:size-4', className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbEllipsis,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n};\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyBreadcrumbContract =\n React.ComponentProps<typeof Breadcrumb> extends BreadcrumbBaseProps ? true : false;\n"],"mappings":";;;;;AAMA,SAASS,EAAW,EAAE,cAAW,GAAGC,KAAsC;CACxE,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EAAK,cAAW;EAAa,aAAU;EAAa,WAAWF,EAAGK,CAAS;EAAG,GAAID;CAAQ,CAAA;AACnG;AAEA,SAASE,EAAe,EAAE,cAAW,GAAGF,KAAqC;CAC3E,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,MAAD;EACE,aAAU;EACV,WAAWF,EAAG,qFAAqFK,CAAS;EAC5G,GAAID;CACL,CAAA;AAEL;AAEA,SAASG,EAAe,EAAE,cAAW,GAAGH,KAAqC;CAC3E,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,MAAD;EAAI,aAAU;EAAkB,WAAWF,EAAG,kCAAkCK,CAAS;EAAG,GAAID;CAAQ,CAAA;AACjH;AAEA,SAASI,EAAe,EACtB,YACA,cACA,GAAGJ,KAGF;CACD,IAAMK,IAAOC,IAAUhB,IAAY;CAEnC,OACE,iBAAA,GAAAQ,EAAA,IAAA,CAACO,GAAD;EAAM,aAAU;EAAkB,WAAWT,EAAG,2CAA2CK,CAAS;EAAG,GAAID;CAAQ,CAAA;AAEvH;AAEA,SAASO,EAAe,EAAE,cAAW,GAAGP,KAAuC;CAC7E,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,QAAD;EACE,aAAU;EACV,gBAAa;EACb,WAAWF,EAAG,+BAA+BK,CAAS;EACtD,GAAID;CACL,CAAA;AAEL;AAEA,SAASQ,EAAoB,EAAE,aAAU,cAAW,GAAGR,KAAqC;CAC1F,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,MAAD;EACE,aAAU;EACV,MAAK;EACL,eAAY;EACZ,WAAWF,EAAG,oBAAoBK,CAAS;EAC3C,GAAID;EAEH,UAAAS,KAAY,iBAAA,GAAAX,EAAA,IAAA,CAACP,GAAD,EAAkB,WAAU,iBAAkB,CAAA;CACzD,CAAA;AAER;AAEA,SAASmB,EAAmB,EAAE,cAAW,GAAGV,KAAuC;CACjF,OACE,iBAAA,GAAAF,EAAA,KAAA,CAAC,QAAD;EACE,aAAU;EACV,MAAK;EACL,eAAY;EACZ,WAAWF,EAAG,0DAA0DK,CAAS;EACjF,GAAID;EALN,UAAA,CAOE,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD,CAAqB,CAAA,GACrB,iBAAA,GAAAM,EAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GAAU,UAAA;EAAU,CAAA,CAChC;;AAEV"}
|
package/dist/bubble.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`bubble-group`,className:t.ei(`flex min-w-0 flex-col gap-2`,e),...n})}var a=t.H(`group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full`,{variants:{variant:{default:`*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80`,secondary:`*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]`,muted:`*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]`,tinted:`*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]`,outline:`*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30`,ghost:`[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0`,destructive:`*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30`}},defaultVariants:{variant:`default`}});function o({variant:e=`default`,align:n=`start`,className:i,...o}){return(0,r.jsx)(`div`,{"data-slot":`bubble`,"data-variant":e,"data-align":n,className:t.ei(a({variant:e}),i),...o})}function s({asChild:e=!1,className:n,...i}){let a=e?t.jr:`div`;return(0,r.jsx)(a,{"data-slot":`bubble-content`,className:t.ei(`[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3`,n),...i})}var c=t.H(`bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0`,{variants:{side:{top:`top-0 -translate-y-3/4`,bottom:`bottom-0 translate-y-3/4`},align:{start:`start-3`,end:`end-3`}},defaultVariants:{side:`bottom`,align:`end`}});function l({side:e=`bottom`,align:n=`end`,className:i,...a}){return(0,r.jsx)(`div`,{"data-slot":`bubble-reactions`,"data-align":n,"data-side":e,className:t.ei(c({side:e,align:n}),i),...a})}exports.Bubble=o,exports.BubbleContent=s,exports.BubbleGroup=i,exports.BubbleReactions=l;
|
|
2
2
|
//# sourceMappingURL=bubble.cjs.map
|
package/dist/bubble.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble.cjs","names":[],"sources":["../packages/ui-web/src/bubble.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"bubble.cjs","names":["cn","cva","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","BubbleGroup","props","className","bubbleVariants","Bubble","variant","align","BubbleContent","Comp","asChild","bubbleReactionsVariants","BubbleReactions","side"],"sources":["../packages/ui-web/src/bubble.tsx"],"sourcesContent":["import type {\n BubbleBaseProps,\n BubbleContentBaseProps,\n BubbleGroupBaseProps,\n BubbleReactionsBaseProps,\n} from '@gv-tech/ui-core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nfunction BubbleGroup({ className, ...props }: React.ComponentProps<'div'> & BubbleGroupBaseProps) {\n return <div data-slot=\"bubble-group\" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;\n}\n\nconst bubbleVariants = cva(\n 'group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full',\n {\n variants: {\n variant: {\n default:\n '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',\n secondary:\n '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',\n muted:\n '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',\n tinted:\n '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',\n outline:\n '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',\n ghost:\n '[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',\n destructive:\n '*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Bubble({\n variant = 'default',\n align = 'start',\n className,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof bubbleVariants> & BubbleBaseProps) {\n return (\n <div\n data-slot=\"bubble\"\n data-variant={variant}\n data-align={align}\n className={cn(bubbleVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction BubbleContent({ asChild = false, className, ...props }: React.ComponentProps<'div'> & BubbleContentBaseProps) {\n const Comp = asChild ? Slot.Root : 'div';\n\n return (\n <Comp\n data-slot=\"bubble-content\"\n className={cn(\n '[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',\n className,\n )}\n {...props}\n />\n );\n}\n\nconst bubbleReactionsVariants = cva(\n 'bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0',\n {\n variants: {\n side: {\n top: 'top-0 -translate-y-3/4',\n bottom: 'bottom-0 translate-y-3/4',\n },\n align: {\n start: 'start-3',\n end: 'end-3',\n },\n },\n defaultVariants: {\n side: 'bottom',\n align: 'end',\n },\n },\n);\n\nfunction BubbleReactions({\n side = 'bottom',\n align = 'end',\n className,\n ...props\n}: React.ComponentProps<'div'> & BubbleReactionsBaseProps) {\n return (\n <div\n data-slot=\"bubble-reactions\"\n data-align={align}\n data-side={side}\n className={cn(bubbleReactionsVariants({ side, align }), className)}\n {...props}\n />\n );\n}\n\nexport { Bubble, BubbleContent, BubbleGroup, BubbleReactions };\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyBubbleContract = React.ComponentProps<typeof Bubble> extends BubbleBaseProps ? true : false;\n"],"mappings":"A,iNAWA,SAASM,EAAY,CAAE,YAAW,GAAGC,GAA6D,CAChG,OAAO,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,eAAe,UAAWL,EAAAA,GAAG,8BAA+BQ,CAAS,EAAG,GAAID,CAAQ,CAAA,CAC5G,CAEA,IAAME,EAAiBR,EAAAA,EACrB,wKACA,CACE,SAAU,CACR,QAAS,CACP,QACE,+JACF,UACE,oNACF,MACE,qJACF,OACE,kaACF,QACE,wRACF,MACE,qUACF,YACE,+RACJ,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASS,EAAO,CACd,UAAU,UACV,QAAQ,QACR,YACA,GAAGH,GACmF,CACtF,OACE,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,SACV,eAAcM,EACd,aAAYC,EACZ,UAAWZ,EAAAA,GAAGS,EAAe,CAAE,SAAQ,CAAC,EAAGD,CAAS,EACpD,GAAID,CACL,CAAA,CAEL,CAEA,SAASM,EAAc,CAAE,UAAU,GAAO,YAAW,GAAGN,GAA+D,CACrH,IAAMO,EAAOC,EAAAZ,EAAA,GAAsB,MAEnC,OACE,EAAAE,EAAA,IAAA,CAACS,EAAD,CACE,YAAU,iBACV,UAAWd,EAAAA,GACT,6VACAQ,CACF,EACA,GAAID,CACL,CAAA,CAEL,CAEA,IAAMS,EAA0Bf,EAAAA,EAC9B,oJACA,CACE,SAAU,CACR,KAAM,CACJ,IAAK,yBACL,OAAQ,0BACV,EACA,MAAO,CACL,MAAO,UACP,IAAK,OACP,CACF,EACA,gBAAiB,CACf,KAAM,SACN,MAAO,KACT,CACF,CACF,EAEA,SAASgB,EAAgB,CACvB,OAAO,SACP,QAAQ,MACR,YACA,GAAGV,GACsD,CACzD,OACE,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,mBACV,aAAYO,EACZ,YAAWM,EACX,UAAWlB,EAAAA,GAAGgB,EAAwB,CAAE,OAAM,OAAM,CAAC,EAAGR,CAAS,EACjE,GAAID,CACL,CAAA,CAEL,C"}
|
package/dist/bubble.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, H as t, ei as n, jr as r } from "./vendor-
|
|
2
|
+
import { Ar as e, H as t, ei as n, jr as r } from "./vendor-PEVwmg1D.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
|
|
4
|
+
// packages/ui-web/src/bubble.tsx
|
|
5
5
|
var i = e();
|
|
6
6
|
function a({ className: e, ...t }) {
|
|
7
7
|
return /* @__PURE__ */ (0, i.jsx)("div", {
|
|
@@ -15,9 +15,9 @@ var o = t("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 g
|
|
|
15
15
|
default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
|
|
16
16
|
secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
|
|
17
17
|
muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
|
|
18
|
-
tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)]
|
|
18
|
+
tinted: "*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
|
|
19
19
|
outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
|
|
20
|
-
ghost: "
|
|
20
|
+
ghost: "[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0",
|
|
21
21
|
destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
|
|
22
22
|
} },
|
|
23
23
|
defaultVariants: { variant: "default" }
|
|
@@ -32,13 +32,14 @@ function s({ variant: e = "default", align: t = "start", className: r, ...a }) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
function c({ asChild: e = !1, className: t, ...a }) {
|
|
35
|
-
|
|
35
|
+
let o = e ? r : "div";
|
|
36
|
+
return /* @__PURE__ */ (0, i.jsx)(o, {
|
|
36
37
|
"data-slot": "bubble-content",
|
|
37
38
|
className: n("[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3", t),
|
|
38
39
|
...a
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
var l = t("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full
|
|
42
|
+
var l = t("bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0", {
|
|
42
43
|
variants: {
|
|
43
44
|
side: {
|
|
44
45
|
top: "top-0 -translate-y-3/4",
|
|
@@ -66,7 +67,6 @@ function u({ side: e = "bottom", align: t = "end", className: r, ...a }) {
|
|
|
66
67
|
...a
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
|
-
//#endregion
|
|
70
70
|
export { s as Bubble, c as BubbleContent, a as BubbleGroup, u as BubbleReactions };
|
|
71
71
|
|
|
72
72
|
//# sourceMappingURL=bubble.mjs.map
|
package/dist/bubble.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble.mjs","names":[],"sources":["../packages/ui-web/src/bubble.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"bubble.mjs","names":["Slot.Root","require_jsx_runtime","cva","cn","Slot","import_jsx_runtime","BubbleGroup","props","className","bubbleVariants","Bubble","variant","align","BubbleContent","Comp","asChild","bubbleReactionsVariants","BubbleReactions","side"],"sources":["../packages/ui-web/src/bubble.tsx"],"sourcesContent":["import type {\n BubbleBaseProps,\n BubbleContentBaseProps,\n BubbleGroupBaseProps,\n BubbleReactionsBaseProps,\n} from '@gv-tech/ui-core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\nimport * as React from 'react';\n\nfunction BubbleGroup({ className, ...props }: React.ComponentProps<'div'> & BubbleGroupBaseProps) {\n return <div data-slot=\"bubble-group\" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;\n}\n\nconst bubbleVariants = cva(\n 'group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full',\n {\n variants: {\n variant: {\n default:\n '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',\n secondary:\n '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',\n muted:\n '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',\n tinted:\n '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',\n outline:\n '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',\n ghost:\n '[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',\n destructive:\n '*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Bubble({\n variant = 'default',\n align = 'start',\n className,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof bubbleVariants> & BubbleBaseProps) {\n return (\n <div\n data-slot=\"bubble\"\n data-variant={variant}\n data-align={align}\n className={cn(bubbleVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction BubbleContent({ asChild = false, className, ...props }: React.ComponentProps<'div'> & BubbleContentBaseProps) {\n const Comp = asChild ? Slot.Root : 'div';\n\n return (\n <Comp\n data-slot=\"bubble-content\"\n className={cn(\n '[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',\n className,\n )}\n {...props}\n />\n );\n}\n\nconst bubbleReactionsVariants = cva(\n 'bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0',\n {\n variants: {\n side: {\n top: 'top-0 -translate-y-3/4',\n bottom: 'bottom-0 translate-y-3/4',\n },\n align: {\n start: 'start-3',\n end: 'end-3',\n },\n },\n defaultVariants: {\n side: 'bottom',\n align: 'end',\n },\n },\n);\n\nfunction BubbleReactions({\n side = 'bottom',\n align = 'end',\n className,\n ...props\n}: React.ComponentProps<'div'> & BubbleReactionsBaseProps) {\n return (\n <div\n data-slot=\"bubble-reactions\"\n data-align={align}\n data-side={side}\n className={cn(bubbleReactionsVariants({ side, align }), className)}\n {...props}\n />\n );\n}\n\nexport { Bubble, BubbleContent, BubbleGroup, BubbleReactions };\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyBubbleContract = React.ComponentProps<typeof Bubble> extends BubbleBaseProps ? true : false;\n"],"mappings":";;;;;AAWA,SAASM,EAAY,EAAE,cAAW,GAAGC,KAA6D;CAChG,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAe,WAAWF,EAAG,+BAA+BK,CAAS;EAAG,GAAID;CAAQ,CAAA;AAC5G;AAEA,IAAME,IAAiBP,EACrB,yKACA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,WACE;EACF,OACE;EACF,QACE;EACF,SACE;EACF,OACE;EACF,aACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,SAASQ,EAAO,EACd,aAAU,WACV,WAAQ,SACR,cACA,GAAGH,KACmF;CACtF,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,gBAAcM;EACd,cAAYC;EACZ,WAAWT,EAAGM,EAAe,EAAE,WAAQ,CAAC,GAAGD,CAAS;EACpD,GAAID;CACL,CAAA;AAEL;AAEA,SAASM,EAAc,EAAE,aAAU,IAAO,cAAW,GAAGN,KAA+D;CACrH,IAAMO,IAAOC,IAAUf,IAAY;CAEnC,OACE,iBAAA,GAAAK,EAAA,IAAA,CAACS,GAAD;EACE,aAAU;EACV,WAAWX,EACT,8VACAK,CACF;EACA,GAAID;CACL,CAAA;AAEL;AAEA,IAAMS,IAA0Bd,EAC9B,qJACA;CACE,UAAU;EACR,MAAM;GACJ,KAAK;GACL,QAAQ;EACV;EACA,OAAO;GACL,OAAO;GACP,KAAK;EACP;CACF;CACA,iBAAiB;EACf,MAAM;EACN,OAAO;CACT;AACF,CACF;AAEA,SAASe,EAAgB,EACvB,UAAO,UACP,WAAQ,OACR,cACA,GAAGV,KACsD;CACzD,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,cAAYO;EACZ,aAAWM;EACX,WAAWf,EAAGa,EAAwB;GAAE;GAAM;EAAM,CAAC,GAAGR,CAAS;EACjE,GAAID;CACL,CAAA;AAEL"}
|
package/dist/button-group.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-Ceu--gxM.js"),t=require("./separator.cjs");var n=e.Ar(),r=e.H(`group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!`}},defaultVariants:{orientation:`horizontal`}});function i({className:t,orientation:i,...a}){return(0,n.jsx)(`fieldset`,{"data-slot":`button-group`,"data-orientation":i,className:e.ei(r({orientation:i}),t),...a})}function a({className:t,asChild:r=!1,...i}){let a=r?e.jr:`div`;return(0,n.jsx)(a,{className:e.ei(`bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,t),...i})}function o({className:r,orientation:i=`vertical`,...a}){return(0,n.jsx)(t.Separator,{"data-slot":`button-group-separator`,orientation:i,className:e.ei(`bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto`,r),...a})}exports.ButtonGroup=i,exports.ButtonGroupSeparator=o,exports.ButtonGroupText=a,exports.buttonGroupVariants=r;
|
|
2
2
|
//# sourceMappingURL=button-group.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.cjs","names":[],"sources":["../packages/ui-web/src/button-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\n\nimport { Separator } from '@/./separator';\n\nconst buttonGroupVariants = cva(\n \"group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n '[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!',\n vertical:\n 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n },\n);\n\nimport type { ButtonGroupBaseProps, ButtonGroupSeparatorBaseProps, ButtonGroupTextBaseProps } from '@gv-tech/ui-core';\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<'
|
|
1
|
+
{"version":3,"file":"button-group.cjs","names":["cva","cn","Separator","require_vendor","require_separator","import_jsx_runtime","buttonGroupVariants","ButtonGroup","props","orientation","className","ButtonGroupText","Comp","asChild","ButtonGroupSeparator"],"sources":["../packages/ui-web/src/button-group.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from 'cn';\nimport { Slot } from 'radix-ui';\n\nimport { Separator } from '@/./separator';\n\nconst buttonGroupVariants = cva(\n \"group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n '[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!',\n vertical:\n 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n },\n);\n\nimport type { ButtonGroupBaseProps, ButtonGroupSeparatorBaseProps, ButtonGroupTextBaseProps } from '@gv-tech/ui-core';\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<'fieldset'> & VariantProps<typeof buttonGroupVariants> & ButtonGroupBaseProps) {\n return (\n <fieldset\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<'div'> & ButtonGroupTextBaseProps) {\n const Comp = asChild ? Slot.Root : 'div';\n\n return (\n <Comp\n className={cn(\n \"bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof Separator> & ButtonGroupSeparatorBaseProps) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n 'bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };\n"],"mappings":"A,kKAMMM,EAAsBN,EAAAA,EAC1B,8SACA,CACE,SAAU,CACR,YAAa,CACX,WACE,wKACF,SACE,gLACJ,CACF,EACA,gBAAiB,CACf,YAAa,YACf,CACF,CACF,EAIA,SAASO,EAAY,CACnB,YACA,cACA,GAAGC,GACkG,CACrG,OACE,EAAAH,EAAA,IAAA,CAAC,WAAD,CACE,YAAU,eACV,mBAAkBI,EAClB,UAAWR,EAAAA,GAAGK,EAAoB,CAAE,aAAY,CAAC,EAAGI,CAAS,EAC7D,GAAIF,CACL,CAAA,CAEL,CAEA,SAASG,EAAgB,CACvB,YACA,UAAU,GACV,GAAGH,GACsD,CACzD,IAAMI,EAAOC,EAAAV,EAAA,GAAsB,MAEnC,OACE,EAAAE,EAAA,IAAA,CAACO,EAAD,CACE,UAAWX,EAAAA,GACT,iJACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,CAEA,SAASM,EAAqB,CAC5B,YACA,cAAc,WACd,GAAGN,GACsE,CACzE,OACE,EAAAH,EAAA,IAAA,CAACH,EAAAA,UAAD,CACE,YAAU,yBACG,cACb,UAAWD,EAAAA,GACT,uHACAS,CACF,EACA,GAAIF,CACL,CAAA,CAEL,C"}
|