@mendylanda/ui 0.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.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +5 -0
  3. package/README.md +49 -0
  4. package/THIRD_PARTY_LICENSES/shadcn-ui.txt +21 -0
  5. package/THIRD_PARTY_LICENSES/startercn.txt +21 -0
  6. package/dist/class-names.d.ts +1 -0
  7. package/dist/class-names.js +1 -0
  8. package/dist/customization.d.ts +31 -0
  9. package/dist/customization.js +42 -0
  10. package/dist/filters/core.d.ts +3 -0
  11. package/dist/filters/core.js +3 -0
  12. package/dist/filters/filter-bar.d.ts +49 -0
  13. package/dist/filters/filter-bar.js +435 -0
  14. package/dist/filters/filter-date-editor.d.ts +10 -0
  15. package/dist/filters/filter-date-editor.js +31 -0
  16. package/dist/filters/filter-definition.d.ts +220 -0
  17. package/dist/filters/filter-definition.js +227 -0
  18. package/dist/filters/filter-menu-panel.d.ts +21 -0
  19. package/dist/filters/filter-menu-panel.js +164 -0
  20. package/dist/filters/filter-select-editor.d.ts +25 -0
  21. package/dist/filters/filter-select-editor.js +46 -0
  22. package/dist/filters/filter-state.d.ts +34 -0
  23. package/dist/filters/filter-state.js +107 -0
  24. package/dist/filters/filter-text-editor.d.ts +11 -0
  25. package/dist/filters/filter-text-editor.js +34 -0
  26. package/dist/filters/filter-utils.d.ts +1 -0
  27. package/dist/filters/filter-utils.js +8 -0
  28. package/dist/filters/filters.d.ts +38 -0
  29. package/dist/filters/filters.js +94 -0
  30. package/dist/filters/index.d.ts +10 -0
  31. package/dist/filters/index.js +10 -0
  32. package/dist/filters/nuqs.d.ts +1 -0
  33. package/dist/filters/nuqs.js +2 -0
  34. package/dist/filters/use-filter-options.d.ts +24 -0
  35. package/dist/filters/use-filter-options.js +221 -0
  36. package/dist/filters/use-filters.d.ts +78 -0
  37. package/dist/filters/use-filters.js +158 -0
  38. package/dist/filters/use-url-filters.d.ts +41 -0
  39. package/dist/filters/use-url-filters.js +197 -0
  40. package/dist/filters/use-value-draft.d.ts +2 -0
  41. package/dist/filters/use-value-draft.js +16 -0
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +1 -0
  44. package/dist/primitives/button.d.ts +10 -0
  45. package/dist/primitives/button.js +36 -0
  46. package/dist/primitives/calendar.d.ts +8 -0
  47. package/dist/primitives/calendar.js +75 -0
  48. package/dist/primitives/checkbox.d.ts +4 -0
  49. package/dist/primitives/checkbox.js +10 -0
  50. package/dist/primitives/dropdown-menu.d.ts +25 -0
  51. package/dist/primitives/dropdown-menu.js +54 -0
  52. package/dist/primitives/index.d.ts +8 -0
  53. package/dist/primitives/index.js +8 -0
  54. package/dist/primitives/input.d.ts +3 -0
  55. package/dist/primitives/input.js +7 -0
  56. package/dist/primitives/label.d.ts +4 -0
  57. package/dist/primitives/label.js +9 -0
  58. package/dist/primitives/textarea.d.ts +3 -0
  59. package/dist/primitives/textarea.js +7 -0
  60. package/dist/styles.css +1775 -0
  61. package/dist/styles.css.d.ts +1 -0
  62. package/dist/utils.d.ts +3 -0
  63. package/dist/utils.js +19 -0
  64. package/package.json +98 -0
@@ -0,0 +1,2 @@
1
+ /** Preserve unfinished edits until the application's committed value changes. */
2
+ export declare function useValueDraft<V, D>(value: V, createDraft: (value: V) => D): readonly [D, (draft: D) => void];
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { useState } from "react";
3
+ import { equalValues } from "./filter-definition.js";
4
+ /** Preserve unfinished edits until the application's committed value changes. */
5
+ export function useValueDraft(value, createDraft) {
6
+ const [state, setState] = useState(() => ({ value, draft: createDraft(value) }));
7
+ let current = state;
8
+ if (!equalValues(state.value, value)) {
9
+ current = { value, draft: createDraft(value) };
10
+ setState(current);
11
+ }
12
+ function setDraft(draft) {
13
+ setState({ value, draft });
14
+ }
15
+ return [current.draft, setDraft];
16
+ }
@@ -0,0 +1 @@
1
+ export * from "./filters/index.js";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./filters/index.js";
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../utils.js";
5
+ import { Slot } from "radix-ui";
6
+ const buttonVariants = cva("mui-123306850fe1 mui-27ead27a81df mui-71556df3b421 mui-a503dd374cca mui-074569488cca mui-3fa8c572949b mui-c74ab393b96d mui-daaac3fbf55e mui-963f6168b7d6 mui-eae178841c68 mui-b30fc56058b6 mui-39be5a15b766 mui-db549d38ff19 mui-8d3c1014b967 mui-4600b77303d6 mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4", {
7
+ variants: {
8
+ variant: {
9
+ default: "mui-0c2864fba576 mui-abd1aaa1f5b2 mui-af9ea085901b",
10
+ destructive: "mui-965cf6587342 mui-8d4bf2704c8d mui-bb6a4b3e902d",
11
+ outline: "mui-4f1a55de40bc mui-8fca9236d191 mui-37ad15a95595 mui-9f1f77b92dcb",
12
+ secondary: "mui-d191cb569aac mui-80df79ec9bb5 mui-099700a5a311",
13
+ ghost: "mui-37ad15a95595 mui-9f1f77b92dcb",
14
+ link: "mui-249f14ee5b6b mui-d52f902a57e8 mui-b56720602554",
15
+ },
16
+ size: {
17
+ default: "mui-539ae144f076 mui-9513b3968002 mui-b5edc3ea7c91 mui-9e08353b774f",
18
+ xs: "mui-ce1945804664 mui-19e97f3f40e6 mui-3fa8c572949b mui-e7e01cc7f4df mui-3992de70b033 mui-e288cffc2ef4 mui-be87a4a64d81",
19
+ sm: "mui-1fb07b38c63b mui-70007b876865 mui-3fa8c572949b mui-0f9e6672913a mui-3992de70b033 mui-3b01ee05b16d",
20
+ lg: "mui-fdd2f85cad6b mui-3fa8c572949b mui-0194c6e46323",
21
+ icon: "mui-3ee10ef4c057",
22
+ "icon-xs": "mui-0712570dcc9f mui-3fa8c572949b mui-be87a4a64d81",
23
+ "icon-sm": "mui-ebd37e04d422",
24
+ "icon-lg": "mui-d0a383a9c24f",
25
+ },
26
+ },
27
+ defaultVariants: {
28
+ variant: "default",
29
+ size: "default",
30
+ },
31
+ });
32
+ function Button({ className, variant = "default", size = "default", asChild = false, ...props }) {
33
+ const Comp = asChild ? Slot.Root : "button";
34
+ return (_jsx(Comp, { "data-mendy-ui": "", "data-slot": "button", "data-variant": variant, "data-size": size, className: cn(buttonVariants({ variant, size, className })), ...props }));
35
+ }
36
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { DayPicker, type DayButton } from "react-day-picker";
3
+ import { Button } from "./button.js";
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
8
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { format } from "date-fns";
5
+ import { cn } from "../utils.js";
6
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
7
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
8
+ import { Button, buttonVariants } from "./button.js";
9
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
10
+ const defaultClassNames = getDefaultClassNames();
11
+ return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("group/calendar mui-5b272f3c5076 mui-094f5333853b mui-d80b6593dae5 mui-b8293c91796c mui-8dd7e6b42262", "mui-13858191ca50", "mui-a324a7f99932", className), captionLayout: captionLayout, formatters: {
12
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
13
+ ...formatters,
14
+ }, classNames: {
15
+ root: cn("mui-8cfb5a42ef9f", defaultClassNames.root),
16
+ months: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-302c0d124a94 mui-90fc3ec35a37 mui-56760b222da0", defaultClassNames.months),
17
+ month: cn("mui-222f930b8752 mui-58d0413dd93c mui-302c0d124a94 mui-90fc3ec35a37", defaultClassNames.month),
18
+ nav: cn("mui-747355bdc2a2 mui-3ba24c062d55 mui-98599e4ee250 mui-222f930b8752 mui-58d0413dd93c mui-71556df3b421 mui-32c92bb1fde4 mui-19e97f3f40e6", defaultClassNames.nav),
19
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "mui-f7d12b41bceb mui-04760bcd507f mui-78905c9e865c mui-2c0115d1c32a", defaultClassNames.button_previous),
20
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "mui-f7d12b41bceb mui-04760bcd507f mui-78905c9e865c mui-2c0115d1c32a", defaultClassNames.button_next),
21
+ month_caption: cn("mui-222f930b8752 mui-a5960ac1d283 mui-58d0413dd93c mui-71556df3b421 mui-a503dd374cca mui-56b8f5e0fb12", defaultClassNames.month_caption),
22
+ dropdowns: cn("mui-222f930b8752 mui-a5960ac1d283 mui-58d0413dd93c mui-71556df3b421 mui-a503dd374cca mui-70007b876865 mui-c74ab393b96d mui-daaac3fbf55e", defaultClassNames.dropdowns),
23
+ dropdown_root: cn("mui-d2d9e1f13413 mui-3fa8c572949b mui-4f1a55de40bc mui-1267095cdeb7 mui-7de07d413c13 mui-7eb7501a2ef0 mui-d0449753ba7b mui-fc19c8471f34", defaultClassNames.dropdown_root),
24
+ dropdown: cn("mui-747355bdc2a2 mui-ce13093ad8c9 mui-e593c38256e0 mui-94f91922a10e", defaultClassNames.dropdown),
25
+ caption_label: cn("mui-daaac3fbf55e mui-78905c9e865c", captionLayout === "label"
26
+ ? "mui-c74ab393b96d" : "mui-222f930b8752 mui-1fb07b38c63b mui-71556df3b421 mui-19e97f3f40e6 mui-3fa8c572949b mui-1a52da5bc88c mui-f5d8e661d857 mui-c74ab393b96d mui-eb740dd32318 mui-019fd73c95db", defaultClassNames.caption_label),
27
+ month_grid: cn("mui-58d0413dd93c mui-215061302c50", defaultClassNames.month_grid),
28
+ weekdays: cn("mui-222f930b8752", defaultClassNames.weekdays),
29
+ weekday: cn("mui-7bd5bab6d7f4 mui-3fa8c572949b mui-5f120ad4b50b mui-52101fc7d8bb mui-35f35c41d134 mui-78905c9e865c", defaultClassNames.weekday),
30
+ week: cn("mui-f28fea81a5cd mui-222f930b8752 mui-58d0413dd93c", defaultClassNames.week),
31
+ week_number_header: cn("mui-d48fe95d4da8 mui-78905c9e865c", defaultClassNames.week_number_header),
32
+ week_number: cn("mui-5f120ad4b50b mui-35f35c41d134 mui-78905c9e865c", defaultClassNames.week_number),
33
+ day: cn("mui-d9c5891363f9 mui-d2d9e1f13413 mui-129d6f9b1e07 mui-57c930dc1c31 mui-58d0413dd93c mui-04760bcd507f mui-05ab12448317 mui-78905c9e865c mui-6ee0c74de40c", props.showWeekNumber
34
+ ? "mui-6162ab70efb5" : "mui-74ab31abd804", defaultClassNames.day),
35
+ range_start: cn("mui-10c0bae8cba9 mui-292affc1f780", defaultClassNames.range_start),
36
+ range_middle: cn("mui-52417259a4f5", defaultClassNames.range_middle),
37
+ range_end: cn("mui-34bbd346e74c mui-292affc1f780", defaultClassNames.range_end),
38
+ today: cn("mui-3fa8c572949b mui-292affc1f780 mui-cc209238d847 mui-3cc0d07ef843", defaultClassNames.today),
39
+ outside: cn("mui-35f35c41d134 mui-7d900a71e5ba", defaultClassNames.outside),
40
+ disabled: cn("mui-35f35c41d134 mui-0b5a4d1257ab", defaultClassNames.disabled),
41
+ hidden: cn("mui-b75af7ef6c4d", defaultClassNames.hidden),
42
+ ...classNames,
43
+ }, components: {
44
+ Root: ({ className, rootRef, ...props }) => {
45
+ return (_jsx("div", { "data-mendy-ui": "", "data-slot": "calendar", ref: rootRef, className: cn(className), ...props }));
46
+ },
47
+ Chevron: ({ className, orientation, ...props }) => {
48
+ if (orientation === "left") {
49
+ return _jsx(ChevronLeftIcon, { className: cn("mui-100c22d5776b", className), ...props });
50
+ }
51
+ if (orientation === "right") {
52
+ return _jsx(ChevronRightIcon, { className: cn("mui-100c22d5776b", className), ...props });
53
+ }
54
+ return _jsx(ChevronDownIcon, { className: cn("mui-100c22d5776b", className), ...props });
55
+ },
56
+ DayButton: CalendarDayButton,
57
+ WeekNumber: ({ children, ...props }) => {
58
+ return (_jsx("td", { ...props, children: _jsx("div", { className: "mui-222f930b8752 mui-f7d12b41bceb mui-71556df3b421 mui-a503dd374cca mui-05ab12448317", children: children }) }));
59
+ },
60
+ ...components,
61
+ }, ...props }));
62
+ }
63
+ function CalendarDayButton({ className, day, modifiers, ...props }) {
64
+ const defaultClassNames = getDefaultClassNames();
65
+ const ref = React.useRef(null);
66
+ React.useEffect(() => {
67
+ if (modifiers.focused)
68
+ ref.current?.focus();
69
+ }, [modifiers.focused]);
70
+ return (_jsx(Button, { ref: ref, variant: "ghost", size: "icon", "data-day": format(day.date, "yyyy-MM-dd"), "data-selected-single": modifiers.selected &&
71
+ !modifiers.range_start &&
72
+ !modifiers.range_end &&
73
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("mui-222f930b8752 mui-129d6f9b1e07 mui-4dad94bd15e3 mui-58d0413dd93c mui-1458e495e3ae mui-302c0d124a94 mui-19e97f3f40e6 mui-761cdb81bddb mui-52101fc7d8bb mui-60052b901494 mui-3f96bf138f7b mui-d39eb62b8363 mui-47cbd20a4dc0 mui-4eb7d653ae35 mui-96308b55e0d6 mui-a55dbe6f3eec mui-714051e55e8e mui-c764cebcd540 mui-05ec0700cd48 mui-5fb598fb06f4 mui-0813905aa141 mui-8020e31bff67 mui-ab65911baf1d mui-f5460d79341c mui-421a7d3e6631 mui-a39af81d518c mui-b6991ab170de mui-b2786f463a62 mui-ba417cf466b0 mui-829c8ef4f9c5", defaultClassNames.day, className), ...props }));
74
+ }
75
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Checkbox as CheckboxPrimitive } from "radix-ui";
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Checkbox };
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../utils.js";
5
+ import { CheckIcon } from "lucide-react";
6
+ import { Checkbox as CheckboxPrimitive } from "radix-ui";
7
+ function Checkbox({ className, ...props }) {
8
+ return (_jsx(CheckboxPrimitive.Root, { "data-mendy-ui": "", "data-slot": "checkbox", className: cn("mui-2ffc1d06387e mui-100c22d5776b mui-27ead27a81df mui-02e603944040 mui-4f1a55de40bc mui-1267095cdeb7 mui-7de07d413c13 mui-2b48746f4314 mui-b30fc56058b6 mui-b906a32b31ee mui-365a4654f7b1 mui-392a26f4c1b0 mui-db567af109b7 mui-4600b77303d6 mui-1fac1d7d1df3 mui-5491fd0b4dc5 mui-20553d55d224 mui-57d6d6401a2f mui-7ca12016214f mui-9daa2369a41b mui-c88f65aa011e mui-bd73d819941e", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-mendy-ui": "", "data-slot": "checkbox-indicator", className: "mui-0f2a693e93e2 mui-8fd2e2355cbc mui-5eafab9bbefc mui-b4b2fd95f324", children: _jsx(CheckIcon, { className: "mui-61c000c8a98a" }) }) }));
9
+ }
10
+ export { Checkbox };
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: "default" | "destructive";
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { useMendyUI } from "../customization.js";
5
+ import { cn } from "../utils.js";
6
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
7
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
8
+ function DropdownMenu({ ...props }) {
9
+ return _jsx(DropdownMenuPrimitive.Root, { "data-mendy-ui": "", "data-slot": "dropdown-menu", ...props });
10
+ }
11
+ function DropdownMenuPortal({ ...props }) {
12
+ return (_jsx(DropdownMenuPrimitive.Portal, { container: useMendyUI().portalContainer, "data-slot": "dropdown-menu-portal", ...props }));
13
+ }
14
+ function DropdownMenuTrigger({ ...props }) {
15
+ return (_jsx(DropdownMenuPrimitive.Trigger, { "data-mendy-ui": "", "data-slot": "dropdown-menu-trigger", ...props }));
16
+ }
17
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
18
+ const { portalContainer } = useMendyUI();
19
+ return (_jsx(DropdownMenuPrimitive.Portal, { container: portalContainer, children: _jsx(DropdownMenuPrimitive.Content, { "data-mendy-ui": "", "data-slot": "dropdown-menu-content", sideOffset: sideOffset, className: cn("mui-3eef1ce97dba mui-1f061e70178e mui-e9ab1547c94d mui-3a3774477287 mui-3b82279f859f mui-2368e909f3a5 mui-3fa8c572949b mui-4f1a55de40bc mui-e593c38256e0 mui-1dee6e3ec67d mui-5bd2afe89f0b mui-94ea94fde25f mui-89f6aab7a3f8 mui-3550f48d66b9 mui-7720fe004f5c mui-66b560f839de mui-0cb4489c3645 mui-bb5869ef903b mui-f4cf4be63707 mui-bae1e782f277 mui-45464a92c1f6 mui-9ca352480f25", className), ...props }) }));
20
+ }
21
+ function DropdownMenuGroup({ ...props }) {
22
+ return (_jsx(DropdownMenuPrimitive.Group, { "data-mendy-ui": "", "data-slot": "dropdown-menu-group", ...props }));
23
+ }
24
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
25
+ return (_jsx(DropdownMenuPrimitive.Item, { "data-mendy-ui": "", "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-6fa6a8ade7c4 mui-f3f7a9c5e1b3 mui-e2bb4ac97190 mui-353a727facfd mui-98a28c2293f7 mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4 mui-8637dfd54fbb mui-82b114bbff3d", className), ...props }));
26
+ }
27
+ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
28
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-mendy-ui": "", "data-slot": "dropdown-menu-checkbox-item", className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-a8c1dfb1d4ef mui-98a5b6fff1d2 mui-75b27e813dcc mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4", className), checked: checked, ...props, children: [_jsx("span", { className: "mui-33228ff7d583 mui-747355bdc2a2 mui-5b9fdf1819c4 mui-222f930b8752 mui-61c000c8a98a mui-71556df3b421 mui-a503dd374cca", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "mui-100c22d5776b" }) }) }), children] }));
29
+ }
30
+ function DropdownMenuRadioGroup({ ...props }) {
31
+ return (_jsx(DropdownMenuPrimitive.RadioGroup, { "data-mendy-ui": "", "data-slot": "dropdown-menu-radio-group", ...props }));
32
+ }
33
+ function DropdownMenuRadioItem({ className, children, ...props }) {
34
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-mendy-ui": "", "data-slot": "dropdown-menu-radio-item", className: cn("mui-d2d9e1f13413 mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-a8c1dfb1d4ef mui-98a5b6fff1d2 mui-75b27e813dcc mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-397f5ba426a0 mui-9beb654fcb0d mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4", className), ...props, children: [_jsx("span", { className: "mui-33228ff7d583 mui-747355bdc2a2 mui-5b9fdf1819c4 mui-222f930b8752 mui-61c000c8a98a mui-71556df3b421 mui-a503dd374cca", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "mui-9e7600197f38 mui-717b342c2d01" }) }) }), children] }));
35
+ }
36
+ function DropdownMenuLabel({ className, inset, ...props }) {
37
+ return (_jsx(DropdownMenuPrimitive.Label, { "data-mendy-ui": "", "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-daaac3fbf55e mui-6fa6a8ade7c4", className), ...props }));
38
+ }
39
+ function DropdownMenuSeparator({ className, ...props }) {
40
+ return (_jsx(DropdownMenuPrimitive.Separator, { "data-mendy-ui": "", "data-slot": "dropdown-menu-separator", className: cn("mui-abba77319850 mui-d8747231f142 mui-ae2c4b060bb9 mui-a943bea85d66", className), ...props }));
41
+ }
42
+ function DropdownMenuShortcut({ className, ...props }) {
43
+ return (_jsx("span", { "data-mendy-ui": "", "data-slot": "dropdown-menu-shortcut", className: cn("mui-cc51bda60e7e mui-3992de70b033 mui-e1683b3c030a mui-35f35c41d134", className), ...props }));
44
+ }
45
+ function DropdownMenuSub({ ...props }) {
46
+ return _jsx(DropdownMenuPrimitive.Sub, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub", ...props });
47
+ }
48
+ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
49
+ return (_jsxs(DropdownMenuPrimitive.SubTrigger, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("mui-222f930b8752 mui-d343f41ba73e mui-71556df3b421 mui-074569488cca mui-02e603944040 mui-e7e01cc7f4df mui-a8c1dfb1d4ef mui-c74ab393b96d mui-59edd3d33673 mui-78905c9e865c mui-a8c1861c5d03 mui-a85c4c5d7465 mui-6fa6a8ade7c4 mui-4027d9c589b6 mui-1952cd5b00aa mui-bcae9d37090c mui-040e748a3fa0 mui-eb5ef2dbc2d4 mui-8637dfd54fbb", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "mui-cc51bda60e7e mui-100c22d5776b" })] }));
50
+ }
51
+ function DropdownMenuSubContent({ className, ...props }) {
52
+ return (_jsx(DropdownMenuPrimitive.SubContent, { "data-mendy-ui": "", "data-slot": "dropdown-menu-sub-content", className: cn("mui-3eef1ce97dba mui-e9ab1547c94d mui-3a3774477287 mui-d5111d0e9f48 mui-3fa8c572949b mui-4f1a55de40bc mui-e593c38256e0 mui-1dee6e3ec67d mui-5bd2afe89f0b mui-0d4ca75de41c mui-89f6aab7a3f8 mui-3550f48d66b9 mui-7720fe004f5c mui-66b560f839de mui-0cb4489c3645 mui-bb5869ef903b mui-f4cf4be63707 mui-bae1e782f277 mui-45464a92c1f6 mui-9ca352480f25", className), ...props }));
53
+ }
54
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,8 @@
1
+ export * from "./button.js";
2
+ export * from "./calendar.js";
3
+ export * from "./checkbox.js";
4
+ export * from "./dropdown-menu.js";
5
+ export * from "./input.js";
6
+ export * from "./label.js";
7
+ export * from "./textarea.js";
8
+ export { cn } from "../utils.js";
@@ -0,0 +1,8 @@
1
+ export * from "./button.js";
2
+ export * from "./calendar.js";
3
+ export * from "./checkbox.js";
4
+ export * from "./dropdown-menu.js";
5
+ export * from "./input.js";
6
+ export * from "./label.js";
7
+ export * from "./textarea.js";
8
+ export { cn } from "../utils.js";
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../utils.js";
4
+ function Input({ className, type, ...props }) {
5
+ return (_jsx("input", { type: type, "data-mendy-ui": "", "data-slot": "input", className: cn("mui-222f930b8752 mui-539ae144f076 mui-58d0413dd93c mui-184ddc11e5f9 mui-3fa8c572949b mui-4f1a55de40bc mui-8fca9236d191 mui-0f9e6672913a mui-1fcf28756bb1 mui-757071a1d1c4 mui-eae178841c68 mui-b30fc56058b6 mui-32713fefe32f mui-25a74d576c42 mui-844abccf1fd0 mui-dc43de54f42a mui-20315da78444 mui-db567af109b7 mui-4600b77303d6 mui-c05c9b99939d", "mui-39be5a15b766 mui-db549d38ff19", "mui-1fac1d7d1df3 mui-2d91b4cbc3cb", className), ...props }));
6
+ }
7
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Label as LabelPrimitive } from "radix-ui";
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Label };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../utils.js";
5
+ import { Label as LabelPrimitive } from "radix-ui";
6
+ function Label({ className, ...props }) {
7
+ return (_jsx(LabelPrimitive.Root, { "data-mendy-ui": "", "data-slot": "label", className: cn("mui-222f930b8752 mui-71556df3b421 mui-074569488cca mui-c74ab393b96d mui-761cdb81bddb mui-daaac3fbf55e mui-78905c9e865c mui-9af9a4182597 mui-272ef88d6a0c mui-f0ee83167878 mui-25d26df52a1d", className), ...props }));
8
+ }
9
+ export { Label };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../utils.js";
4
+ function Textarea({ className, ...props }) {
5
+ return (_jsx("textarea", { "data-mendy-ui": "", "data-slot": "textarea", className: cn("mui-222f930b8752 mui-3da89b3ed14b mui-50312c3ce4a3 mui-58d0413dd93c mui-3fa8c572949b mui-4f1a55de40bc mui-1267095cdeb7 mui-8fca9236d191 mui-0f9e6672913a mui-b5edc3ea7c91 mui-757071a1d1c4 mui-20315da78444 mui-2e357972fc10 mui-39be5a15b766 mui-db549d38ff19 mui-db567af109b7 mui-4600b77303d6 mui-1fac1d7d1df3 mui-2d91b4cbc3cb mui-c05c9b99939d", className), ...props }));
6
+ }
7
+ export { Textarea };