@px-ui/ui 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{avatar-Bb0tx0Hn.js → avatar-a40DzPi3.js} +4 -4
- package/dist/{avatar-Bb0tx0Hn.js.map → avatar-a40DzPi3.js.map} +1 -1
- package/dist/{avatar-CT9YANjF.d.ts → avatar-cLlUF5Lz.d.ts} +6 -6
- package/dist/{avatar-CT9YANjF.d.ts.map → avatar-cLlUF5Lz.d.ts.map} +1 -1
- package/dist/{button-D7hCT6ip.d.ts → button-BJ727apo.d.ts} +7 -7
- package/dist/{button-D7hCT6ip.d.ts.map → button-BJ727apo.d.ts.map} +1 -1
- package/dist/{button-hBUFMmsZ.js → button-Cp2S1spE.js} +2 -2
- package/dist/{button-hBUFMmsZ.js.map → button-Cp2S1spE.js.map} +1 -1
- package/dist/{combobox-BJtVbIeP.d.ts → combobox-B73nb6Tq.d.ts} +19 -19
- package/dist/{combobox-BJtVbIeP.d.ts.map → combobox-B73nb6Tq.d.ts.map} +1 -1
- package/dist/{combobox-CHkmVNZ2.js → combobox-Di5naqIR.js} +9 -9
- package/dist/{combobox-CHkmVNZ2.js.map → combobox-Di5naqIR.js.map} +1 -1
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert-dialog.d.ts +14 -14
- package/dist/components/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog.js +3 -3
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/attachment.d.ts +64 -0
- package/dist/components/attachment.d.ts.map +1 -0
- package/dist/components/attachment.js +107 -0
- package/dist/components/attachment.js.map +1 -0
- package/dist/components/avatar-group.d.ts +4 -4
- package/dist/components/avatar-group.d.ts.map +1 -1
- package/dist/components/avatar-group.js +5 -5
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/breadcrumb.js +2 -2
- package/dist/components/bubble.d.ts +39 -0
- package/dist/components/bubble.d.ts.map +1 -0
- package/dist/components/bubble.js +76 -0
- package/dist/components/bubble.js.map +1 -0
- package/dist/components/button-group.d.ts +7 -7
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calendar.d.ts +4 -4
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +2 -2
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +3 -3
- package/dist/components/chart.d.ts +5 -5
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +4 -4
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.d.ts +2 -2
- package/dist/components/combobox.js +11 -11
- package/dist/components/command.d.ts +11 -11
- package/dist/components/command.js +7 -7
- package/dist/components/context-menu.d.ts +16 -16
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +2 -2
- package/dist/components/currency-select-field.d.ts +4 -4
- package/dist/components/currency-select-field.js +12 -12
- package/dist/components/dialog.d.ts +11 -11
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +3 -3
- package/dist/components/direction.js +1 -1
- package/dist/components/drawer.d.ts +11 -11
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +1 -1
- package/dist/components/field.d.ts +16 -16
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +4 -4
- package/dist/components/file-upload-field.d.ts +3 -3
- package/dist/components/file-upload-field.js +6 -6
- package/dist/components/file-upload.d.ts +3 -3
- package/dist/components/file-upload.js +4 -4
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-group.d.ts +12 -12
- package/dist/components/input-group.d.ts.map +1 -1
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input-otp.js +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/item.d.ts +15 -15
- package/dist/components/item.js +3 -3
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/marker.d.ts +27 -0
- package/dist/components/marker.d.ts.map +1 -0
- package/dist/components/marker.js +46 -0
- package/dist/components/marker.js.map +1 -0
- package/dist/components/menubar.d.ts +18 -18
- package/dist/components/menubar.js +3 -3
- package/dist/components/message-scroller.d.ts +36 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +63 -0
- package/dist/components/message-scroller.js.map +1 -0
- package/dist/components/message.d.ts +34 -0
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/message.js +52 -0
- package/dist/components/message.js.map +1 -0
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +3 -3
- package/dist/components/phone-input.d.ts +2 -2
- package/dist/components/phone-input.js +2 -2
- package/dist/components/popover.d.ts +7 -7
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/select.d.ts +10 -10
- package/dist/components/select.js +2 -2
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +3 -3
- package/dist/components/sidebar.d.ts +26 -26
- package/dist/components/sidebar.js +9 -9
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +2 -2
- package/dist/components/tabs.d.ts +7 -7
- package/dist/components/tabs.js +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +3 -3
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +2 -2
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +2 -2
- package/dist/{dialog-DrdXva1a.js → dialog-B3HhbIdv.js} +4 -4
- package/dist/{dialog-DrdXva1a.js.map → dialog-B3HhbIdv.js.map} +1 -1
- package/dist/{dropdown-menu-Bju9Jfkd.d.ts → dropdown-menu-C6n_oYre.d.ts} +17 -17
- package/dist/{dropdown-menu-Bju9Jfkd.d.ts.map → dropdown-menu-C6n_oYre.d.ts.map} +1 -1
- package/dist/{dropdown-menu-CcumvwhM.js → dropdown-menu-vwX--mgm.js} +3 -3
- package/dist/{dropdown-menu-CcumvwhM.js.map → dropdown-menu-vwX--mgm.js.map} +1 -1
- package/dist/{file-upload-DeCIv13t.js → file-upload-B0fHdUBL.js} +5 -5
- package/dist/{file-upload-DeCIv13t.js.map → file-upload-B0fHdUBL.js.map} +1 -1
- package/dist/{file-upload-CHnDSq1W.d.ts → file-upload-CGfXHKPZ.d.ts} +11 -11
- package/dist/{file-upload-CHnDSq1W.d.ts.map → file-upload-CGfXHKPZ.d.ts.map} +1 -1
- package/dist/hooks/use-async-options.d.ts +1 -1
- package/dist/hooks/use-async-options.js +1 -1
- package/dist/hooks/use-debounce.js +1 -1
- package/dist/hooks/use-file-upload.d.ts +1 -1
- package/dist/hooks/use-file-upload.js +1 -1
- package/dist/hooks/use-infinite-scroll.d.ts +1 -1
- package/dist/hooks/use-infinite-scroll.js +2 -2
- package/dist/hooks/use-intersection-observer.d.ts +1 -1
- package/dist/hooks/use-intersection-observer.js +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/{input-8jqdnUZl.js → input-B-RCmrtR.js} +3 -3
- package/dist/{input-8jqdnUZl.js.map → input-B-RCmrtR.js.map} +1 -1
- package/dist/{input-C9UsUnIo.d.ts → input-BtI3FvrB.d.ts} +3 -3
- package/dist/input-BtI3FvrB.d.ts.map +1 -0
- package/dist/{input-group-DqEkmpXW.js → input-group-C78_1dEy.js} +6 -6
- package/dist/{input-group-DqEkmpXW.js.map → input-group-C78_1dEy.js.map} +1 -1
- package/dist/label-BnSHwOyi.d.ts +11 -0
- package/dist/label-BnSHwOyi.d.ts.map +1 -0
- package/dist/{label-AaH9ZYCZ.js → label-Cmlhz-uF.js} +3 -3
- package/dist/{label-AaH9ZYCZ.js.map → label-Cmlhz-uF.js.map} +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{popover-C9D43EuT.js → popover-CsTnnBvx.js} +3 -3
- package/dist/{popover-C9D43EuT.js.map → popover-CsTnnBvx.js.map} +1 -1
- package/dist/providers/px-ui-provider.d.ts +4 -4
- package/dist/providers/px-ui-provider.d.ts.map +1 -1
- package/dist/providers/px-ui-provider.js +4 -4
- package/dist/{separator-BS3ilczC.js → separator-BQBOLUMc.js} +2 -2
- package/dist/{separator-BS3ilczC.js.map → separator-BQBOLUMc.js.map} +1 -1
- package/dist/{separator-Dx2S4o5E.d.ts → separator-pyhTqgkN.d.ts} +3 -3
- package/dist/separator-pyhTqgkN.d.ts.map +1 -0
- package/dist/{sheet-CLjNDrfL.js → sheet-Chg_afex.js} +4 -4
- package/dist/{sheet-CLjNDrfL.js.map → sheet-Chg_afex.js.map} +1 -1
- package/dist/{skeleton-BcIxI5Wq.js → skeleton-J879XBBA.js} +2 -2
- package/dist/{skeleton-BcIxI5Wq.js.map → skeleton-J879XBBA.js.map} +1 -1
- package/dist/{spinner-Bo0sUZEg.js → spinner-C7yzrK_s.js} +2 -2
- package/dist/{spinner-Bo0sUZEg.js.map → spinner-C7yzrK_s.js.map} +1 -1
- package/dist/styles.css +665 -1
- package/dist/{textarea-Cq0o323P.js → textarea-CaHmr0re.js} +3 -3
- package/dist/{textarea-Cq0o323P.js.map → textarea-CaHmr0re.js.map} +1 -1
- package/dist/{toast-COWAQbIk.js → toast-BrPEQywl.js} +4 -4
- package/dist/{toast-COWAQbIk.js.map → toast-BrPEQywl.js.map} +1 -1
- package/dist/{toast-inWdxcan.d.ts → toast-CSU7vJkV.d.ts} +5 -5
- package/dist/{toast-inWdxcan.d.ts.map → toast-CSU7vJkV.d.ts.map} +1 -1
- package/dist/{toggle-lqIyJptS.js → toggle-CA4KsgWs.js} +2 -2
- package/dist/{toggle-lqIyJptS.js.map → toggle-CA4KsgWs.js.map} +1 -1
- package/dist/{toggle-BzmANp4O.d.ts → toggle-gjMAPmkg.d.ts} +6 -6
- package/dist/{toggle-BzmANp4O.d.ts.map → toggle-gjMAPmkg.d.ts.map} +1 -1
- package/dist/{tooltip-CQbuWNPO.d.ts → tooltip-7bptiThf.d.ts} +6 -6
- package/dist/{tooltip-CQbuWNPO.d.ts.map → tooltip-7bptiThf.d.ts.map} +1 -1
- package/dist/{tooltip-DkPxCJIL.js → tooltip-BhxGE3Gb.js} +2 -2
- package/dist/{tooltip-DkPxCJIL.js.map → tooltip-BhxGE3Gb.js.map} +1 -1
- package/dist/{use-async-options-CcsImGX4.js → use-async-options-CtB4wZrr.js} +1 -1
- package/dist/{use-async-options-CcsImGX4.js.map → use-async-options-CtB4wZrr.js.map} +1 -1
- package/dist/{use-async-options-Cu5T43vj.d.ts → use-async-options-rNdyxIrQ.d.ts} +1 -1
- package/dist/{use-async-options-Cu5T43vj.d.ts.map → use-async-options-rNdyxIrQ.d.ts.map} +1 -1
- package/dist/{use-debounce-_qaEZqtt.js → use-debounce--Lv1ABSa.js} +1 -1
- package/dist/{use-debounce-_qaEZqtt.js.map → use-debounce--Lv1ABSa.js.map} +1 -1
- package/dist/{use-file-upload-Dxrej28u.js → use-file-upload-BbERd3Nw.js} +1 -1
- package/dist/{use-file-upload-Dxrej28u.js.map → use-file-upload-BbERd3Nw.js.map} +1 -1
- package/dist/{use-file-upload-yy-xLBtn.d.ts → use-file-upload-Cbb_9kTw.d.ts} +1 -1
- package/dist/{use-file-upload-yy-xLBtn.d.ts.map → use-file-upload-Cbb_9kTw.d.ts.map} +1 -1
- package/dist/{use-infinite-scroll-CpbhGGT5.js → use-infinite-scroll-CC_Guyvn.js} +2 -2
- package/dist/{use-infinite-scroll-CpbhGGT5.js.map → use-infinite-scroll-CC_Guyvn.js.map} +1 -1
- package/dist/{use-intersection-observer-C2xDq2SW.d.ts → use-intersection-observer-CgAaXczI.d.ts} +1 -1
- package/dist/{use-intersection-observer-C2xDq2SW.d.ts.map → use-intersection-observer-CgAaXczI.d.ts.map} +1 -1
- package/dist/{use-intersection-observer-CZfnep4z.js → use-intersection-observer-S0wsPmhF.js} +1 -1
- package/dist/{use-intersection-observer-CZfnep4z.js.map → use-intersection-observer-S0wsPmhF.js.map} +1 -1
- package/dist/{use-mobile-l5ebOdQl.js → use-mobile--NaMWuCj.js} +1 -1
- package/dist/{use-mobile-l5ebOdQl.js.map → use-mobile--NaMWuCj.js.map} +1 -1
- package/dist/{utils-mWJR2N24.js → utils-DeIaBj75.js} +1 -1
- package/dist/{utils-mWJR2N24.js.map → utils-DeIaBj75.js.map} +1 -1
- package/package.json +22 -1
- package/dist/input-C9UsUnIo.d.ts.map +0 -1
- package/dist/label-D5SCGMZl.d.ts +0 -11
- package/dist/label-D5SCGMZl.d.ts.map +0 -1
- package/dist/separator-Dx2S4o5E.d.ts.map +0 -1
- /package/dist/{direction-BKSh6e6q.js → direction-ZS2Hta3v.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { t as cn } from "../utils-
|
|
4
|
-
import { t as Button } from "../button-
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
4
|
+
import { t as Button } from "../button-Cp2S1spE.js";
|
|
6
5
|
import "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
8
8
|
|
|
9
9
|
//#region src/components/alert-dialog.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -11,19 +11,19 @@ declare function Alert({
|
|
|
11
11
|
className,
|
|
12
12
|
variant,
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>):
|
|
14
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime57.JSX.Element;
|
|
15
15
|
declare function AlertTitle({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: React$1.ComponentProps<"div">):
|
|
18
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime57.JSX.Element;
|
|
19
19
|
declare function AlertDescription({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React$1.ComponentProps<"div">):
|
|
22
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime57.JSX.Element;
|
|
23
23
|
declare function AlertAction({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React$1.ComponentProps<"div">):
|
|
26
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime57.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Alert, AlertAction, AlertDescription, AlertTitle };
|
|
29
29
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","names":[],"sources":["../../src/components/alert.tsx"],"sourcesContent":[],"mappings":";;;;;;cAKM;;IAgBL,+BAAA,CAAA;iBAEQ,KAAA;;;;GAIN,OAAA,CAAM,wBAAwB,oBAAoB,iBAAc,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","names":[],"sources":["../../src/components/alert.tsx"],"sourcesContent":[],"mappings":";;;;;;cAKM;;IAgBL,+BAAA,CAAA;iBAEQ,KAAA;;;;GAIN,OAAA,CAAM,wBAAwB,oBAAoB,iBAAc,mBAAA,CAAA,GAAA,CAAA;AA1BF,iBAqCxD,UAAA,CAjBR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiB4C,OAAA,CAAM,cAjBlD,CAAA,KAAA,CAAA,CAAA,EAiBuE,mBAAA,CAAA,GAAA,CAAA,OAjBvE;iBA8BQ,gBAAA,CA5BK;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+BX,OAAA,CAAM,cA/BK,CAAA,KAAA,CAAA,CAAA,EA+BgB,mBAAA,CAAA,GAAA,CAAA,OA/BhB;iBA4CL,WAAA,CA3CP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2C4C,OAAA,CAAM,cA3ClD,CAAA,KAAA,CAAA,CAAA,EA2CuE,mBAAA,CAAA,GAAA,CAAA,OA3CvE"}
|
package/dist/components/alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region src/components/alert.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/aspect-ratio.d.ts
|
|
4
4
|
declare function AspectRatio({
|
|
@@ -7,7 +7,7 @@ declare function AspectRatio({
|
|
|
7
7
|
...props
|
|
8
8
|
}: React.ComponentProps<"div"> & {
|
|
9
9
|
ratio: number;
|
|
10
|
-
}):
|
|
10
|
+
}): react_jsx_runtime61.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { AspectRatio };
|
|
13
13
|
//# sourceMappingURL=aspect-ratio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aspect-ratio.d.ts","names":[],"sources":["../../src/components/aspect-ratio.tsx"],"sourcesContent":[],"mappings":";;;iBAES,WAAA;;;;GAIN,KAAA,CAAM;;IAAyC,
|
|
1
|
+
{"version":3,"file":"aspect-ratio.d.ts","names":[],"sources":["../../src/components/aspect-ratio.tsx"],"sourcesContent":[],"mappings":";;;iBAES,WAAA;;;;GAIN,KAAA,CAAM;;IAAyC,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { t as Button } from "../button-BJ727apo.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
7
|
+
|
|
8
|
+
//#region src/components/attachment.d.ts
|
|
9
|
+
declare const attachmentVariants: (props?: ({
|
|
10
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
11
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
13
|
+
declare function Attachment({
|
|
14
|
+
className,
|
|
15
|
+
state,
|
|
16
|
+
size,
|
|
17
|
+
orientation,
|
|
18
|
+
...props
|
|
19
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof attachmentVariants> & {
|
|
20
|
+
state?: "idle" | "uploading" | "processing" | "error" | "done";
|
|
21
|
+
}): react_jsx_runtime77.JSX.Element;
|
|
22
|
+
declare const attachmentMediaVariants: (props?: ({
|
|
23
|
+
variant?: "image" | "icon" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
25
|
+
declare function AttachmentMedia({
|
|
26
|
+
className,
|
|
27
|
+
variant,
|
|
28
|
+
...props
|
|
29
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof attachmentMediaVariants>): react_jsx_runtime77.JSX.Element;
|
|
30
|
+
declare function AttachmentContent({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime77.JSX.Element;
|
|
34
|
+
declare function AttachmentTitle({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime77.JSX.Element;
|
|
38
|
+
declare function AttachmentDescription({
|
|
39
|
+
className,
|
|
40
|
+
...props
|
|
41
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime77.JSX.Element;
|
|
42
|
+
declare function AttachmentActions({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime77.JSX.Element;
|
|
46
|
+
declare function AttachmentAction({
|
|
47
|
+
className,
|
|
48
|
+
variant,
|
|
49
|
+
size,
|
|
50
|
+
...props
|
|
51
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime77.JSX.Element;
|
|
52
|
+
declare function AttachmentTrigger({
|
|
53
|
+
className,
|
|
54
|
+
render,
|
|
55
|
+
type,
|
|
56
|
+
...props
|
|
57
|
+
}: useRender.ComponentProps<"button">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
58
|
+
declare function AttachmentGroup({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime77.JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger };
|
|
64
|
+
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","names":[],"sources":["../../src/components/attachment.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAQM;;;IAgBL,+BAAA,CAAA;AAlBmD,iBAoB3C,UAAA,CAFR;EAAA,SAAA;EAAA,KAAA;EAAA,IAAA;EAAA,WAAA;EAAA,GAAA;CAAA,EAQE,OAAA,CAAM,cARR,CAAA,KAAA,CAAA,GASC,YATD,CAAA,OASqB,kBATrB,CAAA,GAAA;EAEQ,KAAA,CAAA,EAAA,MAAU,GAAA,WAAA,GAAA,YAAA,GAAA,OAAA,GAAA,MAAA;CACjB,CAAA,EAQC,mBAAA,CAAA,GAAA,CAAA,OARD;cAqBI,uBApBJ,EAAA,CAAA,KAEA,CAFA,EAAA,CAAA;EACA,OAAA,CAAA,EAAA,OAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;CACA,GAgCD,+BAAA,CAAA,SAhCC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAkCO,eAAA,CAhCA;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAoCN,OAAA,CAAM,cApCA,CAAA,KAAA,CAAA,GAoCwB,YApCxB,CAAA,OAoC4C,uBApC5C,CAAA,CAAA,EAoCoE,mBAAA,CAAA,GAAA,CAAA,OApCpE;iBA+CA,iBAAA,CA9Ca;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiDnB,OAAA,CAAM,cAjDa,CAAA,KAAA,CAAA,CAAA,EAiDQ,mBAAA,CAAA,GAAA,CAAA,OAjDR;iBA8Db,eAAA,CA9DP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiEC,OAAA,CAAM,cAjEP,CAAA,MAAA,CAAA,CAAA,EAiE6B,mBAAA,CAAA,GAAA,CAAA,OAjE7B;iBA8EO,qBAAA,CA5EN;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+EA,OAAA,CAAM,cA/EN,CAAA,MAAA,CAAA,CAAA,EA+E4B,mBAAA,CAAA,GAAA,CAAA,OA/E5B;iBA6FM,iBAAA,CA7FN;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgGA,OAAA,CAAM,cAhGN,CAAA,KAAA,CAAA,CAAA,EAgG2B,mBAAA,CAAA,GAAA,CAAA,OAhG3B;AAAA,iBA6GM,gBAAA,CAlFR;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAuFE,OAAA,CAAM,cAvFR,CAAA,OAuF8B,MAvF9B,CAAA,CAAA,EAuFqC,mBAAA,CAAA,GAAA,CAAA,OAvFrC;iBAmGQ,iBAAA,CAjGe;EAAA,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAsGrB,SAAA,CAAU,cAtGW,CAAA,QAAA,CAAA,CAAA,EAsGa,OAAA,CAAA,YAtGb,CAAA,OAAA,EAAA,MAAA,GAsGa,OAAA,CAAA,qBAtGb,CAAA,GAAA,CAAA,CAAA;iBAuHf,eAAA,CAtHP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsHgD,OAAA,CAAM,cAtHtD,CAAA,KAAA,CAAA,CAAA,EAsH2E,mBAAA,CAAA,GAAA,CAAA,OAtH3E"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
2
|
+
import { t as Button } from "../button-Cp2S1spE.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
7
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
8
|
+
|
|
9
|
+
//#region src/components/attachment.tsx
|
|
10
|
+
const attachmentVariants = cva("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", { variants: {
|
|
11
|
+
size: {
|
|
12
|
+
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",
|
|
13
|
+
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",
|
|
14
|
+
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"
|
|
15
|
+
},
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: "min-w-40 items-center",
|
|
18
|
+
vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
|
|
19
|
+
}
|
|
20
|
+
} });
|
|
21
|
+
function Attachment({ className, state = "done", size = "default", orientation = "horizontal", ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx("div", {
|
|
23
|
+
"data-slot": "attachment",
|
|
24
|
+
"data-state": state,
|
|
25
|
+
"data-size": size,
|
|
26
|
+
"data-orientation": orientation,
|
|
27
|
+
className: cn(attachmentVariants({
|
|
28
|
+
size,
|
|
29
|
+
orientation
|
|
30
|
+
}), className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const attachmentMediaVariants = cva("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground 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-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive 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", {
|
|
35
|
+
variants: { variant: {
|
|
36
|
+
icon: "",
|
|
37
|
+
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"
|
|
38
|
+
} },
|
|
39
|
+
defaultVariants: { variant: "icon" }
|
|
40
|
+
});
|
|
41
|
+
function AttachmentMedia({ className, variant = "icon", ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
"data-slot": "attachment-media",
|
|
44
|
+
"data-variant": variant,
|
|
45
|
+
className: cn(attachmentMediaVariants({ variant }), className),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function AttachmentContent({ className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsx("div", {
|
|
51
|
+
"data-slot": "attachment-content",
|
|
52
|
+
className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function AttachmentTitle({ className, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx("span", {
|
|
58
|
+
"data-slot": "attachment-title",
|
|
59
|
+
className: cn("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function AttachmentDescription({ className, ...props }) {
|
|
64
|
+
return /* @__PURE__ */ jsx("span", {
|
|
65
|
+
"data-slot": "attachment-description",
|
|
66
|
+
className: cn("mt-0.5 block min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80", "max-w-full", className),
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function AttachmentActions({ className, ...props }) {
|
|
71
|
+
return /* @__PURE__ */ jsx("div", {
|
|
72
|
+
"data-slot": "attachment-actions",
|
|
73
|
+
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function AttachmentAction({ className, variant, size = "icon-xs", ...props }) {
|
|
78
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
79
|
+
"data-slot": "attachment-action",
|
|
80
|
+
variant: variant ?? "ghost",
|
|
81
|
+
size,
|
|
82
|
+
className: cn(className),
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function AttachmentTrigger({ className, render, type, ...props }) {
|
|
87
|
+
return useRender({
|
|
88
|
+
defaultTagName: "button",
|
|
89
|
+
props: mergeProps({
|
|
90
|
+
type: render ? type : type ?? "button",
|
|
91
|
+
className: cn("absolute inset-0 z-10 outline-none", className)
|
|
92
|
+
}, props),
|
|
93
|
+
render,
|
|
94
|
+
state: { slot: "attachment-trigger" }
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function AttachmentGroup({ className, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ jsx("div", {
|
|
99
|
+
"data-slot": "attachment-group",
|
|
100
|
+
className: cn("flex min-w-0 scroll-fade-x 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", className),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger };
|
|
107
|
+
//# sourceMappingURL=attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.js","names":[],"sources":["../../src/components/attachment.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { mergeProps } from \"@base-ui/react/merge-props\"\nimport { useRender } from \"@base-ui/react/use-render\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\nimport { Button } from \"@px-ui/ui/components/button\"\n\nconst attachmentVariants = cva(\n \"group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 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\"> &\n VariantProps<typeof attachmentVariants> & {\n state?: \"idle\" | \"uploading\" | \"processing\" | \"error\" | \"done\"\n }) {\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 \"relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground 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-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive 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>) {\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({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\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({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"attachment-title\"\n className={cn(\n \"block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AttachmentDescription({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"attachment-description\"\n className={cn(\n \"mt-0.5 block min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80\",\n \"max-w-full\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AttachmentActions({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\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:top-3 group-data-[orientation=vertical]/attachment:end-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>) {\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 render,\n type,\n ...props\n}: useRender.ComponentProps<\"button\">) {\n return useRender({\n defaultTagName: \"button\",\n props: mergeProps<\"button\">(\n {\n type: render ? type : (type ?? \"button\"),\n className: cn(\"absolute inset-0 z-10 outline-none\", className),\n },\n props\n ),\n render,\n state: {\n slot: \"attachment-trigger\",\n },\n })\n}\n\nfunction AttachmentGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"attachment-group\"\n className={cn(\n \"flex min-w-0 scroll-fade-x 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 AttachmentGroup,\n AttachmentMedia,\n AttachmentContent,\n AttachmentTitle,\n AttachmentDescription,\n AttachmentActions,\n AttachmentAction,\n AttachmentTrigger,\n}\n"],"mappings":";;;;;;;;;AAQA,MAAM,qBAAqB,IACzB,ySACA,EACE,UAAU;CACR,MAAM;EACJ,SACE;EACF,IAAI;EACJ,IAAI;EACL;CACD,aAAa;EACX,YAAY;EACZ,UAAU;EACX;CACF,EACF,CACF;AAED,SAAS,WAAW,EAClB,WACA,QAAQ,QACR,OAAO,WACP,cAAc,cACd,GAAG,SAIA;AACH,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,aAAW;EACX,oBAAkB;EAClB,WAAW,GAAG,mBAAmB;GAAE;GAAM;GAAa,CAAC,EAAE,UAAU;EACnE,GAAI;GACJ;;AAIN,MAAM,0BAA0B,IAC9B,orBACA;CACE,UAAU,EACR,SAAS;EACP,MAAM;EACN,OACE;EACH,EACF;CACD,iBAAiB,EACf,SAAS,QACV;CACF,CACF;AAED,SAAS,gBAAgB,EACvB,WACA,UAAU,QACV,GAAG,SAC0E;AAC7E,QACE,oBAAC;EACC,aAAU;EACV,gBAAc;EACd,WAAW,GAAG,wBAAwB,EAAE,SAAS,CAAC,EAAE,UAAU;EAC9D,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;AAC9B,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,6FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EACvB,WACA,GAAG,SAC4B;AAC/B,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,kJACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,sBAAsB,EAC7B,WACA,GAAG,SAC4B;AAC/B,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,uHACA,cACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;AAC9B,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,2PACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,SACA,OAAO,WACP,GAAG,SACmC;AACtC,QACE,oBAAC;EACC,aAAU;EACV,SAAS,WAAW;EACd;EACN,WAAW,GAAG,UAAU;EACxB,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,QACA,MACA,GAAG,SACkC;AACrC,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL;GACE,MAAM,SAAS,OAAQ,QAAQ;GAC/B,WAAW,GAAG,sCAAsC,UAAU;GAC/D,EACD,MACD;EACD;EACA,OAAO,EACL,MAAM,sBACP;EACF,CAAC;;AAGJ,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAsC;AAC7E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,sMACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as AvatarProps } from "../avatar-
|
|
2
|
-
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
1
|
+
import { o as AvatarProps } from "../avatar-cLlUF5Lz.js";
|
|
3
2
|
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/avatar-group.d.ts
|
|
6
6
|
type AvatarItem = {
|
|
@@ -20,11 +20,11 @@ declare function AvatarGroup({
|
|
|
20
20
|
max,
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: AvatarGroupProps):
|
|
23
|
+
}: AvatarGroupProps): react_jsx_runtime85.JSX.Element;
|
|
24
24
|
declare function AvatarGroupCount({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React$1.ComponentProps<"div">):
|
|
27
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { AvatarGroup, AvatarGroupCount, type AvatarGroupProps, type AvatarItem };
|
|
30
30
|
//# sourceMappingURL=avatar-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-group.d.ts","names":[],"sources":["../../src/components/avatar-group.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,UAAA;;;EAAA,IAAA,CAAA,EAAA,MAAU,GAAA,IAAA;EASV,IAAA,CAAA,EALI,WAKJ,CAAgB,MAAA,CAAA;EAAQ,OAAM,CAAA,EAJvB,WAIuB,CAAA,SAAA,CAAA;EAAX,SAAA,CAAA,EAAA,MAAA;CACb;KADN,gBAAA,GAAmB,IACH,CADQ,OAAA,CAAM,cACd,CAAA,KAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAIZ,OAAA,EAJE,UAIS,EAAA;EAAG,GAAA,CAAA,EAAA,MAAA;CAAS;iBAAvB,WAAA,CAA4B;EAAA,OAAA;EAAA,GAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAuB,gBAAvB,CAAA,EAAuC,
|
|
1
|
+
{"version":3,"file":"avatar-group.d.ts","names":[],"sources":["../../src/components/avatar-group.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,UAAA;;;EAAA,IAAA,CAAA,EAAA,MAAU,GAAA,IAAA;EASV,IAAA,CAAA,EALI,WAKJ,CAAgB,MAAA,CAAA;EAAQ,OAAM,CAAA,EAJvB,WAIuB,CAAA,SAAA,CAAA;EAAX,SAAA,CAAA,EAAA,MAAA;CACb;KADN,gBAAA,GAAmB,IACH,CADQ,OAAA,CAAM,cACd,CAAA,KAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAIZ,OAAA,EAJE,UAIS,EAAA;EAAG,GAAA,CAAA,EAAA,MAAA;CAAS;iBAAvB,WAAA,CAA4B;EAAA,OAAA;EAAA,GAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAuB,gBAAvB,CAAA,EAAuC,mBAAA,CAAA,GAAA,CAAA,OAAvC;iBA4E5B,gBAAA,CA5EmD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+EzD,OAAA,CAAM,cA/EmD,CAAA,KAAA,CAAA,CAAA,EA+E9B,mBAAA,CAAA,GAAA,CAAA,OA/E8B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { r as TooltipProvider } from "../tooltip-
|
|
3
|
-
import { i as AvatarImage, r as AvatarFallback, t as Avatar } from "../avatar-
|
|
4
|
-
import { n as PopoverContent, o as PopoverTrigger, t as Popover } from "../popover-
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
2
|
+
import { r as TooltipProvider } from "../tooltip-BhxGE3Gb.js";
|
|
3
|
+
import { i as AvatarImage, r as AvatarFallback, t as Avatar } from "../avatar-a40DzPi3.js";
|
|
4
|
+
import { n as PopoverContent, o as PopoverTrigger, t as Popover } from "../popover-CsTnnBvx.js";
|
|
6
5
|
import "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/avatar-group.tsx
|
|
9
9
|
function AvatarGroup({ avatars, max, className, ...props }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarImage, c as getAvatarLabelFromChildren, i as AvatarFallbackProps, l as getInitialsFromName, n as AvatarBadge, o as AvatarProps, r as AvatarFallback, s as getAvatarColorByName, t as Avatar } from "../avatar-
|
|
1
|
+
import { a as AvatarImage, c as getAvatarLabelFromChildren, i as AvatarFallbackProps, l as getInitialsFromName, n as AvatarBadge, o as AvatarProps, r as AvatarFallback, s as getAvatarColorByName, t as Avatar } from "../avatar-cLlUF5Lz.js";
|
|
2
2
|
export { Avatar, AvatarBadge, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarProps, getAvatarColorByName, getAvatarLabelFromChildren, getInitialsFromName };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../utils-
|
|
2
|
-
import "../tooltip-
|
|
3
|
-
import { a as getAvatarColorByName, i as AvatarImage, n as AvatarBadge, o as getAvatarLabelFromChildren, r as AvatarFallback, s as getInitialsFromName, t as Avatar } from "../avatar-
|
|
1
|
+
import "../utils-DeIaBj75.js";
|
|
2
|
+
import "../tooltip-BhxGE3Gb.js";
|
|
3
|
+
import { a as getAvatarColorByName, i as AvatarImage, n as AvatarBadge, o as getAvatarLabelFromChildren, r as AvatarFallback, s as getInitialsFromName, t as Avatar } from "../avatar-a40DzPi3.js";
|
|
4
4
|
|
|
5
5
|
export { Avatar, AvatarBadge, AvatarFallback, AvatarImage, getAvatarColorByName, getAvatarLabelFromChildren, getInitialsFromName };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/badge.d.ts
|
|
7
7
|
declare const badgeVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Badge({
|
|
11
11
|
className,
|
|
12
12
|
variant,
|
package/dist/components/badge.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
1
|
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
|
|
5
5
|
//#region src/components/breadcrumb.d.ts
|
|
6
6
|
declare function Breadcrumb({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<"nav">):
|
|
9
|
+
}: React$1.ComponentProps<"nav">): react_jsx_runtime92.JSX.Element;
|
|
10
10
|
declare function BreadcrumbList({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.ComponentProps<"ol">):
|
|
13
|
+
}: React$1.ComponentProps<"ol">): react_jsx_runtime92.JSX.Element;
|
|
14
14
|
declare function BreadcrumbItem({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.ComponentProps<"li">):
|
|
17
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime92.JSX.Element;
|
|
18
18
|
declare function BreadcrumbLink({
|
|
19
19
|
className,
|
|
20
20
|
render,
|
|
@@ -23,16 +23,16 @@ declare function BreadcrumbLink({
|
|
|
23
23
|
declare function BreadcrumbPage({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React$1.ComponentProps<"span">):
|
|
26
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime92.JSX.Element;
|
|
27
27
|
declare function BreadcrumbSeparator({
|
|
28
28
|
children,
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentProps<"li">):
|
|
31
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime92.JSX.Element;
|
|
32
32
|
declare function BreadcrumbEllipsis({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React$1.ComponentProps<"span">):
|
|
35
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime92.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
38
38
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
2
|
+
import "react";
|
|
2
3
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import "react";
|
|
5
5
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
7
7
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/bubble.d.ts
|
|
8
|
+
declare function BubbleGroup({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime98.JSX.Element;
|
|
12
|
+
declare const bubbleVariants: (props?: ({
|
|
13
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "muted" | "tinted" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
15
|
+
declare function Bubble({
|
|
16
|
+
variant,
|
|
17
|
+
align,
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
|
|
21
|
+
align?: "start" | "end";
|
|
22
|
+
}): react_jsx_runtime98.JSX.Element;
|
|
23
|
+
declare function BubbleContent({
|
|
24
|
+
className,
|
|
25
|
+
render,
|
|
26
|
+
...props
|
|
27
|
+
}: useRender.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
28
|
+
declare function BubbleReactions({
|
|
29
|
+
side,
|
|
30
|
+
align,
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React$1.ComponentProps<"div"> & {
|
|
34
|
+
align?: "start" | "end";
|
|
35
|
+
side?: "top" | "bottom";
|
|
36
|
+
}): react_jsx_runtime98.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
39
|
+
//# sourceMappingURL=bubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubble.d.ts","names":[],"sources":["../../src/components/bubble.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAOS,WAAA;;;GAAqC,OAAA,CAAM,wBAAqB,mBAAA,CAAA,GAAA,CAAA;cAUnE;;IAyBL,+BAAA,CAAA;AAvCgE,iBAyCxD,MAAA,CArCW;EAAA,OAAA;EAAA,KAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EA0CjB,OAAA,CAAM,cA1CW,CAAA,KAAA,CAAA,GA2ClB,YA3CkB,CAAA,OA2CE,cA3CF,CAAA,GAAA;EAAG,KAAA,CAAA,EAAA,OAAA,GAAA,KAAA;CAAuB,CAAA,EA6C3C,mBAAA,CAAA,GAAA,CAAA,OA7CiD;iBAyD3C,aAAA,CAzDgE;EAAA,SAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EA6DtE,SAAA,CAAU,cA7D4D,CAAA,KAAA,CAAA,CAAA,EA6DvC,OAAA,CAAA,YA7DuC,CAAA,OAAA,EAAA,MAAA,GA6DvC,OAAA,CAAA,qBA7DuC,CAAA,GAAA,CAAA,CAAA;iBAoGhE,eAAA,CApGgE;EAAA,IAAA;EAAA,KAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAyGtE,OAAA,CAAM,cAzGgE,CAAA,KAAA,CAAA,GAAA;EAUnE,KAAA,CAAA,EAAA,OAAA,GAyBL,KAAA;EAEQ,IAAA,CAAA,EAAA,KAAM,GAAA,QAAA;CACb,CAAA,EAsED,mBAAA,CAAA,GAAA,CAAA,OAtEC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
+
|
|
8
|
+
//#region src/components/bubble.tsx
|
|
9
|
+
function BubbleGroup({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11
|
+
"data-slot": "bubble-group",
|
|
12
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const bubbleVariants = cva("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", {
|
|
17
|
+
variants: { variant: {
|
|
18
|
+
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",
|
|
19
|
+
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%)]",
|
|
20
|
+
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%)]",
|
|
21
|
+
tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground 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)]",
|
|
22
|
+
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",
|
|
23
|
+
ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[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",
|
|
24
|
+
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"
|
|
25
|
+
} },
|
|
26
|
+
defaultVariants: { variant: "default" }
|
|
27
|
+
});
|
|
28
|
+
function Bubble({ variant = "default", align = "start", className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsx("div", {
|
|
30
|
+
"data-slot": "bubble",
|
|
31
|
+
"data-variant": variant,
|
|
32
|
+
"data-align": align,
|
|
33
|
+
className: cn(bubbleVariants({ variant }), className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function BubbleContent({ className, render, ...props }) {
|
|
38
|
+
return useRender({
|
|
39
|
+
defaultTagName: "div",
|
|
40
|
+
props: mergeProps({ className: cn("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:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", className) }, props),
|
|
41
|
+
render,
|
|
42
|
+
state: { slot: "bubble-content" }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
|
|
46
|
+
variants: {
|
|
47
|
+
side: {
|
|
48
|
+
top: "top-0 -translate-y-3/4",
|
|
49
|
+
bottom: "bottom-0 translate-y-3/4"
|
|
50
|
+
},
|
|
51
|
+
align: {
|
|
52
|
+
start: "start-3",
|
|
53
|
+
end: "end-3"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
side: "bottom",
|
|
58
|
+
align: "end"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
function BubbleReactions({ side = "bottom", align = "end", className, ...props }) {
|
|
62
|
+
return /* @__PURE__ */ jsx("div", {
|
|
63
|
+
"data-slot": "bubble-reactions",
|
|
64
|
+
"data-align": align,
|
|
65
|
+
"data-side": side,
|
|
66
|
+
className: cn(bubbleReactionsVariants({
|
|
67
|
+
side,
|
|
68
|
+
align
|
|
69
|
+
}), className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
76
|
+
//# sourceMappingURL=bubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubble.js","names":[],"sources":["../../src/components/bubble.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { mergeProps } from \"@base-ui/react/merge-props\"\nimport { useRender } from \"@base-ui/react/use-render\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\n\nfunction BubbleGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"bubble-group\"\n className={cn(\"flex min-w-0 flex-col gap-2\", className)}\n {...props}\n />\n )\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]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground 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 \"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[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\",\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\"> &\n VariantProps<typeof bubbleVariants> & {\n align?: \"start\" | \"end\"\n }) {\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({\n className,\n render,\n ...props\n}: useRender.ComponentProps<\"div\">) {\n return useRender({\n defaultTagName: \"div\",\n props: mergeProps<\"div\">(\n {\n className: cn(\n \"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:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50\",\n className\n ),\n },\n props\n ),\n render,\n state: {\n slot: \"bubble-content\",\n },\n })\n}\n\nconst bubbleReactionsVariants = cva(\n \"absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card 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\"> & {\n align?: \"start\" | \"end\"\n side?: \"top\" | \"bottom\"\n}) {\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 { BubbleGroup, Bubble, BubbleContent, BubbleReactions }\n"],"mappings":";;;;;;;;AAOA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;GACJ;;AAIN,MAAM,iBAAiB,IACrB,yKACA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,WACE;EACF,OACE;EACF,QACE;EACF,SACE;EACF,OACE;EACF,aACE;EACH,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAED,SAAS,OAAO,EACd,UAAU,WACV,QAAQ,SACR,WACA,GAAG,SAIA;AACH,QACE,oBAAC;EACC,aAAU;EACV,gBAAc;EACd,cAAY;EACZ,WAAW,GAAG,eAAe,EAAE,SAAS,CAAC,EAAE,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,cAAc,EACrB,WACA,QACA,GAAG,SAC+B;AAClC,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL,EACE,WAAW,GACT,8VACA,UACD,EACF,EACD,MACD;EACD;EACA,OAAO,EACL,MAAM,kBACP;EACF,CAAC;;AAGJ,MAAM,0BAA0B,IAC9B,qJACA;CACE,UAAU;EACR,MAAM;GACJ,KAAK;GACL,QAAQ;GACT;EACD,OAAO;GACL,OAAO;GACP,KAAK;GACN;EACF;CACD,iBAAiB;EACf,MAAM;EACN,OAAO;EACR;CACF,CACF;AAED,SAAS,gBAAgB,EACvB,OAAO,UACP,QAAQ,OACR,WACA,GAAG,SAIF;AACD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,aAAW;EACX,WAAW,GAAG,wBAAwB;GAAE;GAAM;GAAO,CAAC,EAAE,UAAU;EAClE,GAAI;GACJ"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
2
|
-
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
1
|
+
import { t as Separator } from "../separator-pyhTqgkN.js";
|
|
3
2
|
import * as react1 from "react";
|
|
3
|
+
import * as react_jsx_runtime111 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region src/components/button-group.d.ts
|
|
9
9
|
declare const buttonGroupVariants: (props?: ({
|
|
10
|
-
orientation?: "
|
|
11
|
-
} &
|
|
10
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
12
12
|
declare function ButtonGroup({
|
|
13
13
|
className,
|
|
14
14
|
orientation,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>):
|
|
16
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime111.JSX.Element;
|
|
17
17
|
declare function ButtonGroupText({
|
|
18
18
|
className,
|
|
19
19
|
render,
|
|
@@ -23,7 +23,7 @@ declare function ButtonGroupSeparator({
|
|
|
23
23
|
className,
|
|
24
24
|
orientation,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Separator>):
|
|
26
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime111.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
29
29
|
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.d.ts","names":[],"sources":["../../src/components/button-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAOM;;IAeL,+BAAA,CAAA;iBAEQ,WAAA;;;;GAIN,KAAA,CAAM,wBAAwB,oBAAoB,uBAAoB,
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","names":[],"sources":["../../src/components/button-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAOM;;IAeL,+BAAA,CAAA;iBAEQ,WAAA;;;;GAIN,KAAA,CAAM,wBAAwB,oBAAoB,uBAAoB,oBAAA,CAAA,GAAA,CAAA;iBAYhE,eAAA;;;;GAIN,SAAA,CAAU,wBAAqB,MAAA,CAAA,+BAAP,MAAA,CAAO;AAvCwB,iBA0DjD,oBAAA,CAzCR;EAAA,SAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EA6CE,KAAA,CAAM,cA7CR,CAAA,OA6C8B,SA7C9B,CAAA,CAAA,EA6CwC,oBAAA,CAAA,GAAA,CAAA,OA7CxC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { t as Separator } from "../separator-
|
|
1
|
+
import { t as cn } from "../utils-DeIaBj75.js";
|
|
2
|
+
import { t as Separator } from "../separator-BQBOLUMc.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as buttonVariants, t as Button } from "../button-
|
|
1
|
+
import { n as buttonVariants, t as Button } from "../button-BJ727apo.js";
|
|
2
2
|
export { Button, buttonVariants };
|