@px-ui/ui 1.0.10 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{avatar-CbuG-kqF.d.ts → avatar-DTxH_yTY.d.ts} +6 -6
- package/dist/{avatar-CbuG-kqF.d.ts.map → avatar-DTxH_yTY.d.ts.map} +1 -1
- package/dist/{avatar-Bb0tx0Hn.js → avatar-DnDnGmSj.js} +3 -3
- package/dist/{avatar-Bb0tx0Hn.js.map → avatar-DnDnGmSj.js.map} +1 -1
- package/dist/{button-BkzvdmIX.d.ts → button-Cfd9X6pX.d.ts} +7 -7
- package/dist/{button-BkzvdmIX.d.ts.map → button-Cfd9X6pX.d.ts.map} +1 -1
- package/dist/{button-hBUFMmsZ.js → button-DnHwqwy0.js} +2 -2
- package/dist/{button-hBUFMmsZ.js.map → button-DnHwqwy0.js.map} +1 -1
- package/dist/checkbox-CwkX29tL.js +22 -0
- package/dist/checkbox-CwkX29tL.js.map +1 -0
- package/dist/collapsible-DsrYXIW5.js +28 -0
- package/dist/collapsible-DsrYXIW5.js.map +1 -0
- package/dist/{combobox-CHkmVNZ2.js → combobox-5IAivvXw.js} +8 -8
- package/dist/{combobox-CHkmVNZ2.js.map → combobox-5IAivvXw.js.map} +1 -1
- package/dist/{combobox-C5txQ2La.d.ts → combobox-BBMYGrI2.d.ts} +19 -19
- package/dist/{combobox-C5txQ2La.d.ts.map → combobox-BBMYGrI2.d.ts.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 +1 -1
- package/dist/components/alert-dialog.d.ts +14 -14
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.d.ts +7 -7
- package/dist/components/alert.js +1 -1
- 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 +4 -4
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/breadcrumb.js +1 -1
- 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 +6 -6
- 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 +2 -2
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +2 -2
- package/dist/components/chart.d.ts +5 -5
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +3 -21
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/collapsible.js +3 -27
- 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 +6 -6
- 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 +1 -1
- package/dist/components/currency-select-field.d.ts +4 -4
- package/dist/components/currency-select-field.js +11 -11
- package/dist/components/dialog.d.ts +11 -11
- 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.js +1 -1
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/editor-output.d.ts +87 -0
- package/dist/components/editor-output.d.ts.map +1 -0
- package/dist/components/editor-output.js +158 -0
- package/dist/components/editor-output.js.map +1 -0
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +3 -61
- package/dist/components/field.d.ts +15 -15
- package/dist/components/field.js +3 -3
- package/dist/components/file-upload-field.d.ts +3 -3
- package/dist/components/file-upload-field.js +5 -5
- 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/icon.d.ts +83 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +188 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/input-group.d.ts +9 -9
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/item.d.ts +14 -14
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +2 -2
- 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.d.ts.map +1 -1
- package/dist/components/menubar.js +7 -7
- package/dist/components/menubar.js.map +1 -1
- 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 +1 -1
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/phone-input.d.ts +2 -2
- package/dist/components/phone-input.js +1 -1
- package/dist/components/popover.d.ts +7 -7
- package/dist/components/popover.d.ts.map +1 -1
- 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/rich-text-editor.d.ts +204 -0
- package/dist/components/rich-text-editor.d.ts.map +1 -0
- package/dist/components/rich-text-editor.js +359 -0
- package/dist/components/rich-text-editor.js.map +1 -0
- package/dist/components/scroll-area.d.ts +13 -3
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +3 -38
- package/dist/components/select.d.ts +10 -10
- package/dist/components/select.js +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/sidebar.js +8 -8
- 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/sortable-list.d.ts +153 -0
- package/dist/components/sortable-list.d.ts.map +1 -0
- package/dist/components/sortable-list.js +191 -0
- package/dist/components/sortable-list.js.map +1 -0
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/stepper.d.ts +171 -0
- package/dist/components/stepper.d.ts.map +1 -0
- package/dist/components/stepper.js +281 -0
- package/dist/components/stepper.js.map +1 -0
- 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 +1 -1
- package/dist/components/tabs.d.ts +8 -8
- package/dist/components/tabs.d.ts.map +1 -1
- 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 +2 -2
- 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/components/tree-select.d.ts +192 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +421 -0
- package/dist/components/tree-select.js.map +1 -0
- package/dist/{dialog-DrdXva1a.js → dialog-DuGJUPQl.js} +3 -3
- package/dist/{dialog-DrdXva1a.js.map → dialog-DuGJUPQl.js.map} +1 -1
- package/dist/{dropdown-menu-CcumvwhM.js → dropdown-menu-BWEfcvmP.js} +19 -19
- package/dist/{dropdown-menu-CcumvwhM.js.map → dropdown-menu-BWEfcvmP.js.map} +1 -1
- package/dist/{dropdown-menu-BC7zFA2L.d.ts → dropdown-menu-DGgfWYrK.d.ts} +17 -17
- package/dist/{dropdown-menu-BC7zFA2L.d.ts.map → dropdown-menu-DGgfWYrK.d.ts.map} +1 -1
- package/dist/empty-U4zrLmFU.js +62 -0
- package/dist/empty-U4zrLmFU.js.map +1 -0
- package/dist/{file-upload-DoGu67Bu.d.ts → file-upload-BvAtAxLc.d.ts} +10 -10
- package/dist/{file-upload-DoGu67Bu.d.ts.map → file-upload-BvAtAxLc.d.ts.map} +1 -1
- package/dist/{file-upload-DeCIv13t.js → file-upload-DU5FAkHm.js} +4 -4
- package/dist/{file-upload-DeCIv13t.js.map → file-upload-DU5FAkHm.js.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-CoP6CeA5.d.ts → input-BExbcSu4.d.ts} +3 -3
- package/dist/input-BExbcSu4.d.ts.map +1 -0
- package/dist/{input-group-DqEkmpXW.js → input-group-B5PMRYld.js} +5 -5
- package/dist/{input-group-DqEkmpXW.js.map → input-group-B5PMRYld.js.map} +1 -1
- package/dist/{input-8jqdnUZl.js → input-jIoNIdLQ.js} +2 -2
- package/dist/{input-8jqdnUZl.js.map → input-jIoNIdLQ.js.map} +1 -1
- package/dist/label-BFg2hxuL.d.ts +11 -0
- package/dist/label-BFg2hxuL.d.ts.map +1 -0
- package/dist/{label-AaH9ZYCZ.js → label-DsRhOKY_.js} +2 -2
- package/dist/{label-AaH9ZYCZ.js.map → label-DsRhOKY_.js.map} +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{popover-C9D43EuT.js → popover-BGkU46G7.js} +2 -2
- package/dist/{popover-C9D43EuT.js.map → popover-BGkU46G7.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/scroll-area-mNVMQ0Of.js +40 -0
- package/dist/scroll-area-mNVMQ0Of.js.map +1 -0
- package/dist/{separator-BS3ilczC.js → separator-D0bew2D_.js} +2 -2
- package/dist/{separator-BS3ilczC.js.map → separator-D0bew2D_.js.map} +1 -1
- package/dist/{separator-D0hWdzUT.d.ts → separator-Df76guaT.d.ts} +3 -3
- package/dist/{separator-D0hWdzUT.d.ts.map → separator-Df76guaT.d.ts.map} +1 -1
- package/dist/{sheet-CLjNDrfL.js → sheet-BB23q6wd.js} +3 -3
- package/dist/{sheet-CLjNDrfL.js.map → sheet-BB23q6wd.js.map} +1 -1
- package/dist/{skeleton-BcIxI5Wq.js → skeleton-knxLhbA5.js} +2 -2
- package/dist/{skeleton-BcIxI5Wq.js.map → skeleton-knxLhbA5.js.map} +1 -1
- package/dist/{spinner-Bo0sUZEg.js → spinner-9MdgLDTZ.js} +2 -2
- package/dist/{spinner-Bo0sUZEg.js.map → spinner-9MdgLDTZ.js.map} +1 -1
- package/dist/styles.css +665 -1
- package/dist/{textarea-Cq0o323P.js → textarea-hZg0gA8u.js} +2 -2
- package/dist/{textarea-Cq0o323P.js.map → textarea-hZg0gA8u.js.map} +1 -1
- package/dist/{toast-COWAQbIk.js → toast-BdxoP8vz.js} +2 -2
- package/dist/{toast-COWAQbIk.js.map → toast-BdxoP8vz.js.map} +1 -1
- package/dist/{toast-DkzzdXGU.d.ts → toast-C5FRpq1P.d.ts} +4 -4
- package/dist/{toast-DkzzdXGU.d.ts.map → toast-C5FRpq1P.d.ts.map} +1 -1
- package/dist/{toggle-lqIyJptS.js → toggle-BZXrLBLK.js} +2 -2
- package/dist/{toggle-lqIyJptS.js.map → toggle-BZXrLBLK.js.map} +1 -1
- package/dist/{toggle-Dq3ftPFj.d.ts → toggle-CyTngkhT.d.ts} +6 -6
- package/dist/{toggle-Dq3ftPFj.d.ts.map → toggle-CyTngkhT.d.ts.map} +1 -1
- package/dist/{tooltip-DBoqfN9z.d.ts → tooltip-CkX3CD71.d.ts} +6 -6
- package/dist/{tooltip-DBoqfN9z.d.ts.map → tooltip-CkX3CD71.d.ts.map} +1 -1
- package/dist/{tooltip-DkPxCJIL.js → tooltip-Dsfn_zZD.js} +2 -2
- package/dist/{tooltip-DkPxCJIL.js.map → tooltip-Dsfn_zZD.js.map} +1 -1
- package/dist/{use-async-options-Cu5T43vj.d.ts → use-async-options-DdyHJxHh.d.ts} +1 -1
- package/dist/{use-async-options-Cu5T43vj.d.ts.map → use-async-options-DdyHJxHh.d.ts.map} +1 -1
- package/dist/{use-async-options-CcsImGX4.js → use-async-options-tueAuVs_.js} +1 -1
- package/dist/{use-async-options-CcsImGX4.js.map → use-async-options-tueAuVs_.js.map} +1 -1
- package/dist/{use-debounce-_qaEZqtt.js → use-debounce-7gIeOwla.js} +1 -1
- package/dist/{use-debounce-_qaEZqtt.js.map → use-debounce-7gIeOwla.js.map} +1 -1
- package/dist/{use-file-upload-yy-xLBtn.d.ts → use-file-upload-Bc7CyQ7O.d.ts} +1 -1
- package/dist/{use-file-upload-yy-xLBtn.d.ts.map → use-file-upload-Bc7CyQ7O.d.ts.map} +1 -1
- package/dist/{use-file-upload-Dxrej28u.js → use-file-upload-DQD1vY_Z.js} +1 -1
- package/dist/{use-file-upload-Dxrej28u.js.map → use-file-upload-DQD1vY_Z.js.map} +1 -1
- package/dist/{use-infinite-scroll-CpbhGGT5.js → use-infinite-scroll-HpeMA2MK.js} +2 -2
- package/dist/{use-infinite-scroll-CpbhGGT5.js.map → use-infinite-scroll-HpeMA2MK.js.map} +1 -1
- package/dist/{use-intersection-observer-C2xDq2SW.d.ts → use-intersection-observer-DNPextJs.d.ts} +1 -1
- package/dist/{use-intersection-observer-C2xDq2SW.d.ts.map → use-intersection-observer-DNPextJs.d.ts.map} +1 -1
- package/dist/{use-intersection-observer-CZfnep4z.js → use-intersection-observer-rlKEjyL1.js} +1 -1
- package/dist/{use-intersection-observer-CZfnep4z.js.map → use-intersection-observer-rlKEjyL1.js.map} +1 -1
- package/dist/{use-mobile-l5ebOdQl.js → use-mobile-DUqQzj2D.js} +1 -1
- package/dist/{use-mobile-l5ebOdQl.js.map → use-mobile-DUqQzj2D.js.map} +1 -1
- package/dist/{utils-mWJR2N24.js → utils-DUlptRpf.js} +1 -1
- package/dist/{utils-mWJR2N24.js.map → utils-DUlptRpf.js.map} +1 -1
- package/package.json +81 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/empty.js.map +0 -1
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/input-CoP6CeA5.d.ts.map +0 -1
- package/dist/label-Dw4Hcz5k.d.ts +0 -11
- package/dist/label-Dw4Hcz5k.d.ts.map +0 -1
- /package/dist/{direction-BKSh6e6q.js → direction-DFPbwDSF.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Separator } from "../separator-Df76guaT.js";
|
|
2
|
+
import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -9,14 +9,14 @@ import * as class_variance_authority_types11 from "class-variance-authority/type
|
|
|
9
9
|
declare function ItemGroup({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<"div">):
|
|
12
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
13
13
|
declare function ItemSeparator({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<typeof Separator>):
|
|
16
|
+
}: React$1.ComponentProps<typeof Separator>): react_jsx_runtime200.JSX.Element;
|
|
17
17
|
declare const itemVariants: (props?: ({
|
|
18
|
-
variant?: "default" | "
|
|
19
|
-
size?: "default" | "
|
|
18
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
19
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
20
20
|
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
21
21
|
declare function Item({
|
|
22
22
|
className,
|
|
@@ -26,37 +26,37 @@ declare function Item({
|
|
|
26
26
|
...props
|
|
27
27
|
}: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
28
28
|
declare const itemMediaVariants: (props?: ({
|
|
29
|
-
variant?: "
|
|
29
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
30
30
|
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
31
31
|
declare function ItemMedia({
|
|
32
32
|
className,
|
|
33
33
|
variant,
|
|
34
34
|
...props
|
|
35
|
-
}: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>):
|
|
35
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime200.JSX.Element;
|
|
36
36
|
declare function ItemContent({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React$1.ComponentProps<"div">):
|
|
39
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
40
40
|
declare function ItemTitle({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React$1.ComponentProps<"div">):
|
|
43
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
44
44
|
declare function ItemDescription({
|
|
45
45
|
className,
|
|
46
46
|
...props
|
|
47
|
-
}: React$1.ComponentProps<"p">):
|
|
47
|
+
}: React$1.ComponentProps<"p">): react_jsx_runtime200.JSX.Element;
|
|
48
48
|
declare function ItemActions({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React$1.ComponentProps<"div">):
|
|
51
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
52
52
|
declare function ItemHeader({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React$1.ComponentProps<"div">):
|
|
55
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
56
56
|
declare function ItemFooter({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React$1.ComponentProps<"div">):
|
|
59
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|
|
62
62
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/components/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAQS,SAAA;;;GAAmC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAc9D,aAAA;;;GAGN,OAAA,CAAM,sBAAsB,aAAU,oBAAA,CAAA,GAAA,CAAA;cAWnC,oBA5Be;;EAAZ,IAAA,CAAA,EAAA,SAAS,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAAG,GAgDpB,gCAAA,CAAA,SAhDoB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAkDZ,IAAA,CAlDyC;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAwD/C,SAAA,CAAU,cAxDqC,CAAA,KAAA,CAAA,GAwDb,YAxDa,CAAA,OAwDO,YAxDP,CAAA,CAAA,EAwDoB,OAAA,CAAA,YAxDpB,CAAA,OAAA,EAAA,MAAA,GAwDoB,OAAA,CAAA,qBAxDpB,CAAA,GAAA,CAAA,CAAA;cA0E5C,iBA1EiE,EAAA,CAAA,KAcjD,CAdiD,EAAA,CAAA;EAAA,OAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/components/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAQS,SAAA;;;GAAmC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAc9D,aAAA;;;GAGN,OAAA,CAAM,sBAAsB,aAAU,oBAAA,CAAA,GAAA,CAAA;cAWnC,oBA5Be;;EAAZ,IAAA,CAAA,EAAA,SAAS,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAAG,GAgDpB,gCAAA,CAAA,SAhDoB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAkDZ,IAAA,CAlDyC;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAwD/C,SAAA,CAAU,cAxDqC,CAAA,KAAA,CAAA,GAwDb,YAxDa,CAAA,OAwDO,YAxDP,CAAA,CAAA,EAwDoB,OAAA,CAAA,YAxDpB,CAAA,OAAA,EAAA,MAAA,GAwDoB,OAAA,CAAA,qBAxDpB,CAAA,GAAA,CAAA,CAAA;cA0E5C,iBA1EiE,EAAA,CAAA,KAcjD,CAdiD,EAAA,CAAA;EAAA,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;AAAA,CAAA,GAyFtE,gCAAA,CAAA,SA3EqB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBA6Eb,SAAA,CA5EP;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAgFC,OAAA,CAAM,cAhFP,CAAA,KAAA,CAAA,GAgF+B,YAhF/B,CAAA,OAgFmD,iBAhFnD,CAAA,CAAA,EAgFqE,oBAAA,CAAA,GAAA,CAAA,OAhFrE;iBA2FO,WAAA,CAzFsB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyFe,OAAA,CAAM,cAzFrB,CAAA,KAAA,CAAA,CAAA,EAyF0C,oBAAA,CAAA,GAAA,CAAA,OAzF1C;iBAsGtB,SAAA,CAtGA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsGmC,OAAA,CAAM,cAtGzC,CAAA,KAAA,CAAA,CAAA,EAsG8D,oBAAA,CAAA,GAAA,CAAA,OAtG9D;iBAmHA,eAAA,CAnHgC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmHS,OAAA,CAAM,cAnHf,CAAA,GAAA,CAAA,CAAA,EAmHkC,oBAAA,CAAA,GAAA,CAAA,OAnHlC;iBAgIhC,WAAA,CAhIgC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgIK,OAAA,CAAM,cAhIX,CAAA,KAAA,CAAA,CAAA,EAgIgC,oBAAA,CAAA,GAAA,CAAA,OAhIhC;AAAA,iBA0IhC,UAAA,CA3GR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2G4C,OAAA,CAAM,cA3GlD,CAAA,KAAA,CAAA,CAAA,EA2GuE,oBAAA,CAAA,GAAA,CAAA,OA3GvE;iBAwHQ,UAAA,CAtHI;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsHgC,OAAA,CAAM,cAtHtC,CAAA,KAAA,CAAA,CAAA,EAsH2D,oBAAA,CAAA,GAAA,CAAA,OAtH3D"}
|
package/dist/components/item.js
CHANGED
|
@@ -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-DUlptRpf.js";
|
|
2
|
+
import { t as Separator } from "../separator-D0bew2D_.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
package/dist/components/kbd.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime215 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/kbd.d.ts
|
|
4
4
|
declare function Kbd({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"kbd">):
|
|
7
|
+
}: React.ComponentProps<"kbd">): react_jsx_runtime215.JSX.Element;
|
|
8
8
|
declare function KbdGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"div">):
|
|
11
|
+
}: React.ComponentProps<"div">): react_jsx_runtime215.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Kbd, KbdGroup };
|
|
14
14
|
//# sourceMappingURL=kbd.d.ts.map
|
package/dist/components/kbd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Label } from "../label-
|
|
1
|
+
import { t as Label } from "../label-BFg2hxuL.js";
|
|
2
2
|
export { Label };
|
package/dist/components/label.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime226 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
+
import * as class_variance_authority_types13 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/marker.d.ts
|
|
8
|
+
declare const markerVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "separator" | "border" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types13.ClassProp) | undefined) => string;
|
|
11
|
+
declare function Marker({
|
|
12
|
+
className,
|
|
13
|
+
variant,
|
|
14
|
+
render,
|
|
15
|
+
...props
|
|
16
|
+
}: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
17
|
+
declare function MarkerIcon({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime226.JSX.Element;
|
|
21
|
+
declare function MarkerContent({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime226.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
27
|
+
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.d.ts","names":[],"sources":["../../src/components/marker.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAOM;;IAYL,gCAAA,CAAA;iBAEQ,MAAA;;;;;GAKN,SAAA,CAAU,wBAAwB,oBAAoB,kBAAe,OAAA,CAAA,+BAAA,OAAA,CAAA;AAvBP,iBAwCxD,UAAA,CAxBR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwB4C,OAAA,CAAM,cAxBlD,CAAA,MAAA,CAAA,CAAA,EAwBwE,oBAAA,CAAA,GAAA,CAAA,OAxBxE;iBAsCQ,aAAA,CApCM;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAoCiC,OAAA,CAAM,cApCvC,CAAA,MAAA,CAAA,CAAA,EAoC6D,oBAAA,CAAA,GAAA,CAAA,OApC7D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
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/marker.tsx
|
|
9
|
+
const markerVariants = cva("group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground", { variants: { variant: {
|
|
10
|
+
default: "",
|
|
11
|
+
separator: "before:me-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ms-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
12
|
+
border: "border-b border-border pb-2"
|
|
13
|
+
} } });
|
|
14
|
+
function Marker({ className, variant = "default", render, ...props }) {
|
|
15
|
+
return useRender({
|
|
16
|
+
defaultTagName: "div",
|
|
17
|
+
props: mergeProps({ className: cn(markerVariants({
|
|
18
|
+
variant,
|
|
19
|
+
className
|
|
20
|
+
})) }, props),
|
|
21
|
+
render,
|
|
22
|
+
state: {
|
|
23
|
+
slot: "marker",
|
|
24
|
+
variant
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function MarkerIcon({ className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsx("span", {
|
|
30
|
+
"data-slot": "marker-icon",
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
className: cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function MarkerContent({ className, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx("span", {
|
|
38
|
+
"data-slot": "marker-content",
|
|
39
|
+
className: cn("min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
46
|
+
//# sourceMappingURL=marker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.js","names":[],"sources":["../../src/components/marker.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\nconst markerVariants = cva(\n \"group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground\",\n {\n variants: {\n variant: {\n default: \"\",\n separator:\n \"before:me-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ms-1 after:h-px after:min-w-0 after:flex-1 after:bg-border\",\n border: \"border-b border-border pb-2\",\n },\n },\n }\n)\n\nfunction Marker({\n className,\n variant = \"default\",\n render,\n ...props\n}: useRender.ComponentProps<\"div\"> & VariantProps<typeof markerVariants>) {\n return useRender({\n defaultTagName: \"div\",\n props: mergeProps<\"div\">(\n {\n className: cn(markerVariants({ variant, className })),\n },\n props\n ),\n render,\n state: {\n slot: \"marker\",\n variant,\n },\n })\n}\n\nfunction MarkerIcon({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"marker-icon\"\n aria-hidden=\"true\"\n className={cn(\n \"size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MarkerContent({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"marker-content\"\n className={cn(\n \"min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Marker, MarkerIcon, MarkerContent, markerVariants }\n"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,IACrB,6MACA,EACE,UAAU,EACR,SAAS;CACP,SAAS;CACT,WACE;CACF,QAAQ;CACT,EACF,EACF,CACF;AAED,SAAS,OAAO,EACd,WACA,UAAU,WACV,QACA,GAAG,SACqE;AACxE,QAAO,UAAU;EACf,gBAAgB;EAChB,OAAO,WACL,EACE,WAAW,GAAG,eAAe;GAAE;GAAS;GAAW,CAAC,CAAC,EACtD,EACD,MACD;EACD;EACA,OAAO;GACL,MAAM;GACN;GACD;EACF,CAAC;;AAGJ,SAAS,WAAW,EAAE,WAAW,GAAG,SAAuC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,eAAY;EACZ,WAAW,GACT,wDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,cAAc,EAAE,WAAW,GAAG,SAAuC;AAC5E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,kMACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, m as DropdownMenuSubTrigger, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-menu-
|
|
2
|
-
import * as
|
|
1
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, m as DropdownMenuSubTrigger, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-menu-DGgfWYrK.js";
|
|
2
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { Menu } from "@base-ui/react/menu";
|
|
5
5
|
import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
|
|
@@ -8,33 +8,33 @@ import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
|
|
|
8
8
|
declare function Menubar({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: Menubar$1.Props):
|
|
11
|
+
}: Menubar$1.Props): react_jsx_runtime48.JSX.Element;
|
|
12
12
|
declare function MenubarMenu({
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof DropdownMenu>):
|
|
14
|
+
}: React$1.ComponentProps<typeof DropdownMenu>): react_jsx_runtime48.JSX.Element;
|
|
15
15
|
declare function MenubarGroup({
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof DropdownMenuGroup>):
|
|
17
|
+
}: React$1.ComponentProps<typeof DropdownMenuGroup>): react_jsx_runtime48.JSX.Element;
|
|
18
18
|
declare function MenubarPortal({
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.ComponentProps<typeof DropdownMenuPortal>):
|
|
20
|
+
}: React$1.ComponentProps<typeof DropdownMenuPortal>): react_jsx_runtime48.JSX.Element;
|
|
21
21
|
declare function MenubarTrigger({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<typeof DropdownMenuTrigger>):
|
|
24
|
+
}: React$1.ComponentProps<typeof DropdownMenuTrigger>): react_jsx_runtime48.JSX.Element;
|
|
25
25
|
declare function MenubarContent({
|
|
26
26
|
className,
|
|
27
27
|
align,
|
|
28
28
|
alignOffset,
|
|
29
29
|
sideOffset,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof DropdownMenuContent>):
|
|
31
|
+
}: React$1.ComponentProps<typeof DropdownMenuContent>): react_jsx_runtime48.JSX.Element;
|
|
32
32
|
declare function MenubarItem({
|
|
33
33
|
className,
|
|
34
34
|
inset,
|
|
35
35
|
variant,
|
|
36
36
|
...props
|
|
37
|
-
}: React$1.ComponentProps<typeof DropdownMenuItem>):
|
|
37
|
+
}: React$1.ComponentProps<typeof DropdownMenuItem>): react_jsx_runtime48.JSX.Element;
|
|
38
38
|
declare function MenubarCheckboxItem({
|
|
39
39
|
className,
|
|
40
40
|
children,
|
|
@@ -43,10 +43,10 @@ declare function MenubarCheckboxItem({
|
|
|
43
43
|
...props
|
|
44
44
|
}: Menu.CheckboxItem.Props & {
|
|
45
45
|
inset?: boolean;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime48.JSX.Element;
|
|
47
47
|
declare function MenubarRadioGroup({
|
|
48
48
|
...props
|
|
49
|
-
}: React$1.ComponentProps<typeof DropdownMenuRadioGroup>):
|
|
49
|
+
}: React$1.ComponentProps<typeof DropdownMenuRadioGroup>): react_jsx_runtime48.JSX.Element;
|
|
50
50
|
declare function MenubarRadioItem({
|
|
51
51
|
className,
|
|
52
52
|
children,
|
|
@@ -54,36 +54,36 @@ declare function MenubarRadioItem({
|
|
|
54
54
|
...props
|
|
55
55
|
}: Menu.RadioItem.Props & {
|
|
56
56
|
inset?: boolean;
|
|
57
|
-
}):
|
|
57
|
+
}): react_jsx_runtime48.JSX.Element;
|
|
58
58
|
declare function MenubarLabel({
|
|
59
59
|
className,
|
|
60
60
|
inset,
|
|
61
61
|
...props
|
|
62
62
|
}: React$1.ComponentProps<typeof DropdownMenuLabel> & {
|
|
63
63
|
inset?: boolean;
|
|
64
|
-
}):
|
|
64
|
+
}): react_jsx_runtime48.JSX.Element;
|
|
65
65
|
declare function MenubarSeparator({
|
|
66
66
|
className,
|
|
67
67
|
...props
|
|
68
|
-
}: React$1.ComponentProps<typeof DropdownMenuSeparator>):
|
|
68
|
+
}: React$1.ComponentProps<typeof DropdownMenuSeparator>): react_jsx_runtime48.JSX.Element;
|
|
69
69
|
declare function MenubarShortcut({
|
|
70
70
|
className,
|
|
71
71
|
...props
|
|
72
|
-
}: React$1.ComponentProps<typeof DropdownMenuShortcut>):
|
|
72
|
+
}: React$1.ComponentProps<typeof DropdownMenuShortcut>): react_jsx_runtime48.JSX.Element;
|
|
73
73
|
declare function MenubarSub({
|
|
74
74
|
...props
|
|
75
|
-
}: React$1.ComponentProps<typeof DropdownMenuSub>):
|
|
75
|
+
}: React$1.ComponentProps<typeof DropdownMenuSub>): react_jsx_runtime48.JSX.Element;
|
|
76
76
|
declare function MenubarSubTrigger({
|
|
77
77
|
className,
|
|
78
78
|
inset,
|
|
79
79
|
...props
|
|
80
80
|
}: React$1.ComponentProps<typeof DropdownMenuSubTrigger> & {
|
|
81
81
|
inset?: boolean;
|
|
82
|
-
}):
|
|
82
|
+
}): react_jsx_runtime48.JSX.Element;
|
|
83
83
|
declare function MenubarSubContent({
|
|
84
84
|
className,
|
|
85
85
|
...props
|
|
86
|
-
}: React$1.ComponentProps<typeof DropdownMenuSubContent>):
|
|
86
|
+
}: React$1.ComponentProps<typeof DropdownMenuSubContent>): react_jsx_runtime48.JSX.Element;
|
|
87
87
|
//#endregion
|
|
88
88
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
89
89
|
//# sourceMappingURL=menubar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../src/components/menubar.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAwBS,OAAA;;;GAAiC,SAAA,CAAiB,QAAK,
|
|
1
|
+
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../src/components/menubar.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAwBS,OAAA;;;GAAiC,SAAA,CAAiB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAavD,WAAA;;GAA0B,OAAA,CAAM,sBAAsB,gBAAa,mBAAA,CAAA,GAAA,CAAA;iBAInE,YAAA;;GAEN,OAAA,CAAM,sBAAsB,qBAAkB,mBAAA,CAAA,GAAA,CAAA;AAtBN,iBA0BlC,aAAA,CAvBO;EAAA,GAAA;AAAA,CAAA,EAyBb,OAAA,CAAM,cAzBO,CAAA,OAyBe,kBAzBf,CAAA,CAAA,EAyBkC,mBAAA,CAAA,GAAA,CAAA,OAzBlC;iBA6BP,cAAA,CA7BU;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgChB,OAAA,CAAM,cAhCU,CAAA,OAgCY,mBAhCZ,CAAA,CAAA,EAgCgC,mBAAA,CAAA,GAAA,CAAA,OAhChC;iBA6CV,cAAA,CA7CkD;EAAA,SAAA;EAAA,KAAA;EAAA,WAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAmDxD,OAAA,CAAM,cAnDkD,CAAA,OAmD5B,mBAnD4B,CAAA,CAAA,EAmDR,mBAAA,CAAA,GAAA,CAAA,OAnDQ;iBAgElD,WAAA,CAhEuD;EAAA,SAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqE7D,OAAA,CAAM,cArEuD,CAAA,OAqEjC,gBArEiC,CAAA,CAAA,EAqEhB,mBAAA,CAAA,GAAA,CAAA,OArEgB;iBAoFvD,mBAAA,CApFuD;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EA0F7D,IAAA,CAAc,YAAA,CAAa,KA1FkC,GAAA;EAavD,KAAA,CAAA,EAAA,OAAW;CAA2C,CAAA,EA+E9D,mBAAA,CAAA,GAAA,CAAA,OA/E8D;iBAsGtD,iBAAA,CAtGgC;EAAA,GAAA;AAAA,CAAA,EAwGtC,OAAA,CAAM,cAxGgC,CAAA,OAwGV,sBAxGU,CAAA,CAAA,EAwGa,mBAAA,CAAA,GAAA,CAAA,OAxGb;iBA4GhC,gBAAA,CA5GmE;EAAA,SAAA;EAAA,QAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAiHzE,IAAA,CAAc,SAAA,CAAU,KAjHiD,GAAA;EAAA,KAAA,CAAA,EAAA,OAAA;AAAA,CAAA,CAAA,EAmH3E,mBAAA,CAAA,GAAA,CAAA,OA/GoB;iBAqIZ,YAAA,CAnIsB;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EAuI5B,OAAA,CAAM,cAvIsB,CAAA,OAuIA,iBAvIA,CAAA,GAAA;EAA5B,KAAM,CAAA,EAAA,OAAA;CAAwC,CAAA,EAyIhD,mBAAA,CAAA,GAAA,CAAA,OAzIgD;iBAuJxC,gBAAA,CAvJwC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0J9C,OAAA,CAAM,cA1JwC,CAAA,OA0JlB,qBA1JkB,CAAA,CAAA,EA0JI,mBAAA,CAAA,GAAA,CAAA,OA1JJ;AAAA,iBAoKxC,eAAA,CAhKa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmKnB,OAAA,CAAM,cAnKa,CAAA,OAmKS,oBAnKT,CAAA,CAAA,EAmK8B,mBAAA,CAAA,GAAA,CAAA,OAnK9B;iBAgLb,UAAA,CA9KsB;EAAA,GAAA;AAAA,CAAA,EAgL5B,OAAA,CAAM,cAhLsB,CAAA,OAgLA,eAhLA,CAAA,CAAA,EAgLgB,mBAAA,CAAA,GAAA,CAAA,OAhLhB;iBAoLtB,iBAAA,CApLA;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EAwLN,OAAA,CAAM,cAxLA,CAAA,OAwLsB,sBAxLtB,CAAA,GAAA;EAAyC,KAAA,CAAA,EAAA,OAAA;CAAA,CAAA,EA0LjD,mBAAA,CAAA,GAAA,CAAA,OA1LiD;AAAA,iBAwMzC,iBAAA,CApMc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuMpB,OAAA,CAAM,cAvMc,CAAA,OAuMQ,sBAvMR,CAAA,CAAA,EAuM+B,mBAAA,CAAA,GAAA,CAAA,OAvM/B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { t as cn } from "../utils-
|
|
4
|
-
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, m as DropdownMenuSubTrigger, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-menu-
|
|
3
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
4
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, m as DropdownMenuSubTrigger, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-menu-BWEfcvmP.js";
|
|
5
5
|
import { CheckIcon } from "lucide-react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import "react";
|
|
8
|
-
import { Menu } from "@base-ui/react/menu";
|
|
8
|
+
import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
9
9
|
import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
|
|
10
10
|
|
|
11
11
|
//#region src/components/menubar.tsx
|
|
@@ -61,7 +61,7 @@ function MenubarItem({ className, inset, variant = "default", ...props }) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function MenubarCheckboxItem({ className, children, checked, inset, ...props }) {
|
|
64
|
-
return /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
|
|
64
|
+
return /* @__PURE__ */ jsxs(Menu$1.CheckboxItem, {
|
|
65
65
|
"data-slot": "menubar-checkbox-item",
|
|
66
66
|
"data-inset": inset,
|
|
67
67
|
className: cn("relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
@@ -69,7 +69,7 @@ function MenubarCheckboxItem({ className, children, checked, inset, ...props })
|
|
|
69
69
|
...props,
|
|
70
70
|
children: [/* @__PURE__ */ jsx("span", {
|
|
71
71
|
className: "pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
72
|
-
children: /* @__PURE__ */ jsx(Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
72
|
+
children: /* @__PURE__ */ jsx(Menu$1.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
73
73
|
}), children]
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -80,14 +80,14 @@ function MenubarRadioGroup({ ...props }) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
function MenubarRadioItem({ className, children, inset, ...props }) {
|
|
83
|
-
return /* @__PURE__ */ jsxs(Menu.RadioItem, {
|
|
83
|
+
return /* @__PURE__ */ jsxs(Menu$1.RadioItem, {
|
|
84
84
|
"data-slot": "menubar-radio-item",
|
|
85
85
|
"data-inset": inset,
|
|
86
86
|
className: cn("relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
87
87
|
...props,
|
|
88
88
|
children: [/* @__PURE__ */ jsx("span", {
|
|
89
89
|
className: "pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
90
|
-
children: /* @__PURE__ */ jsx(Menu.RadioItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
90
|
+
children: /* @__PURE__ */ jsx(Menu$1.RadioItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
91
91
|
}), children]
|
|
92
92
|
});
|
|
93
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","names":["MenubarPrimitive","MenuPrimitive"],"sources":["../../src/components/menubar.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Menu as MenuPrimitive } from \"@base-ui/react/menu\"\nimport { Menubar as MenubarPrimitive } from \"@base-ui/react/menubar\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"@px-ui/ui/components/dropdown-menu\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Menubar({ className, ...props }: MenubarPrimitive.Props) {\n return (\n <MenubarPrimitive\n data-slot=\"menubar\"\n className={cn(\n \"flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>) {\n return <DropdownMenu data-slot=\"menubar-menu\" {...props} />\n}\n\nfunction MenubarGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuGroup>) {\n return <DropdownMenuGroup data-slot=\"menubar-group\" {...props} />\n}\n\nfunction MenubarPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPortal>) {\n return <DropdownMenuPortal data-slot=\"menubar-portal\" {...props} />\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuTrigger>) {\n return (\n <DropdownMenuTrigger\n data-slot=\"menubar-trigger\"\n className={cn(\n \"flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarContent({\n className,\n align = \"start\",\n alignOffset = -4,\n sideOffset = 8,\n ...props\n}: React.ComponentProps<typeof DropdownMenuContent>) {\n return (\n <DropdownMenuContent\n data-slot=\"menubar-content\"\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\"min-w-36 rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\", className )}\n {...props}\n />\n )\n}\n\nfunction MenubarItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuItem>) {\n return (\n <DropdownMenuItem\n data-slot=\"menubar-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"group/menubar-item gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n inset,\n ...props\n}: MenuPrimitive.CheckboxItem.Props & {\n inset?: boolean\n}) {\n return (\n <MenuPrimitive.CheckboxItem\n data-slot=\"menubar-checkbox-item\"\n data-inset={inset}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4\">\n <MenuPrimitive.CheckboxItemIndicator>\n <CheckIcon\n />\n </MenuPrimitive.CheckboxItemIndicator>\n </span>\n {children}\n </MenuPrimitive.CheckboxItem>\n )\n}\n\nfunction MenubarRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuRadioGroup>) {\n return <DropdownMenuRadioGroup data-slot=\"menubar-radio-group\" {...props} />\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n inset,\n ...props\n}: MenuPrimitive.RadioItem.Props & {\n inset?: boolean\n}) {\n return (\n <MenuPrimitive.RadioItem\n data-slot=\"menubar-radio-item\"\n data-inset={inset}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4\">\n <MenuPrimitive.RadioItemIndicator>\n <CheckIcon\n />\n </MenuPrimitive.RadioItemIndicator>\n </span>\n {children}\n </MenuPrimitive.RadioItem>\n )\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuLabel> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuLabel\n data-slot=\"menubar-label\"\n data-inset={inset}\n className={cn(\n \"px-2 py-1.5 text-sm font-medium data-inset:ps-8\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSeparator>) {\n return (\n <DropdownMenuSeparator\n data-slot=\"menubar-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction MenubarShortcut({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuShortcut>) {\n return (\n <DropdownMenuShortcut\n data-slot=\"menubar-shortcut\"\n className={cn(\n \"ms-auto text-xs tracking-ppx-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSub({\n ...props\n}: React.ComponentProps<typeof DropdownMenuSub>) {\n return <DropdownMenuSub data-slot=\"menubar-sub\" {...props} />\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSubTrigger> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuSubTrigger\n data-slot=\"menubar-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-inset:ps-8 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSubContent>) {\n return (\n <DropdownMenuSubContent\n data-slot=\"menubar-sub-content\"\n className={cn(\"min-w-32 rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", className )}\n {...props}\n />\n )\n}\n\nexport {\n Menubar,\n MenubarPortal,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarGroup,\n MenubarSeparator,\n MenubarLabel,\n MenubarItem,\n MenubarShortcut,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSub,\n MenubarSubTrigger,\n MenubarSubContent,\n}\n"],"mappings":";;;;;;;;;;;AAwBA,SAAS,QAAQ,EAAE,WAAW,GAAG,SAAiC;AAChE,QACE,oBAACA;EACC,aAAU;EACV,WAAW,GACT,+DACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,GAAG,SAAoD;AAC5E,QAAO,oBAAC;EAAa,aAAU;EAAe,GAAI;GAAS;;AAG7D,SAAS,aAAa,EACpB,GAAG,SAC8C;AACjD,QAAO,oBAAC;EAAkB,aAAU;EAAgB,GAAI;GAAS;;AAGnE,SAAS,cAAc,EACrB,GAAG,SAC+C;AAClD,QAAO,oBAAC;EAAmB,aAAU;EAAiB,GAAI;GAAS;;AAGrE,SAAS,eAAe,EACtB,WACA,GAAG,SACgD;AACnD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,+HACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,QAAQ,SACR,cAAc,IACd,aAAa,GACb,GAAG,SACgD;AACnD,QACE,oBAAC;EACC,aAAU;EACH;EACM;EACD;EACZ,WAAW,GAAG,maAAma,UAAW;EAC5b,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,OACA,UAAU,WACV,GAAG,SAC6C;AAChD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,gBAAc;EACd,WAAW,GACT,mfACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,WACA,UACA,SACA,OACA,GAAG,SAGF;AACD,QACE,qBAACC,KAAc;EACb,aAAU;EACV,cAAY;EACZ,WAAW,GACT,uTACA,UACD;EACQ;EACT,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAACA,KAAc,mCACb,oBAAC,cACC,GACkC;IACjC,EACN;GAC0B;;AAIjC,SAAS,kBAAkB,EACzB,GAAG,SACmD;AACtD,QAAO,oBAAC;EAAuB,aAAU;EAAsB,GAAI;GAAS;;AAG9E,SAAS,iBAAiB,EACxB,WACA,UACA,OACA,GAAG,SAGF;AACD,QACE,qBAACA,KAAc;EACb,aAAU;EACV,cAAY;EACZ,WAAW,GACT,4VACA,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAACA,KAAc,gCACb,oBAAC,cACC,GAC+B;IAC9B,EACN;GACuB;;AAI9B,SAAS,aAAa,EACpB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,WAAW,GACT,mDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SACkD;AACrD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EACvB,WACA,GAAG,SACiD;AACpD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,6GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,GAAG,SAC4C;AAC/C,QAAO,oBAAC;EAAgB,aAAU;EAAc,GAAI;GAAS;;AAG/D,SAAS,kBAAkB,EACzB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,WAAW,GACT,+LACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SACmD;AACtD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,gZAAgZ,UAAW;EACza,GAAI;GACJ"}
|
|
1
|
+
{"version":3,"file":"menubar.js","names":["MenubarPrimitive","MenuPrimitive"],"sources":["../../src/components/menubar.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Menu as MenuPrimitive } from \"@base-ui/react/menu\"\nimport { Menubar as MenubarPrimitive } from \"@base-ui/react/menubar\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"@px-ui/ui/components/dropdown-menu\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Menubar({ className, ...props }: MenubarPrimitive.Props) {\n return (\n <MenubarPrimitive\n data-slot=\"menubar\"\n className={cn(\n \"flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>) {\n return <DropdownMenu data-slot=\"menubar-menu\" {...props} />\n}\n\nfunction MenubarGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuGroup>) {\n return <DropdownMenuGroup data-slot=\"menubar-group\" {...props} />\n}\n\nfunction MenubarPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPortal>) {\n return <DropdownMenuPortal data-slot=\"menubar-portal\" {...props} />\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuTrigger>) {\n return (\n <DropdownMenuTrigger\n data-slot=\"menubar-trigger\"\n className={cn(\n \"flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarContent({\n className,\n align = \"start\",\n alignOffset = -4,\n sideOffset = 8,\n ...props\n}: React.ComponentProps<typeof DropdownMenuContent>) {\n return (\n <DropdownMenuContent\n data-slot=\"menubar-content\"\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\"min-w-36 rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\", className )}\n {...props}\n />\n )\n}\n\nfunction MenubarItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof DropdownMenuItem>) {\n return (\n <DropdownMenuItem\n data-slot=\"menubar-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"group/menubar-item gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n inset,\n ...props\n}: MenuPrimitive.CheckboxItem.Props & {\n inset?: boolean\n}) {\n return (\n <MenuPrimitive.CheckboxItem\n data-slot=\"menubar-checkbox-item\"\n data-inset={inset}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4\">\n <MenuPrimitive.CheckboxItemIndicator>\n <CheckIcon\n />\n </MenuPrimitive.CheckboxItemIndicator>\n </span>\n {children}\n </MenuPrimitive.CheckboxItem>\n )\n}\n\nfunction MenubarRadioGroup({\n ...props\n}: React.ComponentProps<typeof DropdownMenuRadioGroup>) {\n return <DropdownMenuRadioGroup data-slot=\"menubar-radio-group\" {...props} />\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n inset,\n ...props\n}: MenuPrimitive.RadioItem.Props & {\n inset?: boolean\n}) {\n return (\n <MenuPrimitive.RadioItem\n data-slot=\"menubar-radio-item\"\n data-inset={inset}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-md py-1.5 pe-2 ps-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute start-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4\">\n <MenuPrimitive.RadioItemIndicator>\n <CheckIcon\n />\n </MenuPrimitive.RadioItemIndicator>\n </span>\n {children}\n </MenuPrimitive.RadioItem>\n )\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuLabel> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuLabel\n data-slot=\"menubar-label\"\n data-inset={inset}\n className={cn(\n \"px-2 py-1.5 text-sm font-medium data-inset:ps-8\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSeparator>) {\n return (\n <DropdownMenuSeparator\n data-slot=\"menubar-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction MenubarShortcut({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuShortcut>) {\n return (\n <DropdownMenuShortcut\n data-slot=\"menubar-shortcut\"\n className={cn(\n \"ms-auto text-xs tracking-ppx-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSub({\n ...props\n}: React.ComponentProps<typeof DropdownMenuSub>) {\n return <DropdownMenuSub data-slot=\"menubar-sub\" {...props} />\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSubTrigger> & {\n inset?: boolean\n}) {\n return (\n <DropdownMenuSubTrigger\n data-slot=\"menubar-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-inset:ps-8 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenuSubContent>) {\n return (\n <DropdownMenuSubContent\n data-slot=\"menubar-sub-content\"\n className={cn(\"min-w-32 rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", className )}\n {...props}\n />\n )\n}\n\nexport {\n Menubar,\n MenubarPortal,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarGroup,\n MenubarSeparator,\n MenubarLabel,\n MenubarItem,\n MenubarShortcut,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSub,\n MenubarSubTrigger,\n MenubarSubContent,\n}\n"],"mappings":";;;;;;;;;;;AAwBA,SAAS,QAAQ,EAAE,WAAW,GAAG,SAAiC;AAChE,QACE,oBAACA;EACC,aAAU;EACV,WAAW,GACT,+DACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,GAAG,SAAoD;AAC5E,QAAO,oBAAC;EAAa,aAAU;EAAe,GAAI;GAAS;;AAG7D,SAAS,aAAa,EACpB,GAAG,SAC8C;AACjD,QAAO,oBAAC;EAAkB,aAAU;EAAgB,GAAI;GAAS;;AAGnE,SAAS,cAAc,EACrB,GAAG,SAC+C;AAClD,QAAO,oBAAC;EAAmB,aAAU;EAAiB,GAAI;GAAS;;AAGrE,SAAS,eAAe,EACtB,WACA,GAAG,SACgD;AACnD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,+HACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,QAAQ,SACR,cAAc,IACd,aAAa,GACb,GAAG,SACgD;AACnD,QACE,oBAAC;EACC,aAAU;EACH;EACM;EACD;EACZ,WAAW,GAAG,maAAma,UAAW;EAC5b,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,OACA,UAAU,WACV,GAAG,SAC6C;AAChD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,gBAAc;EACd,WAAW,GACT,mfACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,WACA,UACA,SACA,OACA,GAAG,SAGF;AACD,QACE,qBAACC,OAAc;EACb,aAAU;EACV,cAAY;EACZ,WAAW,GACT,uTACA,UACD;EACQ;EACT,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAACA,OAAc,mCACb,oBAAC,cACC,GACkC;IACjC,EACN;GAC0B;;AAIjC,SAAS,kBAAkB,EACzB,GAAG,SACmD;AACtD,QAAO,oBAAC;EAAuB,aAAU;EAAsB,GAAI;GAAS;;AAG9E,SAAS,iBAAiB,EACxB,WACA,UACA,OACA,GAAG,SAGF;AACD,QACE,qBAACA,OAAc;EACb,aAAU;EACV,cAAY;EACZ,WAAW,GACT,4VACA,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAACA,OAAc,gCACb,oBAAC,cACC,GAC+B;IAC9B,EACN;GACuB;;AAI9B,SAAS,aAAa,EACpB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,WAAW,GACT,mDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SACkD;AACrD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EACvB,WACA,GAAG,SACiD;AACpD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,6GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,GAAG,SAC4C;AAC/C,QAAO,oBAAC;EAAgB,aAAU;EAAc,GAAI;GAAS;;AAG/D,SAAS,kBAAkB,EACzB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,aAAU;EACV,cAAY;EACZ,WAAW,GACT,+LACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SACmD;AACtD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,gZAAgZ,UAAW;EACza,GAAI;GACJ"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as Button } from "../button-Cfd9X6pX.js";
|
|
2
|
+
import * as react_jsx_runtime233 from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
5
|
+
|
|
6
|
+
//#region src/components/message-scroller.d.ts
|
|
7
|
+
declare function MessageScrollerProvider(props: React$1.ComponentProps<typeof MessageScroller$1.Provider>): react_jsx_runtime233.JSX.Element;
|
|
8
|
+
declare function MessageScroller({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<typeof MessageScroller$1.Root>): react_jsx_runtime233.JSX.Element;
|
|
12
|
+
declare function MessageScrollerViewport({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: React$1.ComponentProps<typeof MessageScroller$1.Viewport>): react_jsx_runtime233.JSX.Element;
|
|
16
|
+
declare function MessageScrollerContent({
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}: React$1.ComponentProps<typeof MessageScroller$1.Content>): react_jsx_runtime233.JSX.Element;
|
|
20
|
+
declare function MessageScrollerItem({
|
|
21
|
+
className,
|
|
22
|
+
scrollAnchor,
|
|
23
|
+
...props
|
|
24
|
+
}: React$1.ComponentProps<typeof MessageScroller$1.Item>): react_jsx_runtime233.JSX.Element;
|
|
25
|
+
declare function MessageScrollerButton({
|
|
26
|
+
direction,
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
render,
|
|
30
|
+
variant,
|
|
31
|
+
size,
|
|
32
|
+
...props
|
|
33
|
+
}: React$1.ComponentProps<typeof MessageScroller$1.Button> & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime233.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility };
|
|
36
|
+
//# sourceMappingURL=message-scroller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.d.ts","names":[],"sources":["../../src/components/message-scroller.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAYS,uBAAA,QACA,OAAA,CAAM,sBAAsB,iBAAA,CAAyB,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAK9D,eAAA;;;GAGN,OAAA,CAAM,sBAAsB,iBAAA,CAAyB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAapD,uBAAA;;;GAGN,OAAA,CAAM,sBAAsB,iBAAA,CAAyB,YAAS,oBAAA,CAAA,GAAA,CAAA;AA5Bb,iBAyC3C,sBAAA,CAtCuB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyC7B,OAAA,CAAM,cAzCuB,CAAA,OAyCD,iBAAA,CAAyB,OAzCxB,CAAA,CAAA,EAyCgC,oBAAA,CAAA,GAAA,CAAA,OAzChC;iBAmDvB,mBAAA,CAlDqD;EAAA,SAAA;EAAA,YAAA;EAAA,GAAA;AAAA,CAAA,EAsD3D,OAAA,CAAM,cAtDqD,CAAA,OAsD/B,iBAAA,CAAyB,IAtDM,CAAA,CAAA,EAsDD,oBAAA,CAAA,GAAA,CAAA,OAtDC;iBAoErD,qBAAA,CApEM;EAAA,SAAA;EAAA,SAAA;EAAA,QAAA;EAAA,MAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EA4EZ,OAAA,CAAM,cA5EM,CAAA,OA4EgB,iBAAA,CAAyB,MA5EzC,CAAA,GA6Eb,IA7Ea,CA6ER,OAAA,CAAM,cA7EE,CAAA,OA6EoB,MA7EpB,CAAA,EAAA,SAAA,GAAA,MAAA,CAAA,CAAA,EA6EgD,oBAAA,CAAA,GAAA,CAAA,OA7EhD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
2
|
+
import { t as Button } from "../button-DnHwqwy0.js";
|
|
3
|
+
import { ArrowDownIcon } from "lucide-react";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
|
+
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
7
|
+
|
|
8
|
+
//#region src/components/message-scroller.tsx
|
|
9
|
+
function MessageScrollerProvider(props) {
|
|
10
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Provider, { ...props });
|
|
11
|
+
}
|
|
12
|
+
function MessageScroller({ className, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Root, {
|
|
14
|
+
"data-slot": "message-scroller",
|
|
15
|
+
className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function MessageScrollerViewport({ className, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Viewport, {
|
|
21
|
+
"data-slot": "message-scroller-viewport",
|
|
22
|
+
className: cn("size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent", className),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function MessageScrollerContent({ className, ...props }) {
|
|
27
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Content, {
|
|
28
|
+
"data-slot": "message-scroller-content",
|
|
29
|
+
className: cn("flex h-max min-h-full flex-col gap-8", className),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function MessageScrollerItem({ className, scrollAnchor = false, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Item, {
|
|
35
|
+
"data-slot": "message-scroller-item",
|
|
36
|
+
scrollAnchor,
|
|
37
|
+
className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function MessageScrollerButton({ direction = "end", className, children, render, variant = "secondary", size = "icon-sm", ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Button, {
|
|
43
|
+
"data-slot": "message-scroller-button",
|
|
44
|
+
"data-direction": direction,
|
|
45
|
+
"data-variant": variant,
|
|
46
|
+
"data-size": size,
|
|
47
|
+
direction,
|
|
48
|
+
className: cn("absolute inset-s-1/2 -translate-x-1/2 rtl:translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180", className),
|
|
49
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
variant,
|
|
51
|
+
size
|
|
52
|
+
}),
|
|
53
|
+
...props,
|
|
54
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ArrowDownIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: "sr-only",
|
|
56
|
+
children: direction === "end" ? "Scroll to end" : "Scroll to start"
|
|
57
|
+
})] })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility };
|
|
63
|
+
//# sourceMappingURL=message-scroller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.js","names":["MessageScrollerPrimitive"],"sources":["../../src/components/message-scroller.tsx"],"sourcesContent":["import * as React from \"react\"\nimport {\n MessageScroller as MessageScrollerPrimitive,\n useMessageScroller,\n useMessageScrollerScrollable,\n useMessageScrollerVisibility,\n} from \"@shadcn/react/message-scroller\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\nimport { Button } from \"@px-ui/ui/components/button\"\nimport { ArrowDownIcon } from \"lucide-react\"\n\nfunction MessageScrollerProvider(\n props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>\n) {\n return <MessageScrollerPrimitive.Provider {...props} />\n}\n\nfunction MessageScroller({\n className,\n ...props\n}: React.ComponentProps<typeof MessageScrollerPrimitive.Root>) {\n return (\n <MessageScrollerPrimitive.Root\n data-slot=\"message-scroller\"\n className={cn(\n \"group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MessageScrollerViewport({\n className,\n ...props\n}: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>) {\n return (\n <MessageScrollerPrimitive.Viewport\n data-slot=\"message-scroller-viewport\"\n className={cn(\n \"size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MessageScrollerContent({\n className,\n ...props\n}: React.ComponentProps<typeof MessageScrollerPrimitive.Content>) {\n return (\n <MessageScrollerPrimitive.Content\n data-slot=\"message-scroller-content\"\n className={cn(\"flex h-max min-h-full flex-col gap-8\", className)}\n {...props}\n />\n )\n}\n\nfunction MessageScrollerItem({\n className,\n scrollAnchor = false,\n ...props\n}: React.ComponentProps<typeof MessageScrollerPrimitive.Item>) {\n return (\n <MessageScrollerPrimitive.Item\n data-slot=\"message-scroller-item\"\n scrollAnchor={scrollAnchor}\n className={cn(\n \"min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction MessageScrollerButton({\n direction = \"end\",\n className,\n children,\n render,\n variant = \"secondary\",\n size = \"icon-sm\",\n ...props\n}: React.ComponentProps<typeof MessageScrollerPrimitive.Button> &\n Pick<React.ComponentProps<typeof Button>, \"variant\" | \"size\">) {\n return (\n <MessageScrollerPrimitive.Button\n data-slot=\"message-scroller-button\"\n data-direction={direction}\n data-variant={variant}\n data-size={size}\n direction={direction}\n className={cn(\n \"absolute inset-s-1/2 -translate-x-1/2 rtl:translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180\",\n className\n )}\n render={render ?? <Button variant={variant} size={size} />}\n {...props}\n >\n {children ?? (\n <>\n <ArrowDownIcon\n />\n <span className=\"sr-only\">\n {direction === \"end\" ? \"Scroll to end\" : \"Scroll to start\"}\n </span>\n </>\n )}\n </MessageScrollerPrimitive.Button>\n )\n}\n\nexport {\n MessageScrollerProvider,\n MessageScroller,\n MessageScrollerViewport,\n MessageScrollerContent,\n MessageScrollerItem,\n MessageScrollerButton,\n useMessageScroller,\n useMessageScrollerScrollable,\n useMessageScrollerVisibility,\n}\n"],"mappings":";;;;;;;;AAYA,SAAS,wBACP,OACA;AACA,QAAO,oBAACA,kBAAyB,YAAS,GAAI,QAAS;;AAGzD,SAAS,gBAAgB,EACvB,WACA,GAAG,SAC0D;AAC7D,QACE,oBAACA,kBAAyB;EACxB,aAAU;EACV,WAAW,GACT,mFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,wBAAwB,EAC/B,WACA,GAAG,SAC8D;AACjE,QACE,oBAACA,kBAAyB;EACxB,aAAU;EACV,WAAW,GACT,mOACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAC6D;AAChE,QACE,oBAACA,kBAAyB;EACxB,aAAU;EACV,WAAW,GAAG,wCAAwC,UAAU;EAChE,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,WACA,eAAe,OACf,GAAG,SAC0D;AAC7D,QACE,oBAACA,kBAAyB;EACxB,aAAU;EACI;EACd,WAAW,GACT,kFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,sBAAsB,EAC7B,YAAY,OACZ,WACA,UACA,QACA,UAAU,aACV,OAAO,WACP,GAAG,SAE4D;AAC/D,QACE,oBAACA,kBAAyB;EACxB,aAAU;EACV,kBAAgB;EAChB,gBAAc;EACd,aAAW;EACA;EACX,WAAW,GACT,6vBACA,UACD;EACD,QAAQ,UAAU,oBAAC;GAAgB;GAAe;IAAQ;EAC1D,GAAI;YAEH,YACC,4CACE,oBAAC,kBACC,EACF,oBAAC;GAAK,WAAU;aACb,cAAc,QAAQ,kBAAkB;IACpC,IACN;GAE2B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react_jsx_runtime209 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/message.d.ts
|
|
5
|
+
declare function MessageGroup({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime209.JSX.Element;
|
|
9
|
+
declare function Message({
|
|
10
|
+
className,
|
|
11
|
+
align,
|
|
12
|
+
...props
|
|
13
|
+
}: React$1.ComponentProps<"div"> & {
|
|
14
|
+
align?: "start" | "end";
|
|
15
|
+
}): react_jsx_runtime209.JSX.Element;
|
|
16
|
+
declare function MessageAvatar({
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime209.JSX.Element;
|
|
20
|
+
declare function MessageContent({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime209.JSX.Element;
|
|
24
|
+
declare function MessageHeader({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime209.JSX.Element;
|
|
28
|
+
declare function MessageFooter({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime209.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
|
|
34
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","names":[],"sources":["../../src/components/message.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,YAAA;;;GAAsC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAUjE,OAAA;;;;AAdqB,GAkB3B,OAAA,CAAM;;AAlBqB,CAAA,CAAA,EAkB8B,oBAAA,CAAA,GAAA,CAAA,OAdvC;iBA4BZ,aAAA,CA5Be;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4BwB,OAAA,CAAM,cA5B9B,CAAA,KAAA,CAAA,CAAA,EA4BmD,oBAAA,CAAA,GAAA,CAAA,OA5BnD;iBAyCf,cAAA,CAzC4C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyCJ,OAAA,CAAM,cAzCF,CAAA,KAAA,CAAA,CAAA,EAyCuB,oBAAA,CAAA,GAAA,CAAA,OAzCvB;iBAsD5C,aAAA,CAtDiE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsD1B,OAAA,CAAM,cAtDoB,CAAA,KAAA,CAAA,CAAA,EAsDC,oBAAA,CAAA,GAAA,CAAA,OAtDD;iBAmEjE,aAAA,CAnEiE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmE1B,OAAA,CAAM,cAnEoB,CAAA,KAAA,CAAA,CAAA,EAmEC,oBAAA,CAAA,GAAA,CAAA,OAnED"}
|