@flowselections/core 1.0.7 → 1.0.9
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/auth/useAuth.d.ts +27 -27
- package/dist/auth/useAuth.js +72 -72
- package/dist/components/instellingen/NotificationSettingsCard.d.ts +1 -1
- package/dist/components/instellingen/NotificationSettingsCard.js +63 -63
- package/dist/components/layout/BugsDialog.d.ts +6 -6
- package/dist/components/layout/BugsDialog.js +148 -148
- package/dist/components/layout/Header.d.ts +5 -5
- package/dist/components/layout/Header.js +30 -30
- package/dist/components/layout/InstellingenPage.d.ts +4 -4
- package/dist/components/layout/InstellingenPage.js +78 -78
- package/dist/components/layout/LoginPage.d.ts +5 -5
- package/dist/components/layout/LoginPage.js +57 -57
- package/dist/components/layout/NotificationBell.d.ts +1 -1
- package/dist/components/layout/NotificationBell.js +45 -45
- package/dist/components/layout/ResetWachtwoordPage.d.ts +5 -5
- package/dist/components/layout/ResetWachtwoordPage.js +51 -51
- package/dist/components/layout/Sidebar.d.ts +8 -8
- package/dist/components/layout/Sidebar.js +29 -31
- package/dist/components/ui/accordion.d.ts +7 -7
- package/dist/components/ui/accordion.js +13 -13
- package/dist/components/ui/alert-dialog.d.ts +20 -20
- package/dist/components/ui/alert-dialog.js +26 -26
- package/dist/components/ui/alert.d.ts +8 -8
- package/dist/components/ui/alert.js +22 -22
- package/dist/components/ui/aspect-ratio.d.ts +3 -3
- package/dist/components/ui/aspect-ratio.js +3 -3
- package/dist/components/ui/avatar.d.ts +6 -6
- package/dist/components/ui/avatar.js +12 -12
- package/dist/components/ui/badge.d.ts +9 -9
- package/dist/components/ui/badge.js +20 -20
- package/dist/components/ui/breadcrumb.d.ts +19 -19
- package/dist/components/ui/breadcrumb.js +23 -23
- package/dist/components/ui/button.d.ts +11 -11
- package/dist/components/ui/button.js +33 -33
- package/dist/components/ui/calendar.d.ts +8 -8
- package/dist/components/ui/calendar.js +74 -74
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/card.js +16 -16
- package/dist/components/ui/carousel.d.ts +18 -18
- package/dist/components/ui/carousel.js +98 -98
- package/dist/components/ui/chart.d.ts +62 -62
- package/dist/components/ui/chart.js +130 -130
- package/dist/components/ui/checkbox.d.ts +4 -4
- package/dist/components/ui/checkbox.js +8 -8
- package/dist/components/ui/collapsible.d.ts +5 -5
- package/dist/components/ui/collapsible.js +6 -6
- package/dist/components/ui/command.d.ts +80 -80
- package/dist/components/ui/command.js +29 -29
- package/dist/components/ui/context-menu.d.ts +27 -27
- package/dist/components/ui/context-menu.js +33 -33
- package/dist/components/ui/dialog.d.ts +19 -19
- package/dist/components/ui/dialog.js +23 -23
- package/dist/components/ui/drawer.d.ts +22 -22
- package/dist/components/ui/drawer.js +22 -22
- package/dist/components/ui/dropdown-menu.d.ts +27 -27
- package/dist/components/ui/dropdown-menu.js +36 -36
- package/dist/components/ui/form.d.ts +23 -23
- package/dist/components/ui/form.js +65 -65
- package/dist/components/ui/hover-card.d.ts +6 -6
- package/dist/components/ui/hover-card.js +9 -9
- package/dist/components/ui/icon-picker.d.ts +14 -14
- package/dist/components/ui/icon-picker.js +73 -73
- package/dist/components/ui/input-otp.d.ts +34 -34
- package/dist/components/ui/input-otp.js +18 -18
- package/dist/components/ui/input.d.ts +3 -3
- package/dist/components/ui/input.js +8 -8
- package/dist/components/ui/label.d.ts +5 -5
- package/dist/components/ui/label.js +10 -10
- package/dist/components/ui/menubar.d.ts +28 -28
- package/dist/components/ui/menubar.js +45 -45
- package/dist/components/ui/navigation-menu.d.ts +12 -12
- package/dist/components/ui/navigation-menu.js +24 -24
- package/dist/components/ui/pagination.d.ts +28 -28
- package/dist/components/ui/pagination.js +23 -23
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.js +10 -10
- package/dist/components/ui/progress.d.ts +4 -4
- package/dist/components/ui/progress.js +8 -8
- package/dist/components/ui/radio-group.d.ts +5 -5
- package/dist/components/ui/radio-group.js +14 -14
- package/dist/components/ui/resizable.d.ts +7 -7
- package/dist/components/ui/resizable.js +8 -8
- package/dist/components/ui/scroll-area.d.ts +5 -5
- package/dist/components/ui/scroll-area.js +11 -11
- package/dist/components/ui/select.d.ts +13 -13
- package/dist/components/ui/select.js +27 -27
- package/dist/components/ui/separator.d.ts +4 -4
- package/dist/components/ui/separator.js +7 -7
- package/dist/components/ui/sheet.d.ts +25 -25
- package/dist/components/ui/sheet.js +37 -37
- package/dist/components/ui/sidebar.d.ts +65 -65
- package/dist/components/ui/sidebar.js +224 -224
- package/dist/components/ui/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton.js +6 -6
- package/dist/components/ui/slider.d.ts +4 -4
- package/dist/components/ui/slider.js +7 -7
- package/dist/components/ui/sonner.d.ts +4 -4
- package/dist/components/ui/sonner.js +13 -13
- package/dist/components/ui/switch.d.ts +4 -4
- package/dist/components/ui/switch.js +7 -7
- package/dist/components/ui/table.d.ts +10 -10
- package/dist/components/ui/table.js +20 -20
- package/dist/components/ui/tabs.d.ts +7 -7
- package/dist/components/ui/tabs.js +12 -12
- package/dist/components/ui/textarea.d.ts +3 -3
- package/dist/components/ui/textarea.js +8 -8
- package/dist/components/ui/toggle-group.d.ts +12 -12
- package/dist/components/ui/toggle-group.js +21 -21
- package/dist/components/ui/toggle.d.ts +12 -12
- package/dist/components/ui/toggle.js +25 -25
- package/dist/components/ui/tooltip.d.ts +7 -7
- package/dist/components/ui/tooltip.js +11 -11
- package/dist/hooks/use-mobile.d.ts +1 -1
- package/dist/hooks/use-mobile.js +15 -15
- package/dist/index.d.ts +31 -31
- package/dist/index.js +33 -33
- package/dist/lib/utils.d.ts +2 -2
- package/dist/lib/utils.js +5 -5
- package/dist/lib/validationSchemas.d.ts +14 -14
- package/dist/lib/validationSchemas.js +25 -25
- package/dist/supabase/auth-middleware.d.ts +638 -638
- package/dist/supabase/auth-middleware.js +52 -52
- package/dist/supabase/client.d.ts +634 -634
- package/dist/supabase/client.js +13 -13
- package/dist/supabase/client.server.d.ts +634 -634
- package/dist/supabase/client.server.js +30 -30
- package/dist/supabase/types.d.ts +716 -716
- package/dist/supabase/types.js +7 -7
- package/dist/types/module.d.ts +19 -19
- package/dist/types/module.js +1 -1
- package/package.json +1 -1
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
-
import { Controller, FormProvider, useFormContext, } from "react-hook-form";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Label } from "./label";
|
|
7
|
-
const Form = FormProvider;
|
|
8
|
-
const FormFieldContext = React.createContext(null);
|
|
9
|
-
const FormField = ({ ...props }) => {
|
|
10
|
-
return (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, { ...props }) }));
|
|
11
|
-
};
|
|
12
|
-
const useFormField = () => {
|
|
13
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
14
|
-
const itemContext = React.useContext(FormItemContext);
|
|
15
|
-
const { getFieldState, formState } = useFormContext();
|
|
16
|
-
if (!fieldContext) {
|
|
17
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
18
|
-
}
|
|
19
|
-
if (!itemContext) {
|
|
20
|
-
throw new Error("useFormField should be used within <FormItem>");
|
|
21
|
-
}
|
|
22
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
23
|
-
const { id } = itemContext;
|
|
24
|
-
return {
|
|
25
|
-
id,
|
|
26
|
-
name: fieldContext.name,
|
|
27
|
-
formItemId: `${id}-form-item`,
|
|
28
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
29
|
-
formMessageId: `${id}-form-item-message`,
|
|
30
|
-
...fieldState,
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
const FormItemContext = React.createContext(null);
|
|
34
|
-
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
35
|
-
const id = React.useId();
|
|
36
|
-
return (_jsx(FormItemContext.Provider, { value: { id }, children: _jsx("div", { ref: ref, className: cn("space-y-2", className), ...props }) }));
|
|
37
|
-
});
|
|
38
|
-
FormItem.displayName = "FormItem";
|
|
39
|
-
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
40
|
-
const { error, formItemId } = useFormField();
|
|
41
|
-
return (_jsx(Label, { ref: ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props }));
|
|
42
|
-
});
|
|
43
|
-
FormLabel.displayName = "FormLabel";
|
|
44
|
-
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
45
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
46
|
-
return (_jsx(Slot, { ref: ref, id: formItemId, "aria-describedby": !error
|
|
47
|
-
? `${formDescriptionId}`
|
|
48
|
-
: `${formDescriptionId} ${formMessageId}`, "aria-invalid": !!error, ...props }));
|
|
49
|
-
});
|
|
50
|
-
FormControl.displayName = "FormControl";
|
|
51
|
-
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
52
|
-
const { formDescriptionId } = useFormField();
|
|
53
|
-
return (_jsx("p", { ref: ref, id: formDescriptionId, className: cn("text-[0.8rem] text-muted-foreground", className), ...props }));
|
|
54
|
-
});
|
|
55
|
-
FormDescription.displayName = "FormDescription";
|
|
56
|
-
const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
57
|
-
const { error, formMessageId } = useFormField();
|
|
58
|
-
const body = error ? String(error?.message ?? "") : children;
|
|
59
|
-
if (!body) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
return (_jsx("p", { ref: ref, id: formMessageId, className: cn("text-[0.8rem] font-medium text-destructive", className), ...props, children: body }));
|
|
63
|
-
});
|
|
64
|
-
FormMessage.displayName = "FormMessage";
|
|
65
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { Controller, FormProvider, useFormContext, } from "react-hook-form";
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Label } from "./label";
|
|
7
|
+
const Form = FormProvider;
|
|
8
|
+
const FormFieldContext = React.createContext(null);
|
|
9
|
+
const FormField = ({ ...props }) => {
|
|
10
|
+
return (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, { ...props }) }));
|
|
11
|
+
};
|
|
12
|
+
const useFormField = () => {
|
|
13
|
+
const fieldContext = React.useContext(FormFieldContext);
|
|
14
|
+
const itemContext = React.useContext(FormItemContext);
|
|
15
|
+
const { getFieldState, formState } = useFormContext();
|
|
16
|
+
if (!fieldContext) {
|
|
17
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
18
|
+
}
|
|
19
|
+
if (!itemContext) {
|
|
20
|
+
throw new Error("useFormField should be used within <FormItem>");
|
|
21
|
+
}
|
|
22
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
23
|
+
const { id } = itemContext;
|
|
24
|
+
return {
|
|
25
|
+
id,
|
|
26
|
+
name: fieldContext.name,
|
|
27
|
+
formItemId: `${id}-form-item`,
|
|
28
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
29
|
+
formMessageId: `${id}-form-item-message`,
|
|
30
|
+
...fieldState,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
const FormItemContext = React.createContext(null);
|
|
34
|
+
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
35
|
+
const id = React.useId();
|
|
36
|
+
return (_jsx(FormItemContext.Provider, { value: { id }, children: _jsx("div", { ref: ref, className: cn("space-y-2", className), ...props }) }));
|
|
37
|
+
});
|
|
38
|
+
FormItem.displayName = "FormItem";
|
|
39
|
+
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
40
|
+
const { error, formItemId } = useFormField();
|
|
41
|
+
return (_jsx(Label, { ref: ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props }));
|
|
42
|
+
});
|
|
43
|
+
FormLabel.displayName = "FormLabel";
|
|
44
|
+
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
45
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
46
|
+
return (_jsx(Slot, { ref: ref, id: formItemId, "aria-describedby": !error
|
|
47
|
+
? `${formDescriptionId}`
|
|
48
|
+
: `${formDescriptionId} ${formMessageId}`, "aria-invalid": !!error, ...props }));
|
|
49
|
+
});
|
|
50
|
+
FormControl.displayName = "FormControl";
|
|
51
|
+
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
52
|
+
const { formDescriptionId } = useFormField();
|
|
53
|
+
return (_jsx("p", { ref: ref, id: formDescriptionId, className: cn("text-[0.8rem] text-muted-foreground", className), ...props }));
|
|
54
|
+
});
|
|
55
|
+
FormDescription.displayName = "FormDescription";
|
|
56
|
+
const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
57
|
+
const { error, formMessageId } = useFormField();
|
|
58
|
+
const body = error ? String(error?.message ?? "") : children;
|
|
59
|
+
if (!body) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return (_jsx("p", { ref: ref, id: formMessageId, className: cn("text-[0.8rem] font-medium text-destructive", className), ...props, children: body }));
|
|
63
|
+
});
|
|
64
|
+
FormMessage.displayName = "FormMessage";
|
|
65
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
|
-
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
4
|
-
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
4
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
7
7
|
//# sourceMappingURL=hover-card.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
const HoverCard = HoverCardPrimitive.Root;
|
|
6
|
-
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
7
|
-
const HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (_jsx(HoverCardPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 origin-(--radix-hover-card-content-transform-origin)", className), ...props })));
|
|
8
|
-
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
9
|
-
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
const HoverCard = HoverCardPrimitive.Root;
|
|
6
|
+
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
7
|
+
const HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (_jsx(HoverCardPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 origin-(--radix-hover-card-content-transform-origin)", className), ...props })));
|
|
8
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
9
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare const ICON_MAP: Record<string, React.ComponentType<{
|
|
2
|
-
className?: string;
|
|
3
|
-
}>>;
|
|
4
|
-
interface IconPickerProps {
|
|
5
|
-
value: string | null;
|
|
6
|
-
onChange: (iconName: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function IconPicker({ value, onChange }: IconPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
/** Render an icon by its stored name. Falls back to Tag. */
|
|
10
|
-
export declare function DynamicIcon({ name, className }: {
|
|
11
|
-
name: string | null;
|
|
12
|
-
className?: string;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
export declare const ICON_MAP: Record<string, React.ComponentType<{
|
|
2
|
+
className?: string;
|
|
3
|
+
}>>;
|
|
4
|
+
interface IconPickerProps {
|
|
5
|
+
value: string | null;
|
|
6
|
+
onChange: (iconName: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function IconPicker({ value, onChange }: IconPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/** Render an icon by its stored name. Falls back to Tag. */
|
|
10
|
+
export declare function DynamicIcon({ name, className }: {
|
|
11
|
+
name: string | null;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
15
|
//# sourceMappingURL=icon-picker.d.ts.map
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { Leaf, Box, Flower, Flower2, TreePine, TreeDeciduous, Sprout, Apple, Cherry, Grape, Carrot, Bean, Package, PackageOpen, Truck, ShoppingCart, ShoppingBag, Warehouse, Store, Tag, Tags, Layers, Droplets, Sun, CloudRain, Thermometer, Wind, Scissors, Shovel, Hammer, Wrench, Palette, Heart, Star, CircleDot, Square, Triangle, Wheat, Clover, Trees, Mountain, Globe, } from "lucide-react";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Popover, PopoverContent, PopoverTrigger } from "./popover";
|
|
6
|
-
import { Button } from "./button";
|
|
7
|
-
export const ICON_MAP = {
|
|
8
|
-
leaf: Leaf,
|
|
9
|
-
box: Box,
|
|
10
|
-
flower: Flower,
|
|
11
|
-
"flower-2": Flower2,
|
|
12
|
-
"tree-pine": TreePine,
|
|
13
|
-
"tree-deciduous": TreeDeciduous,
|
|
14
|
-
sprout: Sprout,
|
|
15
|
-
apple: Apple,
|
|
16
|
-
cherry: Cherry,
|
|
17
|
-
grape: Grape,
|
|
18
|
-
carrot: Carrot,
|
|
19
|
-
bean: Bean,
|
|
20
|
-
package: Package,
|
|
21
|
-
"package-open": PackageOpen,
|
|
22
|
-
truck: Truck,
|
|
23
|
-
"shopping-cart": ShoppingCart,
|
|
24
|
-
"shopping-bag": ShoppingBag,
|
|
25
|
-
warehouse: Warehouse,
|
|
26
|
-
store: Store,
|
|
27
|
-
tag: Tag,
|
|
28
|
-
tags: Tags,
|
|
29
|
-
layers: Layers,
|
|
30
|
-
droplets: Droplets,
|
|
31
|
-
sun: Sun,
|
|
32
|
-
"cloud-rain": CloudRain,
|
|
33
|
-
thermometer: Thermometer,
|
|
34
|
-
wind: Wind,
|
|
35
|
-
scissors: Scissors,
|
|
36
|
-
shovel: Shovel,
|
|
37
|
-
hammer: Hammer,
|
|
38
|
-
wrench: Wrench,
|
|
39
|
-
palette: Palette,
|
|
40
|
-
heart: Heart,
|
|
41
|
-
star: Star,
|
|
42
|
-
"circle-dot": CircleDot,
|
|
43
|
-
square: Square,
|
|
44
|
-
triangle: Triangle,
|
|
45
|
-
wheat: Wheat,
|
|
46
|
-
clover: Clover,
|
|
47
|
-
trees: Trees,
|
|
48
|
-
mountain: Mountain,
|
|
49
|
-
globe: Globe,
|
|
50
|
-
};
|
|
51
|
-
const ICON_LABELS = {
|
|
52
|
-
leaf: "Blad", box: "Doos", flower: "Bloem", "flower-2": "Bloem 2",
|
|
53
|
-
"tree-pine": "Dennenboom", "tree-deciduous": "Loofboom", sprout: "Kiemplant",
|
|
54
|
-
apple: "Appel", cherry: "Kers", grape: "Druif", carrot: "Wortel", bean: "Boon",
|
|
55
|
-
package: "Pakket", "package-open": "Pakket open", truck: "Vrachtwagen",
|
|
56
|
-
"shopping-cart": "Winkelwagen", "shopping-bag": "Boodschappentas",
|
|
57
|
-
warehouse: "Magazijn", store: "Winkel", tag: "Label", tags: "Labels",
|
|
58
|
-
layers: "Lagen", droplets: "Druppels", sun: "Zon", "cloud-rain": "Regen",
|
|
59
|
-
thermometer: "Thermometer", wind: "Wind", scissors: "Schaar", shovel: "Schep",
|
|
60
|
-
hammer: "Hamer", wrench: "Moersleutel", palette: "Palet", heart: "Hart",
|
|
61
|
-
star: "Ster", "circle-dot": "Cirkel", square: "Vierkant", triangle: "Driehoek",
|
|
62
|
-
wheat: "Tarwe", clover: "Klaver", trees: "Bomen", mountain: "Berg", globe: "Wereld",
|
|
63
|
-
};
|
|
64
|
-
export function IconPicker({ value, onChange }) {
|
|
65
|
-
const [open, setOpen] = useState(false);
|
|
66
|
-
const SelectedIcon = value && ICON_MAP[value] ? ICON_MAP[value] : Tag;
|
|
67
|
-
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 shrink-0", title: "Kies icoon", children: _jsx(SelectedIcon, { className: "h-5 w-5" }) }) }), _jsxs(PopoverContent, { className: "w-[320px] p-3", align: "start", children: [_jsx("p", { className: "text-xs text-muted-foreground mb-2 font-medium", children: "Kies een icoon" }), _jsx("div", { className: "grid grid-cols-8 gap-1", children: Object.entries(ICON_MAP).map(([name, Icon]) => (_jsx("button", { type: "button", onClick: () => { onChange(name); setOpen(false); }, className: cn("flex items-center justify-center h-9 w-9 rounded-md hover:bg-accent transition-colors", value === name && "bg-primary/10 ring-2 ring-primary"), title: ICON_LABELS[name] || name, children: _jsx(Icon, { className: "h-4 w-4" }) }, name))) })] })] }));
|
|
68
|
-
}
|
|
69
|
-
/** Render an icon by its stored name. Falls back to Tag. */
|
|
70
|
-
export function DynamicIcon({ name, className }) {
|
|
71
|
-
const Icon = name && ICON_MAP[name] ? ICON_MAP[name] : Tag;
|
|
72
|
-
return _jsx(Icon, { className: className });
|
|
73
|
-
}
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Leaf, Box, Flower, Flower2, TreePine, TreeDeciduous, Sprout, Apple, Cherry, Grape, Carrot, Bean, Package, PackageOpen, Truck, ShoppingCart, ShoppingBag, Warehouse, Store, Tag, Tags, Layers, Droplets, Sun, CloudRain, Thermometer, Wind, Scissors, Shovel, Hammer, Wrench, Palette, Heart, Star, CircleDot, Square, Triangle, Wheat, Clover, Trees, Mountain, Globe, } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover";
|
|
6
|
+
import { Button } from "./button";
|
|
7
|
+
export const ICON_MAP = {
|
|
8
|
+
leaf: Leaf,
|
|
9
|
+
box: Box,
|
|
10
|
+
flower: Flower,
|
|
11
|
+
"flower-2": Flower2,
|
|
12
|
+
"tree-pine": TreePine,
|
|
13
|
+
"tree-deciduous": TreeDeciduous,
|
|
14
|
+
sprout: Sprout,
|
|
15
|
+
apple: Apple,
|
|
16
|
+
cherry: Cherry,
|
|
17
|
+
grape: Grape,
|
|
18
|
+
carrot: Carrot,
|
|
19
|
+
bean: Bean,
|
|
20
|
+
package: Package,
|
|
21
|
+
"package-open": PackageOpen,
|
|
22
|
+
truck: Truck,
|
|
23
|
+
"shopping-cart": ShoppingCart,
|
|
24
|
+
"shopping-bag": ShoppingBag,
|
|
25
|
+
warehouse: Warehouse,
|
|
26
|
+
store: Store,
|
|
27
|
+
tag: Tag,
|
|
28
|
+
tags: Tags,
|
|
29
|
+
layers: Layers,
|
|
30
|
+
droplets: Droplets,
|
|
31
|
+
sun: Sun,
|
|
32
|
+
"cloud-rain": CloudRain,
|
|
33
|
+
thermometer: Thermometer,
|
|
34
|
+
wind: Wind,
|
|
35
|
+
scissors: Scissors,
|
|
36
|
+
shovel: Shovel,
|
|
37
|
+
hammer: Hammer,
|
|
38
|
+
wrench: Wrench,
|
|
39
|
+
palette: Palette,
|
|
40
|
+
heart: Heart,
|
|
41
|
+
star: Star,
|
|
42
|
+
"circle-dot": CircleDot,
|
|
43
|
+
square: Square,
|
|
44
|
+
triangle: Triangle,
|
|
45
|
+
wheat: Wheat,
|
|
46
|
+
clover: Clover,
|
|
47
|
+
trees: Trees,
|
|
48
|
+
mountain: Mountain,
|
|
49
|
+
globe: Globe,
|
|
50
|
+
};
|
|
51
|
+
const ICON_LABELS = {
|
|
52
|
+
leaf: "Blad", box: "Doos", flower: "Bloem", "flower-2": "Bloem 2",
|
|
53
|
+
"tree-pine": "Dennenboom", "tree-deciduous": "Loofboom", sprout: "Kiemplant",
|
|
54
|
+
apple: "Appel", cherry: "Kers", grape: "Druif", carrot: "Wortel", bean: "Boon",
|
|
55
|
+
package: "Pakket", "package-open": "Pakket open", truck: "Vrachtwagen",
|
|
56
|
+
"shopping-cart": "Winkelwagen", "shopping-bag": "Boodschappentas",
|
|
57
|
+
warehouse: "Magazijn", store: "Winkel", tag: "Label", tags: "Labels",
|
|
58
|
+
layers: "Lagen", droplets: "Druppels", sun: "Zon", "cloud-rain": "Regen",
|
|
59
|
+
thermometer: "Thermometer", wind: "Wind", scissors: "Schaar", shovel: "Schep",
|
|
60
|
+
hammer: "Hamer", wrench: "Moersleutel", palette: "Palet", heart: "Hart",
|
|
61
|
+
star: "Ster", "circle-dot": "Cirkel", square: "Vierkant", triangle: "Driehoek",
|
|
62
|
+
wheat: "Tarwe", clover: "Klaver", trees: "Bomen", mountain: "Berg", globe: "Wereld",
|
|
63
|
+
};
|
|
64
|
+
export function IconPicker({ value, onChange }) {
|
|
65
|
+
const [open, setOpen] = useState(false);
|
|
66
|
+
const SelectedIcon = value && ICON_MAP[value] ? ICON_MAP[value] : Tag;
|
|
67
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 shrink-0", title: "Kies icoon", children: _jsx(SelectedIcon, { className: "h-5 w-5" }) }) }), _jsxs(PopoverContent, { className: "w-[320px] p-3", align: "start", children: [_jsx("p", { className: "text-xs text-muted-foreground mb-2 font-medium", children: "Kies een icoon" }), _jsx("div", { className: "grid grid-cols-8 gap-1", children: Object.entries(ICON_MAP).map(([name, Icon]) => (_jsx("button", { type: "button", onClick: () => { onChange(name); setOpen(false); }, className: cn("flex items-center justify-center h-9 w-9 rounded-md hover:bg-accent transition-colors", value === name && "bg-primary/10 ring-2 ring-primary"), title: ICON_LABELS[name] || name, children: _jsx(Icon, { className: "h-4 w-4" }) }, name))) })] })] }));
|
|
68
|
+
}
|
|
69
|
+
/** Render an icon by its stored name. Falls back to Tag. */
|
|
70
|
+
export function DynamicIcon({ name, className }) {
|
|
71
|
+
const Icon = name && ICON_MAP[name] ? ICON_MAP[name] : Tag;
|
|
72
|
+
return _jsx(Icon, { className: className });
|
|
73
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (newValue: string) => unknown;
|
|
5
|
-
maxLength: number;
|
|
6
|
-
textAlign?: "left" | "center" | "right";
|
|
7
|
-
onComplete?: (...args: any[]) => unknown;
|
|
8
|
-
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
9
|
-
pasteTransformer?: (pasted: string) => string;
|
|
10
|
-
containerClassName?: string;
|
|
11
|
-
noScriptCSSFallback?: string | null;
|
|
12
|
-
} & {
|
|
13
|
-
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
14
|
-
children?: never;
|
|
15
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
16
|
-
value?: string;
|
|
17
|
-
onChange?: (newValue: string) => unknown;
|
|
18
|
-
maxLength: number;
|
|
19
|
-
textAlign?: "left" | "center" | "right";
|
|
20
|
-
onComplete?: (...args: any[]) => unknown;
|
|
21
|
-
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
22
|
-
pasteTransformer?: (pasted: string) => string;
|
|
23
|
-
containerClassName?: string;
|
|
24
|
-
noScriptCSSFallback?: string | null;
|
|
25
|
-
} & {
|
|
26
|
-
render?: never;
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
-
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
31
|
-
index: number;
|
|
32
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (newValue: string) => unknown;
|
|
5
|
+
maxLength: number;
|
|
6
|
+
textAlign?: "left" | "center" | "right";
|
|
7
|
+
onComplete?: (...args: any[]) => unknown;
|
|
8
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
9
|
+
pasteTransformer?: (pasted: string) => string;
|
|
10
|
+
containerClassName?: string;
|
|
11
|
+
noScriptCSSFallback?: string | null;
|
|
12
|
+
} & {
|
|
13
|
+
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
14
|
+
children?: never;
|
|
15
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
16
|
+
value?: string;
|
|
17
|
+
onChange?: (newValue: string) => unknown;
|
|
18
|
+
maxLength: number;
|
|
19
|
+
textAlign?: "left" | "center" | "right";
|
|
20
|
+
onComplete?: (...args: any[]) => unknown;
|
|
21
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
22
|
+
pasteTransformer?: (pasted: string) => string;
|
|
23
|
+
containerClassName?: string;
|
|
24
|
+
noScriptCSSFallback?: string | null;
|
|
25
|
+
} & {
|
|
26
|
+
render?: never;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
31
|
+
index: number;
|
|
32
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
35
35
|
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { OTPInput, OTPInputContext } from "input-otp";
|
|
4
|
-
import { Minus } from "lucide-react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
const InputOTP = React.forwardRef(({ className, containerClassName, ...props }, ref) => (_jsx(OTPInput, { ref: ref, containerClassName: cn("flex items-center gap-2 has-[:disabled]:opacity-50", containerClassName), className: cn("disabled:cursor-not-allowed", className), ...props })));
|
|
7
|
-
InputOTP.displayName = "InputOTP";
|
|
8
|
-
const InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center", className), ...props })));
|
|
9
|
-
InputOTPGroup.displayName = "InputOTPGroup";
|
|
10
|
-
const InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
11
|
-
const inputOTPContext = React.useContext(OTPInputContext);
|
|
12
|
-
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
13
|
-
return (_jsxs("div", { ref: ref, className: cn("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md", isActive && "z-10 ring-1 ring-ring", className), ...props, children: [char, hasFakeCaret && (_jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: _jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) }))] }));
|
|
14
|
-
});
|
|
15
|
-
InputOTPSlot.displayName = "InputOTPSlot";
|
|
16
|
-
const InputOTPSeparator = React.forwardRef(({ ...props }, ref) => (_jsx("div", { ref: ref, role: "separator", ...props, children: _jsx(Minus, {}) })));
|
|
17
|
-
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
18
|
-
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
4
|
+
import { Minus } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
const InputOTP = React.forwardRef(({ className, containerClassName, ...props }, ref) => (_jsx(OTPInput, { ref: ref, containerClassName: cn("flex items-center gap-2 has-[:disabled]:opacity-50", containerClassName), className: cn("disabled:cursor-not-allowed", className), ...props })));
|
|
7
|
+
InputOTP.displayName = "InputOTP";
|
|
8
|
+
const InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center", className), ...props })));
|
|
9
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
10
|
+
const InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
11
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
12
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
13
|
+
return (_jsxs("div", { ref: ref, className: cn("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md", isActive && "z-10 ring-1 ring-ring", className), ...props, children: [char, hasFakeCaret && (_jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: _jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) }))] }));
|
|
14
|
+
});
|
|
15
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
16
|
+
const InputOTPSeparator = React.forwardRef(({ ...props }, ref) => (_jsx("div", { ref: ref, role: "separator", ...props, children: _jsx(Minus, {}) })));
|
|
17
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
18
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
-
export { Input };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export { Input };
|
|
4
4
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
4
|
-
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
5
|
-
return (_jsx("input", { type: type, className: cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ref: ref, ...props }));
|
|
6
|
-
});
|
|
7
|
-
Input.displayName = "Input";
|
|
8
|
-
export { Input };
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
5
|
+
return (_jsx("input", { type: type, className: cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ref: ref, ...props }));
|
|
6
|
+
});
|
|
7
|
+
Input.displayName = "Input";
|
|
8
|
+
export { Input };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
-
export { Label };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
6
6
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
8
|
-
const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn(labelVariants(), className), ...props })));
|
|
9
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
10
|
-
export { Label };
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
|
+
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
8
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn(labelVariants(), className), ...props })));
|
|
9
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
10
|
+
export { Label };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
3
|
-
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
-
inset?: boolean;
|
|
12
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
-
inset?: boolean;
|
|
17
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const MenubarShortcut: {
|
|
25
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
displayname: string;
|
|
27
|
-
};
|
|
28
|
-
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
3
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const MenubarShortcut: {
|
|
25
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayname: string;
|
|
27
|
+
};
|
|
28
|
+
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
29
29
|
//# sourceMappingURL=menubar.d.ts.map
|