@lssm/lib.ui-kit 1.7.4 → 1.9.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/README.md +82 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +27 -16
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -1
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -2
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.js +4 -4
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +11 -11
- package/dist/ui/alert-dialog.js +9 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -3
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +3 -3
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +1 -1
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +6 -6
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/collapsible.d.ts +8 -8
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/dialog.d.ts +10 -10
- package/dist/ui/dialog.js +7 -7
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +9 -9
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +6 -6
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/fab.d.ts +3 -3
- package/dist/ui/fab.d.ts.map +1 -1
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +10 -11
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +5 -6
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/link.d.ts +2 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +1 -1
- package/dist/ui/loading-button.js.map +1 -1
- package/dist/ui/loading-overlay.d.ts +2 -2
- package/dist/ui/loading-overlay.d.ts.map +1 -1
- package/dist/ui/loading-screen.d.ts +2 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +11 -11
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts +12 -12
- package/dist/ui/navigation-menu.js +6 -6
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/page-header.d.ts +4 -4
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/password-strength.d.ts +2 -2
- package/dist/ui/popover.d.ts +6 -6
- package/dist/ui/popover.js +1 -1
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.js +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +2 -2
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/select.d.ts +13 -13
- package/dist/ui/select.js +7 -7
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.js +1 -1
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/stack.d.ts +4 -4
- package/dist/ui/stack.js +3 -3
- package/dist/ui/stack.js.map +1 -1
- package/dist/ui/stepper.d.ts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +8 -8
- package/dist/ui/table.js +7 -7
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +11 -11
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +1 -1
- package/dist/ui/text.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +3 -3
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +6 -6
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts +6 -6
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +11 -11
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/useColorScheme.d.ts +2 -2
- package/dist/ui/useColorScheme.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/ui/menubar.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native7 from "react-native";
|
|
3
3
|
import { TextProps, View } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
5
|
import * as MenubarPrimitive from "@rn-primitives/menubar";
|
|
6
6
|
|
|
7
7
|
//#region ui/menubar.d.ts
|
|
8
|
-
declare const MenubarMenu: React$1.ForwardRefExoticComponent<
|
|
8
|
+
declare const MenubarMenu: React$1.ForwardRefExoticComponent<react_native7.ViewProps & {
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
} & {
|
|
11
11
|
value: string | undefined;
|
|
12
12
|
} & React$1.RefAttributes<View>>;
|
|
13
|
-
declare const MenubarGroup: React$1.ForwardRefExoticComponent<
|
|
13
|
+
declare const MenubarGroup: React$1.ForwardRefExoticComponent<react_native7.ViewProps & {
|
|
14
14
|
asChild?: boolean;
|
|
15
15
|
} & React$1.RefAttributes<View>>;
|
|
16
16
|
declare const MenubarPortal: typeof MenubarPrimitive.Portal;
|
|
17
|
-
declare const MenubarSub: React$1.ForwardRefExoticComponent<
|
|
17
|
+
declare const MenubarSub: React$1.ForwardRefExoticComponent<react_native7.ViewProps & {
|
|
18
18
|
asChild?: boolean;
|
|
19
19
|
} & {
|
|
20
20
|
defaultOpen?: boolean;
|
|
21
21
|
open?: boolean;
|
|
22
22
|
onOpenChange?: (value: boolean) => void;
|
|
23
23
|
} & React$1.RefAttributes<View>>;
|
|
24
|
-
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<
|
|
24
|
+
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<react_native7.ViewProps & {
|
|
25
25
|
asChild?: boolean;
|
|
26
26
|
} & {
|
|
27
27
|
value: string | undefined;
|
|
@@ -32,13 +32,13 @@ declare function Menubar({
|
|
|
32
32
|
...props
|
|
33
33
|
}: MenubarPrimitive.RootProps & {
|
|
34
34
|
ref?: React$1.RefObject<MenubarPrimitive.RootRef>;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
36
36
|
declare function MenubarTrigger({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
39
|
}: MenubarPrimitive.TriggerProps & {
|
|
40
40
|
ref?: React$1.RefObject<MenubarPrimitive.TriggerRef>;
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
42
42
|
declare function MenubarSubTrigger({
|
|
43
43
|
className,
|
|
44
44
|
inset,
|
|
@@ -49,13 +49,13 @@ declare function MenubarSubTrigger({
|
|
|
49
49
|
className?: string;
|
|
50
50
|
inset?: boolean;
|
|
51
51
|
children?: React$1.ReactNode;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
53
53
|
declare function MenubarSubContent({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
56
|
}: MenubarPrimitive.SubContentProps & {
|
|
57
57
|
ref?: React$1.RefObject<MenubarPrimitive.SubContentRef>;
|
|
58
|
-
}):
|
|
58
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
59
59
|
declare function MenubarContent({
|
|
60
60
|
className,
|
|
61
61
|
portalHost,
|
|
@@ -64,7 +64,7 @@ declare function MenubarContent({
|
|
|
64
64
|
ref?: React$1.RefObject<MenubarPrimitive.ContentRef>;
|
|
65
65
|
className?: string;
|
|
66
66
|
portalHost?: string;
|
|
67
|
-
}):
|
|
67
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
68
68
|
declare function MenubarItem({
|
|
69
69
|
className,
|
|
70
70
|
inset,
|
|
@@ -73,7 +73,7 @@ declare function MenubarItem({
|
|
|
73
73
|
ref?: React$1.RefObject<MenubarPrimitive.ItemRef>;
|
|
74
74
|
className?: string;
|
|
75
75
|
inset?: boolean;
|
|
76
|
-
}):
|
|
76
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
77
77
|
declare function MenubarCheckboxItem({
|
|
78
78
|
className,
|
|
79
79
|
children,
|
|
@@ -82,7 +82,7 @@ declare function MenubarCheckboxItem({
|
|
|
82
82
|
}: MenubarPrimitive.CheckboxItemProps & {
|
|
83
83
|
ref?: React$1.RefObject<MenubarPrimitive.CheckboxItemRef>;
|
|
84
84
|
children?: React$1.ReactNode;
|
|
85
|
-
}):
|
|
85
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
86
86
|
declare function MenubarRadioItem({
|
|
87
87
|
className,
|
|
88
88
|
children,
|
|
@@ -90,7 +90,7 @@ declare function MenubarRadioItem({
|
|
|
90
90
|
}: MenubarPrimitive.RadioItemProps & {
|
|
91
91
|
ref?: React$1.RefObject<MenubarPrimitive.RadioItemRef>;
|
|
92
92
|
children?: React$1.ReactNode;
|
|
93
|
-
}):
|
|
93
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
94
94
|
declare function MenubarLabel({
|
|
95
95
|
className,
|
|
96
96
|
inset,
|
|
@@ -99,17 +99,17 @@ declare function MenubarLabel({
|
|
|
99
99
|
ref?: React$1.RefObject<MenubarPrimitive.LabelRef>;
|
|
100
100
|
className?: string;
|
|
101
101
|
inset?: boolean;
|
|
102
|
-
}):
|
|
102
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
103
103
|
declare function MenubarSeparator({
|
|
104
104
|
className,
|
|
105
105
|
...props
|
|
106
106
|
}: MenubarPrimitive.SeparatorProps & {
|
|
107
107
|
ref?: React$1.RefObject<MenubarPrimitive.SeparatorRef>;
|
|
108
|
-
}):
|
|
108
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
109
109
|
declare function MenubarShortcut({
|
|
110
110
|
className,
|
|
111
111
|
...props
|
|
112
|
-
}: TextProps):
|
|
112
|
+
}: TextProps): react_jsx_runtime49.JSX.Element;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
115
115
|
//# sourceMappingURL=menubar.d.ts.map
|
package/dist/ui/menubar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../ui/menubar.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAUM,aAAW,OAAA,CAAA,0BAAwB,
|
|
1
|
+
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../ui/menubar.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAUM,aAAW,OAAA,CAAA,0BAAwB,aAAA,CAAxB,SAAA;;;;AARmD,CAAA,wBAQ3B,KAAA,CAAA,CAAA;cAEnC,YAFW,EAEC,OAAA,CAAA,yBAFD,CAE0B,aAAA,CAAzB,SAAA,GAFD;;;cAIX,aAJW,EAAA,OAIE,gBAAA,CAAA,MAJF;cAMX,UANW,EAMD,OAAA,CAAA,yBANC,CAMsB,aAAA,CAAvB,SAAA,GANC;EAEX,OAAA,CAAA,EAAA,OAAqC;CAAA,GAAA;;;EAAzB,YAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,KAAA,CAAA,CAAA;AAAA,cAMZ,iBAJuC,EAItB,OAAA,CAAA,yBAJsB,CAIQ,aAAA,CAA9B,SAAA,GAJsB;EAEvC,OAAA,CAAA,EAAA,OAAiC;CAAA,GAAA;;;CAAvB,wBAAA,KAAA,CAAA,CAAA;iBAIP,OAAA,CAJO;EAAA,SAAA;EAAA,GAAA;CAAA,EAOb,gBAAA,CAAiB,SAPJ,GAAA;EAEV,GAAA,CAAA,EAME,OAAA,CAAM,SANuC,CAM7B,gBAAA,CAAiB,OANY,CAAA;CAAA,CAAA,EAOpD,mBAAA,CAAA,GAAA,CAAA,OAPsB;iBAmBd,cAAA;;;GAGN,gBAAA,CAAiB;QACZ,OAAA,CAAM,UAAU,gBAAA,CAAiB;CAvBlB,CAAA,EAwBtB,mBAAA,CAAA,GAAA,CAAA,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enubarPrimitive.Group;
|
|
|
15
15
|
const MenubarPortal = MenubarPrimitive.Portal;
|
|
16
16
|
const MenubarSub = MenubarPrimitive.Sub;
|
|
17
17
|
const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
18
|
-
function Menubar({ className
|
|
18
|
+
function Menubar({ className, ...props }) {
|
|
19
19
|
return /* @__PURE__ */ jsx(MenubarPrimitive.Root, {
|
|
20
20
|
className: cn("native:h-12 border-border bg-background flex h-10 flex-row items-center gap-x-1 rounded-md border p-1", className),
|
|
21
21
|
...props
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
function MenubarTrigger({ className
|
|
24
|
+
function MenubarTrigger({ className, ...props }) {
|
|
25
25
|
const { value } = MenubarPrimitive.useRootContext();
|
|
26
26
|
const { value: itemValue } = MenubarPrimitive.useMenuContext();
|
|
27
27
|
return /* @__PURE__ */ jsx(MenubarPrimitive.Trigger, {
|
|
@@ -29,7 +29,7 @@ function MenubarTrigger({ className,...props }) {
|
|
|
29
29
|
...props
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function MenubarSubTrigger({ className, inset, children
|
|
32
|
+
function MenubarSubTrigger({ className, inset, children, ...props }) {
|
|
33
33
|
const { open } = MenubarPrimitive.useSubContext();
|
|
34
34
|
const Icon = Platform.OS === "web" ? ChevronRight : open ? ChevronUp : ChevronDown;
|
|
35
35
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
@@ -44,14 +44,14 @@ function MenubarSubTrigger({ className, inset, children,...props }) {
|
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function MenubarSubContent({ className
|
|
47
|
+
function MenubarSubContent({ className, ...props }) {
|
|
48
48
|
const { open } = MenubarPrimitive.useSubContext();
|
|
49
49
|
return /* @__PURE__ */ jsx(MenubarPrimitive.SubContent, {
|
|
50
50
|
className: cn("border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md", open ? "web:animate-in web:fade-in-0 web:zoom-in-95" : "web:animate-out web:fade-out-0 web:zoom-out", className),
|
|
51
51
|
...props
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function MenubarContent({ className, portalHost
|
|
54
|
+
function MenubarContent({ className, portalHost, ...props }) {
|
|
55
55
|
const { value } = MenubarPrimitive.useRootContext();
|
|
56
56
|
const { value: itemValue } = MenubarPrimitive.useMenuContext();
|
|
57
57
|
return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, {
|
|
@@ -62,7 +62,7 @@ function MenubarContent({ className, portalHost,...props }) {
|
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function MenubarItem({ className, inset
|
|
65
|
+
function MenubarItem({ className, inset, ...props }) {
|
|
66
66
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
67
67
|
value: "select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground",
|
|
68
68
|
children: /* @__PURE__ */ jsx(MenubarPrimitive.Item, {
|
|
@@ -71,7 +71,7 @@ function MenubarItem({ className, inset,...props }) {
|
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function MenubarCheckboxItem({ className, children, checked
|
|
74
|
+
function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
75
75
|
return /* @__PURE__ */ jsxs(MenubarPrimitive.CheckboxItem, {
|
|
76
76
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
77
77
|
checked,
|
|
@@ -86,7 +86,7 @@ function MenubarCheckboxItem({ className, children, checked,...props }) {
|
|
|
86
86
|
}), children]
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function MenubarRadioItem({ className, children
|
|
89
|
+
function MenubarRadioItem({ className, children, ...props }) {
|
|
90
90
|
return /* @__PURE__ */ jsxs(MenubarPrimitive.RadioItem, {
|
|
91
91
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
92
92
|
...props,
|
|
@@ -96,19 +96,19 @@ function MenubarRadioItem({ className, children,...props }) {
|
|
|
96
96
|
}), children]
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function MenubarLabel({ className, inset
|
|
99
|
+
function MenubarLabel({ className, inset, ...props }) {
|
|
100
100
|
return /* @__PURE__ */ jsx(MenubarPrimitive.Label, {
|
|
101
101
|
className: cn("native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
102
102
|
...props
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
function MenubarSeparator({ className
|
|
105
|
+
function MenubarSeparator({ className, ...props }) {
|
|
106
106
|
return /* @__PURE__ */ jsx(MenubarPrimitive.Separator, {
|
|
107
107
|
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
108
108
|
...props
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function MenubarShortcut({ className
|
|
111
|
+
function MenubarShortcut({ className, ...props }) {
|
|
112
112
|
return /* @__PURE__ */ jsx(Text, {
|
|
113
113
|
className: cn("native:text-sm text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
114
114
|
...props
|
package/dist/ui/menubar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","names":[],"sources":["../../ui/menubar.tsx"],"sourcesContent":["import * as MenubarPrimitive from '@rn-primitives/menubar';\nimport * as React from 'react';\nimport { Platform, Text, type TextProps, View } from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst MenubarMenu = MenubarPrimitive.Menu;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nfunction Menubar({\n className,\n ...props\n}: MenubarPrimitive.RootProps & {\n ref?: React.RefObject<MenubarPrimitive.RootRef>;\n}) {\n return (\n <MenubarPrimitive.Root\n className={cn(\n 'native:h-12 border-border bg-background flex h-10 flex-row items-center gap-x-1 rounded-md border p-1',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: MenubarPrimitive.TriggerProps & {\n ref?: React.RefObject<MenubarPrimitive.TriggerRef>;\n}) {\n const { value } = MenubarPrimitive.useRootContext();\n const { value: itemValue } = MenubarPrimitive.useMenuContext();\n\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'native:h-10 native:px-5 native:py-0 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:focus:bg-accent web:focus:text-accent-foreground flex flex-row items-center rounded-xs px-3 py-1.5 text-sm font-medium',\n value === itemValue && 'bg-accent text-accent-foreground',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n children,\n ...props\n}: MenubarPrimitive.SubTriggerProps & {\n ref?: React.RefObject<MenubarPrimitive.SubTriggerRef>;\n className?: string;\n inset?: boolean;\n children?: React.ReactNode;\n}) {\n const { open } = MenubarPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </MenubarPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: MenubarPrimitive.SubContentProps & {\n ref?: React.RefObject<MenubarPrimitive.SubContentRef>;\n}) {\n const { open } = MenubarPrimitive.useSubContext();\n return (\n <MenubarPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarContent({\n className,\n portalHost,\n ...props\n}: MenubarPrimitive.ContentProps & {\n ref?: React.RefObject<MenubarPrimitive.ContentRef>;\n className?: string;\n portalHost?: string;\n}) {\n const { value } = MenubarPrimitive.useRootContext();\n const { value: itemValue } = MenubarPrimitive.useMenuContext();\n return (\n <MenubarPrimitive.Portal hostName={portalHost}>\n <MenubarPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n value === itemValue\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\nfunction MenubarItem({\n className,\n inset,\n ...props\n}: MenubarPrimitive.ItemProps & {\n ref?: React.RefObject<MenubarPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <MenubarPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: MenubarPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<MenubarPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <MenubarPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </MenubarPrimitive.ItemIndicator>\n </View>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n ...props\n}: MenubarPrimitive.RadioItemProps & {\n ref?: React.RefObject<MenubarPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </MenubarPrimitive.ItemIndicator>\n </View>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: MenubarPrimitive.LabelProps & {\n ref?: React.RefObject<MenubarPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: MenubarPrimitive.SeparatorProps & {\n ref?: React.RefObject<MenubarPrimitive.SeparatorRef>;\n}) {\n return (\n <MenubarPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction MenubarShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAUA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,SAAS,QAAQ,EACf,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,yGACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,UACA,GAAG,SAGF;CACD,MAAM,EAAE,UAAU,iBAAiB,gBAAgB;CACnD,MAAM,EAAE,OAAO,cAAc,iBAAiB,gBAAgB;AAE9D,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,y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BAAC;IAAM,MAAM;IAAI,aAAa;IAAG,WAAU;KAAoB,GAChC;IAC5B,EACN;GAC6B;;AAIpC,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SAIF;AACD,QACE,qBAAC,iBAAiB;EAChB,WAAW,GACT,oKACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,iBAAiB,2BAChB,oBAAC,QAAK,WAAU,uCAAuC,GACxB;IAC5B,EACN;GAC0B;;AAIjC,SAAS,aAAa,EACpB,WACA,MACA,GAAG,SAKF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,yFACA,SAAS,QACT,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,UAAW,GAAG,SAAoB;AAC3D,QACE,oBAAC;EACC,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
|
|
1
|
+
{"version":3,"file":"menubar.js","names":[],"sources":["../../ui/menubar.tsx"],"sourcesContent":["import * as MenubarPrimitive from '@rn-primitives/menubar';\nimport * as React from 'react';\nimport { Platform, Text, type TextProps, View } from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst MenubarMenu = MenubarPrimitive.Menu;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nfunction Menubar({\n className,\n ...props\n}: MenubarPrimitive.RootProps & {\n ref?: React.RefObject<MenubarPrimitive.RootRef>;\n}) {\n return (\n <MenubarPrimitive.Root\n className={cn(\n 'native:h-12 border-border bg-background flex h-10 flex-row items-center gap-x-1 rounded-md border p-1',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: MenubarPrimitive.TriggerProps & {\n ref?: React.RefObject<MenubarPrimitive.TriggerRef>;\n}) {\n const { value } = MenubarPrimitive.useRootContext();\n const { value: itemValue } = MenubarPrimitive.useMenuContext();\n\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'native:h-10 native:px-5 native:py-0 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:focus:bg-accent web:focus:text-accent-foreground flex flex-row items-center rounded-xs px-3 py-1.5 text-sm font-medium',\n value === itemValue && 'bg-accent text-accent-foreground',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n children,\n ...props\n}: MenubarPrimitive.SubTriggerProps & {\n ref?: React.RefObject<MenubarPrimitive.SubTriggerRef>;\n className?: string;\n inset?: boolean;\n children?: React.ReactNode;\n}) {\n const { open } = MenubarPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </MenubarPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: MenubarPrimitive.SubContentProps & {\n ref?: React.RefObject<MenubarPrimitive.SubContentRef>;\n}) {\n const { open } = MenubarPrimitive.useSubContext();\n return (\n <MenubarPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarContent({\n className,\n portalHost,\n ...props\n}: MenubarPrimitive.ContentProps & {\n ref?: React.RefObject<MenubarPrimitive.ContentRef>;\n className?: string;\n portalHost?: string;\n}) {\n const { value } = MenubarPrimitive.useRootContext();\n const { value: itemValue } = MenubarPrimitive.useMenuContext();\n return (\n <MenubarPrimitive.Portal hostName={portalHost}>\n <MenubarPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n value === itemValue\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\nfunction MenubarItem({\n className,\n inset,\n ...props\n}: MenubarPrimitive.ItemProps & {\n ref?: React.RefObject<MenubarPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <MenubarPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: MenubarPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<MenubarPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <MenubarPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </MenubarPrimitive.ItemIndicator>\n </View>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n ...props\n}: MenubarPrimitive.RadioItemProps & {\n ref?: React.RefObject<MenubarPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </MenubarPrimitive.ItemIndicator>\n </View>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: MenubarPrimitive.LabelProps & {\n ref?: React.RefObject<MenubarPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: MenubarPrimitive.SeparatorProps & {\n ref?: React.RefObject<MenubarPrimitive.SeparatorRef>;\n}) {\n return (\n <MenubarPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction MenubarShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAUA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,SAAS,QAAQ,EACf,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,yGACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,GAAG,SAGF;CACD,MAAM,EAAE,UAAU,iBAAiB,gBAAgB;CACnD,MAAM,EAAE,OAAO,cAAc,iBAAiB,gBAAgB;AAE9D,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,yOACA,UAAU,aAAa,oCACvB,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,OACA,UACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,iBAAiB,eAAe;CACjD,MAAM,OACJ,SAAS,OAAO,QAAQ,eAAe,OAAO,YAAY;AAC5D,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mDACA,QAAQ,gCACT;YAED,qBAAC,iBAAiB;GAChB,WAAW,GACT,sLACA,QAAQ,aACR,SAAS,QACT,UACD;GACD,GAAI;cAEH,UACD,oBAAC;IAAK,M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AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,yFACA,SAAS,QACT,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAoB;AAC3D,QACE,oBAAC;EACC,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/molecules/SkeletonList.d.ts
|
|
4
4
|
interface Props {
|
|
@@ -10,7 +10,7 @@ declare function SkeletonList({
|
|
|
10
10
|
count,
|
|
11
11
|
className,
|
|
12
12
|
itemClassName
|
|
13
|
-
}: Props):
|
|
13
|
+
}: Props): react_jsx_runtime41.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SkeletonList };
|
|
16
16
|
//# sourceMappingURL=SkeletonList.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native11 from "react-native";
|
|
3
3
|
import { View } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
5
5
|
import * as NavigationMenuPrimitive from "@rn-primitives/navigation-menu";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region ui/navigation-menu.d.ts
|
|
9
9
|
declare function NavigationMenu({
|
|
@@ -12,19 +12,19 @@ declare function NavigationMenu({
|
|
|
12
12
|
...props
|
|
13
13
|
}: NavigationMenuPrimitive.RootProps & {
|
|
14
14
|
ref?: React$1.RefObject<NavigationMenuPrimitive.RootRef>;
|
|
15
|
-
}):
|
|
15
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
16
16
|
declare function NavigationMenuList({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
19
|
}: NavigationMenuPrimitive.ListProps & {
|
|
20
20
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ListRef>;
|
|
21
|
-
}):
|
|
22
|
-
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<
|
|
21
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
22
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<react_native11.ViewProps & {
|
|
23
23
|
asChild?: boolean;
|
|
24
24
|
} & {
|
|
25
25
|
value: string | undefined;
|
|
26
26
|
} & React$1.RefAttributes<View>>;
|
|
27
|
-
declare const navigationMenuTriggerStyle: (props?:
|
|
27
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types5.ClassProp | undefined) => string;
|
|
28
28
|
declare function NavigationMenuTrigger({
|
|
29
29
|
className,
|
|
30
30
|
children,
|
|
@@ -32,7 +32,7 @@ declare function NavigationMenuTrigger({
|
|
|
32
32
|
}: Omit<NavigationMenuPrimitive.TriggerProps, 'children'> & {
|
|
33
33
|
children?: React$1.ReactNode;
|
|
34
34
|
ref?: React$1.RefObject<NavigationMenuPrimitive.TriggerRef>;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
36
36
|
declare function NavigationMenuContent({
|
|
37
37
|
className,
|
|
38
38
|
children,
|
|
@@ -41,8 +41,8 @@ declare function NavigationMenuContent({
|
|
|
41
41
|
}: NavigationMenuPrimitive.ContentProps & {
|
|
42
42
|
portalHost?: string;
|
|
43
43
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ContentRef>;
|
|
44
|
-
}):
|
|
45
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<
|
|
44
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
45
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<react_native11.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
46
46
|
asChild?: boolean;
|
|
47
47
|
} & {
|
|
48
48
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -55,14 +55,14 @@ declare function NavigationMenuViewport({
|
|
|
55
55
|
...props
|
|
56
56
|
}: NavigationMenuPrimitive.ViewportProps & {
|
|
57
57
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ViewportRef>;
|
|
58
|
-
}):
|
|
58
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
59
59
|
declare function NavigationMenuIndicator({
|
|
60
60
|
ref,
|
|
61
61
|
className,
|
|
62
62
|
...props
|
|
63
63
|
}: NavigationMenuPrimitive.IndicatorProps & {
|
|
64
64
|
ref?: React$1.RefObject<NavigationMenuPrimitive.IndicatorRef>;
|
|
65
|
-
}):
|
|
65
|
+
}): react_jsx_runtime60.JSX.Element;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
68
68
|
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -8,14 +8,14 @@ import { cva } from "class-variance-authority";
|
|
|
8
8
|
import * as NavigationMenuPrimitive from "@rn-primitives/navigation-menu";
|
|
9
9
|
|
|
10
10
|
//#region ui/navigation-menu.tsx
|
|
11
|
-
function NavigationMenu({ className, children
|
|
11
|
+
function NavigationMenu({ className, children, ...props }) {
|
|
12
12
|
return /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Root, {
|
|
13
13
|
className: cn("relative z-10 flex max-w-max flex-row items-center justify-center", className),
|
|
14
14
|
...props,
|
|
15
15
|
children: [children, Platform.OS === "web" && /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function NavigationMenuList({ className
|
|
18
|
+
function NavigationMenuList({ className, ...props }) {
|
|
19
19
|
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.List, {
|
|
20
20
|
className: cn("web:group web:list-none flex flex-1 flex-row items-center justify-center gap-1", className),
|
|
21
21
|
...props
|
|
@@ -23,7 +23,7 @@ function NavigationMenuList({ className,...props }) {
|
|
|
23
23
|
}
|
|
24
24
|
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
25
25
|
const navigationMenuTriggerStyle = cva("web:group web:inline-flex flex-row h-10 native:h-12 native:px-3 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium web:transition-colors web:hover:bg-accent active:bg-accent web:hover:text-accent-foreground web:focus:bg-accent web:focus:text-accent-foreground web:focus:outline-hidden web:disabled:pointer-events-none disabled:opacity-50 web:data-active:bg-accent/50 web:data-[state=open]:bg-accent/50");
|
|
26
|
-
function NavigationMenuTrigger({ className, children
|
|
26
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
27
27
|
const { value } = NavigationMenuPrimitive.useRootContext();
|
|
28
28
|
const { value: itemValue } = NavigationMenuPrimitive.useItemContext();
|
|
29
29
|
const progress = useDerivedValue(() => value === itemValue ? withTiming(1, { duration: 250 }) : withTiming(0, { duration: 200 }));
|
|
@@ -44,7 +44,7 @@ function NavigationMenuTrigger({ className, children,...props }) {
|
|
|
44
44
|
})]
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function NavigationMenuContent({ className, children, portalHost
|
|
47
|
+
function NavigationMenuContent({ className, children, portalHost, ...props }) {
|
|
48
48
|
const { value } = NavigationMenuPrimitive.useRootContext();
|
|
49
49
|
const { value: itemValue } = NavigationMenuPrimitive.useItemContext();
|
|
50
50
|
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Portal, {
|
|
@@ -61,7 +61,7 @@ function NavigationMenuContent({ className, children, portalHost,...props }) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
64
|
-
function NavigationMenuViewport({ className
|
|
64
|
+
function NavigationMenuViewport({ className, ...props }) {
|
|
65
65
|
return /* @__PURE__ */ jsx(View, {
|
|
66
66
|
className: cn("absolute top-full left-0 flex justify-center"),
|
|
67
67
|
children: /* @__PURE__ */ jsx(View, {
|
|
@@ -71,7 +71,7 @@ function NavigationMenuViewport({ className,...props }) {
|
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function NavigationMenuIndicator({ ref, className
|
|
74
|
+
function NavigationMenuIndicator({ ref, className, ...props }) {
|
|
75
75
|
const { value } = NavigationMenuPrimitive.useRootContext();
|
|
76
76
|
const { value: itemValue } = NavigationMenuPrimitive.useItemContext();
|
|
77
77
|
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Indicator, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","names":[],"sources":["../../ui/navigation-menu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@rn-primitives/navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport * as React from 'react';\nimport { Platform, View } from 'react-native';\nimport Animated, {\n Extrapolation,\n FadeInLeft,\n FadeOutLeft,\n interpolate,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { cn } from './utils';\n\nfunction NavigationMenu({\n className,\n children,\n ...props\n}: NavigationMenuPrimitive.RootProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.RootRef>;\n}) {\n return (\n <NavigationMenuPrimitive.Root\n className={cn(\n 'relative z-10 flex max-w-max flex-row items-center justify-center',\n className\n )}\n {...props}\n >\n {children}\n {Platform.OS === 'web' && <NavigationMenuViewport />}\n </NavigationMenuPrimitive.Root>\n );\n}\n\nfunction NavigationMenuList({\n className,\n ...props\n}: NavigationMenuPrimitive.ListProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.ListRef>;\n}) {\n return (\n <NavigationMenuPrimitive.List\n className={cn(\n 'web:group web:list-none flex flex-1 flex-row items-center justify-center gap-1',\n className\n )}\n {...props}\n />\n );\n}\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'web:group web:inline-flex flex-row h-10 native:h-12 native:px-3 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium web:transition-colors web:hover:bg-accent active:bg-accent web:hover:text-accent-foreground web:focus:bg-accent web:focus:text-accent-foreground web:focus:outline-hidden web:disabled:pointer-events-none disabled:opacity-50 web:data-active:bg-accent/50 web:data-[state=open]:bg-accent/50'\n);\n\nfunction NavigationMenuTrigger({\n className,\n children,\n ...props\n}: Omit<NavigationMenuPrimitive.TriggerProps, 'children'> & {\n children?: React.ReactNode;\n ref?: React.RefObject<NavigationMenuPrimitive.TriggerRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n\n const progress = useDerivedValue(() =>\n value === itemValue\n ? withTiming(1, { duration: 250 })\n : withTiming(0, { duration: 200 })\n );\n const chevronStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${progress.value * 180}deg` }],\n opacity: interpolate(progress.value, [0, 1], [1, 0.8], Extrapolation.CLAMP),\n }));\n\n return (\n <NavigationMenuPrimitive.Trigger\n className={cn(\n navigationMenuTriggerStyle(),\n 'web:group gap-1.5',\n value === itemValue && 'bg-accent',\n className\n )}\n {...props}\n >\n {children}\n <Animated.View style={chevronStyle}>\n <ChevronDown\n size={12}\n className={cn(\n 'text-foreground web:transition web:duration-200 relative h-3 w-3'\n )}\n aria-hidden={true}\n />\n </Animated.View>\n </NavigationMenuPrimitive.Trigger>\n );\n}\n\nfunction NavigationMenuContent({\n className,\n children,\n portalHost,\n ...props\n}: NavigationMenuPrimitive.ContentProps & {\n portalHost?: string;\n ref?: React.RefObject<NavigationMenuPrimitive.ContentRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n return (\n <NavigationMenuPrimitive.Portal hostName={portalHost}>\n <NavigationMenuPrimitive.Content\n className={cn(\n 'native:border native:border-border native:rounded-lg native:shadow-lg native:bg-popover native:text-popover-foreground native:overflow-hidden w-full',\n value === itemValue\n ? 'web:animate-in web:fade-in web:slide-in-from-right-20'\n : 'web:animate-out web:fade-out web:slide-out-to-left-20',\n className\n )}\n {...props}\n >\n <Animated.View\n entering={Platform.OS !== 'web' ? FadeInLeft : undefined}\n exiting={Platform.OS !== 'web' ? FadeOutLeft : undefined}\n >\n {children}\n </Animated.View>\n </NavigationMenuPrimitive.Content>\n </NavigationMenuPrimitive.Portal>\n );\n}\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nfunction NavigationMenuViewport({\n className,\n ...props\n}: NavigationMenuPrimitive.ViewportProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.ViewportRef>;\n}) {\n return (\n <View className={cn('absolute top-full left-0 flex justify-center')}>\n <View\n className={cn(\n 'web:origin-top-center border-border bg-popover text-popover-foreground web:h-(--radix-navigation-menu-viewport-height) web:animate-in web:zoom-in-90 relative mt-1.5 w-full overflow-hidden rounded-md border shadow-lg',\n className\n )}\n {...props}\n >\n <NavigationMenuPrimitive.Viewport />\n </View>\n </View>\n );\n}\n\nfunction NavigationMenuIndicator({\n ref,\n className,\n ...props\n}: NavigationMenuPrimitive.IndicatorProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.IndicatorRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n\n return (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-1 flex h-1.5 items-end justify-center overflow-hidden',\n value === itemValue\n ? 'web:animate-in web:fade-in'\n : 'web:animate-out web:fade-out',\n className\n )}\n {...props}\n >\n <View className=\"bg-border shadow-foreground/5 relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n );\n}\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n"],"mappings":";;;;;;;;;;AAgBA,SAAS,eAAe,EACtB,WACA,
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","names":[],"sources":["../../ui/navigation-menu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@rn-primitives/navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport * as React from 'react';\nimport { Platform, View } from 'react-native';\nimport Animated, {\n Extrapolation,\n FadeInLeft,\n FadeOutLeft,\n interpolate,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { cn } from './utils';\n\nfunction NavigationMenu({\n className,\n children,\n ...props\n}: NavigationMenuPrimitive.RootProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.RootRef>;\n}) {\n return (\n <NavigationMenuPrimitive.Root\n className={cn(\n 'relative z-10 flex max-w-max flex-row items-center justify-center',\n className\n )}\n {...props}\n >\n {children}\n {Platform.OS === 'web' && <NavigationMenuViewport />}\n </NavigationMenuPrimitive.Root>\n );\n}\n\nfunction NavigationMenuList({\n className,\n ...props\n}: NavigationMenuPrimitive.ListProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.ListRef>;\n}) {\n return (\n <NavigationMenuPrimitive.List\n className={cn(\n 'web:group web:list-none flex flex-1 flex-row items-center justify-center gap-1',\n className\n )}\n {...props}\n />\n );\n}\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'web:group web:inline-flex flex-row h-10 native:h-12 native:px-3 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium web:transition-colors web:hover:bg-accent active:bg-accent web:hover:text-accent-foreground web:focus:bg-accent web:focus:text-accent-foreground web:focus:outline-hidden web:disabled:pointer-events-none disabled:opacity-50 web:data-active:bg-accent/50 web:data-[state=open]:bg-accent/50'\n);\n\nfunction NavigationMenuTrigger({\n className,\n children,\n ...props\n}: Omit<NavigationMenuPrimitive.TriggerProps, 'children'> & {\n children?: React.ReactNode;\n ref?: React.RefObject<NavigationMenuPrimitive.TriggerRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n\n const progress = useDerivedValue(() =>\n value === itemValue\n ? withTiming(1, { duration: 250 })\n : withTiming(0, { duration: 200 })\n );\n const chevronStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${progress.value * 180}deg` }],\n opacity: interpolate(progress.value, [0, 1], [1, 0.8], Extrapolation.CLAMP),\n }));\n\n return (\n <NavigationMenuPrimitive.Trigger\n className={cn(\n navigationMenuTriggerStyle(),\n 'web:group gap-1.5',\n value === itemValue && 'bg-accent',\n className\n )}\n {...props}\n >\n {children}\n <Animated.View style={chevronStyle}>\n <ChevronDown\n size={12}\n className={cn(\n 'text-foreground web:transition web:duration-200 relative h-3 w-3'\n )}\n aria-hidden={true}\n />\n </Animated.View>\n </NavigationMenuPrimitive.Trigger>\n );\n}\n\nfunction NavigationMenuContent({\n className,\n children,\n portalHost,\n ...props\n}: NavigationMenuPrimitive.ContentProps & {\n portalHost?: string;\n ref?: React.RefObject<NavigationMenuPrimitive.ContentRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n return (\n <NavigationMenuPrimitive.Portal hostName={portalHost}>\n <NavigationMenuPrimitive.Content\n className={cn(\n 'native:border native:border-border native:rounded-lg native:shadow-lg native:bg-popover native:text-popover-foreground native:overflow-hidden w-full',\n value === itemValue\n ? 'web:animate-in web:fade-in web:slide-in-from-right-20'\n : 'web:animate-out web:fade-out web:slide-out-to-left-20',\n className\n )}\n {...props}\n >\n <Animated.View\n entering={Platform.OS !== 'web' ? FadeInLeft : undefined}\n exiting={Platform.OS !== 'web' ? FadeOutLeft : undefined}\n >\n {children}\n </Animated.View>\n </NavigationMenuPrimitive.Content>\n </NavigationMenuPrimitive.Portal>\n );\n}\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nfunction NavigationMenuViewport({\n className,\n ...props\n}: NavigationMenuPrimitive.ViewportProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.ViewportRef>;\n}) {\n return (\n <View className={cn('absolute top-full left-0 flex justify-center')}>\n <View\n className={cn(\n 'web:origin-top-center border-border bg-popover text-popover-foreground web:h-(--radix-navigation-menu-viewport-height) web:animate-in web:zoom-in-90 relative mt-1.5 w-full overflow-hidden rounded-md border shadow-lg',\n className\n )}\n {...props}\n >\n <NavigationMenuPrimitive.Viewport />\n </View>\n </View>\n );\n}\n\nfunction NavigationMenuIndicator({\n ref,\n className,\n ...props\n}: NavigationMenuPrimitive.IndicatorProps & {\n ref?: React.RefObject<NavigationMenuPrimitive.IndicatorRef>;\n}) {\n const { value } = NavigationMenuPrimitive.useRootContext();\n const { value: itemValue } = NavigationMenuPrimitive.useItemContext();\n\n return (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-1 flex h-1.5 items-end justify-center overflow-hidden',\n value === itemValue\n ? 'web:animate-in web:fade-in'\n : 'web:animate-out web:fade-out',\n className\n )}\n {...props}\n >\n <View className=\"bg-border shadow-foreground/5 relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n );\n}\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n"],"mappings":";;;;;;;;;;AAgBA,SAAS,eAAe,EACtB,WACA,UACA,GAAG,SAG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AAC,SAAS;IACR,UAAU,SAAS,OAAO,QAAQ,aAAa;IAC/C,SAAS,SAAS,OAAO,QAAQ,cAAc;IAE9C;KACa;IACgB;GACH;;AAIrC,MAAM,qBAAqB,wBAAwB;AAEnD,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EAAK,WAAW,GAAG,+CAA+C;YACjE,oBAAC;GACC,WAAW,GACT,2NACA,UACD;GACD,GAAI;aAEJ,oBAAC,wBAAwB,aAAW;IAC/B;GACF;;AAIX,SAAS,wBAAwB,EAC/B,KACA,WACA,GAAG,SAGF;CACD,MAAM,EAAE,UAAU,wBAAwB,gBAAgB;CAC1D,MAAM,EAAE,OAAO,cAAc,wBAAwB,gBAAgB;AAErE,QACE,oBAAC,wBAAwB;EAClB;EACL,WAAW,GACT,oEACA,UAAU,YACN,+BACA,gCACJ,UACD;EACD,GAAI;YAEJ,oBAAC,QAAK,WAAU,+FAA+F;GAC7E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime129 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/organisms/ErrorBoundary/ErrorBoundary.d.ts
|
|
5
5
|
interface ErrorBoundaryState {
|
|
@@ -22,7 +22,7 @@ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBou
|
|
|
22
22
|
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
23
23
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
24
24
|
resetError: () => void;
|
|
25
|
-
render(): string | number | bigint | boolean |
|
|
25
|
+
render(): string | number | bigint | boolean | react_jsx_runtime129.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
26
26
|
}
|
|
27
27
|
declare const useErrorHandler: () => (error: Error) => never;
|
|
28
28
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","names":["DefaultErrorFallback: React.FC<ErrorFallbackProps>"],"sources":["../../../../ui/organisms/ErrorBoundary/ErrorBoundary.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n// import * as Sentry from '@sentry/nextjs';\nimport { AlertTriangle, RefreshCw, Home } from 'lucide-react';\nimport { Button } from '../../button';\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error: Error | null;\n errorId: string | null;\n}\n\ninterface ErrorBoundaryProps {\n children: React.ReactNode;\n fallback?: React.ComponentType<ErrorFallbackProps>;\n onError?: (error: Error, errorInfo: React.ErrorInfo) => void;\n}\n\ninterface ErrorFallbackProps {\n error: Error;\n errorId: string | null;\n resetError: () => void;\n}\n\nconst DefaultErrorFallback: React.FC<ErrorFallbackProps> = ({\n error,\n errorId,\n resetError,\n}) => {\n const isDevelopment = process.env.NODE_ENV === 'development';\n\n return (\n <div className=\"flex min-h-screen items-center justify-center bg-gray-50 px-4\">\n <div className=\"w-full max-w-md rounded-lg bg-white p-6 text-center shadow-lg\">\n <div className=\"mb-4 flex justify-center\">\n <AlertTriangle className=\"h-12 w-12 text-red-500\" />\n </div>\n\n <h1 className=\"mb-2 text-2xl font-semibold text-gray-900\">\n Une erreur s'est produite\n </h1>\n\n <p className=\"mb-6 text-gray-600\">\n Nous nous excusons pour ce désagrément. Notre équipe a été notifiée et\n travaille à résoudre le problème.\n </p>\n\n {isDevelopment && (\n <div className=\"mb-6 rounded-md bg-red-50 p-4 text-left\">\n <p className=\"mb-2 text-base font-medium text-red-800\">\n Erreur de développement:\n </p>\n <p className=\"font-mono text-sm break-all text-red-700\">\n {error.message}\n </p>\n {errorId && (\n <p className=\"mt-2 text-sm text-red-600\">ID: {errorId}</p>\n )}\n </div>\n )}\n\n <div className=\"flex flex-col justify-center gap-3 sm:flex-row\">\n <Button onPress={resetError} className=\"flex items-center gap-2\">\n <RefreshCw className=\"h-4 w-4\" />\n Réessayer\n </Button>\n\n <Button\n onPress={() => (window.location.href = '/')}\n variant=\"secondary\"\n className=\"flex items-center gap-2\"\n >\n <Home className=\"h-4 w-4\" />\n Accueil\n </Button>\n </div>\n\n {!isDevelopment && errorId && (\n <p className=\"mt-4 text-sm text-gray-500\">Code d'erreur: {errorId}</p>\n )}\n </div>\n </div>\n );\n};\n\nexport class ErrorBoundary extends React.Component<\n ErrorBoundaryProps,\n ErrorBoundaryState\n> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = {\n hasError: false,\n error: null,\n errorId: null,\n };\n }\n\n static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {\n return {\n hasError: true,\n error,\n };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {\n // Generate unique error ID\n const errorId = `err_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;\n\n // Log to Sentry with additional context\n // Sentry.withScope((scope) => {\n // scope.setTag('errorBoundary', true);\n // scope.setContext('errorInfo', { ...errorInfo });\n // scope.setContext('errorId', { errorId });\n // Sentry.captureException(error);\n // });\n\n // Update state with error ID\n this.setState({ errorId });\n\n // Call custom error handler if provided\n this.props.onError?.(error, errorInfo);\n\n // Log to console in development\n if (process.env.NODE_ENV === 'development') {\n console.error('ErrorBoundary caught an error:', error, errorInfo);\n }\n }\n\n resetError = () => {\n this.setState({\n hasError: false,\n error: null,\n errorId: null,\n });\n };\n\n render() {\n if (this.state.hasError && this.state.error) {\n const FallbackComponent = this.props.fallback || DefaultErrorFallback;\n\n return (\n <FallbackComponent\n error={this.state.error}\n errorId={this.state.errorId}\n resetError={this.resetError}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// Hook for functional components to trigger error boundary\nexport const useErrorHandler = () => {\n return React.useCallback((error: Error) => {\n // This will be caught by the nearest error boundary\n throw error;\n }, []);\n};\n\nexport type { ErrorBoundaryProps, ErrorFallbackProps };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.js","names":["DefaultErrorFallback: React.FC<ErrorFallbackProps>"],"sources":["../../../../ui/organisms/ErrorBoundary/ErrorBoundary.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n// import * as Sentry from '@sentry/nextjs';\nimport { AlertTriangle, RefreshCw, Home } from 'lucide-react';\nimport { Button } from '../../button';\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error: Error | null;\n errorId: string | null;\n}\n\ninterface ErrorBoundaryProps {\n children: React.ReactNode;\n fallback?: React.ComponentType<ErrorFallbackProps>;\n onError?: (error: Error, errorInfo: React.ErrorInfo) => void;\n}\n\ninterface ErrorFallbackProps {\n error: Error;\n errorId: string | null;\n resetError: () => void;\n}\n\nconst DefaultErrorFallback: React.FC<ErrorFallbackProps> = ({\n error,\n errorId,\n resetError,\n}) => {\n const isDevelopment = process.env.NODE_ENV === 'development';\n\n return (\n <div className=\"flex min-h-screen items-center justify-center bg-gray-50 px-4\">\n <div className=\"w-full max-w-md rounded-lg bg-white p-6 text-center shadow-lg\">\n <div className=\"mb-4 flex justify-center\">\n <AlertTriangle className=\"h-12 w-12 text-red-500\" />\n </div>\n\n <h1 className=\"mb-2 text-2xl font-semibold text-gray-900\">\n Une erreur s'est produite\n </h1>\n\n <p className=\"mb-6 text-gray-600\">\n Nous nous excusons pour ce désagrément. Notre équipe a été notifiée et\n travaille à résoudre le problème.\n </p>\n\n {isDevelopment && (\n <div className=\"mb-6 rounded-md bg-red-50 p-4 text-left\">\n <p className=\"mb-2 text-base font-medium text-red-800\">\n Erreur de développement:\n </p>\n <p className=\"font-mono text-sm break-all text-red-700\">\n {error.message}\n </p>\n {errorId && (\n <p className=\"mt-2 text-sm text-red-600\">ID: {errorId}</p>\n )}\n </div>\n )}\n\n <div className=\"flex flex-col justify-center gap-3 sm:flex-row\">\n <Button onPress={resetError} className=\"flex items-center gap-2\">\n <RefreshCw className=\"h-4 w-4\" />\n Réessayer\n </Button>\n\n <Button\n onPress={() => (window.location.href = '/')}\n variant=\"secondary\"\n className=\"flex items-center gap-2\"\n >\n <Home className=\"h-4 w-4\" />\n Accueil\n </Button>\n </div>\n\n {!isDevelopment && errorId && (\n <p className=\"mt-4 text-sm text-gray-500\">Code d'erreur: {errorId}</p>\n )}\n </div>\n </div>\n );\n};\n\nexport class ErrorBoundary extends React.Component<\n ErrorBoundaryProps,\n ErrorBoundaryState\n> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = {\n hasError: false,\n error: null,\n errorId: null,\n };\n }\n\n static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {\n return {\n hasError: true,\n error,\n };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {\n // Generate unique error ID\n const errorId = `err_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;\n\n // Log to Sentry with additional context\n // Sentry.withScope((scope) => {\n // scope.setTag('errorBoundary', true);\n // scope.setContext('errorInfo', { ...errorInfo });\n // scope.setContext('errorId', { errorId });\n // Sentry.captureException(error);\n // });\n\n // Update state with error ID\n this.setState({ errorId });\n\n // Call custom error handler if provided\n this.props.onError?.(error, errorInfo);\n\n // Log to console in development\n if (process.env.NODE_ENV === 'development') {\n console.error('ErrorBoundary caught an error:', error, errorInfo);\n }\n }\n\n resetError = () => {\n this.setState({\n hasError: false,\n error: null,\n errorId: null,\n });\n };\n\n render() {\n if (this.state.hasError && this.state.error) {\n const FallbackComponent = this.props.fallback || DefaultErrorFallback;\n\n return (\n <FallbackComponent\n error={this.state.error}\n errorId={this.state.errorId}\n resetError={this.resetError}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// Hook for functional components to trigger error boundary\nexport const useErrorHandler = () => {\n return React.useCallback((error: Error) => {\n // This will be caught by the nearest error boundary\n throw error;\n }, []);\n};\n\nexport type { ErrorBoundaryProps, ErrorFallbackProps };\n"],"mappings":";;;;;;;;AAyBA,MAAMA,wBAAsD,EAC1D,OACA,SACA,iBACI;AAGJ,QACE,oBAAC;EAAI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AM;GACpB,YAAY,KAAK;IACjB;AAIN,SAAO,KAAK,MAAM;;;AAKtB,MAAa,wBAAwB;AACnC,QAAO,MAAM,aAAa,UAAiB;AAEzC,QAAM;IACL,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListPageProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime124 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/organisms/ListPage/ListPage.d.ts
|
|
5
5
|
declare function ListPage<T>({
|
|
@@ -23,7 +23,7 @@ declare function ListPage<T>({
|
|
|
23
23
|
renderStats,
|
|
24
24
|
className,
|
|
25
25
|
itemClassName
|
|
26
|
-
}: ListPageProps<T>):
|
|
26
|
+
}: ListPageProps<T>): react_jsx_runtime124.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ListPage };
|
|
29
29
|
//# sourceMappingURL=ListPage.d.ts.map
|
package/dist/ui/page-header.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region ui/page-header.d.ts
|
|
7
7
|
declare const headerVariants: (props?: ({
|
|
8
8
|
spacing?: "sm" | "lg" | "md" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
10
10
|
interface PageHeaderProps extends VariantProps<typeof headerVariants> {
|
|
11
11
|
breadcrumb?: React$1.ReactNode;
|
|
12
12
|
title: React$1.ReactNode;
|
|
@@ -21,7 +21,7 @@ declare function PageHeader({
|
|
|
21
21
|
actions,
|
|
22
22
|
spacing,
|
|
23
23
|
className
|
|
24
|
-
}: PageHeaderProps):
|
|
24
|
+
}: PageHeaderProps): react_jsx_runtime66.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { PageHeader, PageHeaderProps };
|
|
27
27
|
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.d.ts","names":[],"sources":["../../ui/page-header.tsx"],"sourcesContent":[],"mappings":";;;;;;cAMM;;IAWJ,+BAAA,CAAA;UAEe,eAAA,SAAwB,oBAAoB;EAbvD,UAAA,CAAA,EAcS,OAAA,CAAM,SAHnB;EAEe,KAAA,EAER,OAAA,CAAM,SAFkB;EAA4B,QAAA,CAAA,EAGhD,OAAA,CAAM,SAH0C;EAC9C,OAAM,CAAA,EAGT,OAAA,CAAM,SAHG;EACZ,SAAM,CAAA,EAAA,MAAA;;AAEH,iBAII,UAAA,CAJE;EAAA,UAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAWf,eAXe,CAAA,EAWA,
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","names":[],"sources":["../../ui/page-header.tsx"],"sourcesContent":[],"mappings":";;;;;;cAMM;;IAWJ,+BAAA,CAAA;UAEe,eAAA,SAAwB,oBAAoB;EAbvD,UAAA,CAAA,EAcS,OAAA,CAAM,SAHnB;EAEe,KAAA,EAER,OAAA,CAAM,SAFkB;EAA4B,QAAA,CAAA,EAGhD,OAAA,CAAM,SAH0C;EAC9C,OAAM,CAAA,EAGT,OAAA,CAAM,SAHG;EACZ,SAAM,CAAA,EAAA,MAAA;;AAEH,iBAII,UAAA,CAJE;EAAA,UAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAWf,eAXe,CAAA,EAWA,mBAAA,CAAA,GAAA,CAAA,OAXA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime154 from "react/jsx-runtime";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region ui/password-strength.d.ts
|
|
@@ -15,7 +15,7 @@ interface PasswordStrengthProps {
|
|
|
15
15
|
declare function PasswordStrength({
|
|
16
16
|
password,
|
|
17
17
|
showFeedback
|
|
18
|
-
}: PasswordStrengthProps):
|
|
18
|
+
}: PasswordStrengthProps): react_jsx_runtime154.JSX.Element | null;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PasswordStrength, getPasswordStrength, passwordSchema };
|
|
21
21
|
//# sourceMappingURL=password-strength.d.ts.map
|
package/dist/ui/popover.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react8 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_native48 from "react-native";
|
|
3
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
4
4
|
import * as _rn_primitives_popover0 from "@rn-primitives/popover";
|
|
5
5
|
|
|
6
6
|
//#region ui/popover.d.ts
|
|
7
|
-
declare const Popover: react8.ForwardRefExoticComponent<
|
|
7
|
+
declare const Popover: react8.ForwardRefExoticComponent<react_native48.ViewProps & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & {
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
|
-
} & react8.RefAttributes<
|
|
12
|
-
declare const PopoverTrigger: react8.ForwardRefExoticComponent<Omit<
|
|
11
|
+
} & react8.RefAttributes<react_native48.View>>;
|
|
12
|
+
declare const PopoverTrigger: react8.ForwardRefExoticComponent<Omit<react_native48.PressableProps & react8.RefAttributes<react_native48.View>, "ref"> & {
|
|
13
13
|
asChild?: boolean;
|
|
14
14
|
} & {
|
|
15
15
|
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
@@ -24,7 +24,7 @@ declare function PopoverContent({
|
|
|
24
24
|
}: _rn_primitives_popover0.ContentProps & {
|
|
25
25
|
ref?: React.RefObject<_rn_primitives_popover0.ContentRef>;
|
|
26
26
|
portalHost?: string;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime115.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Popover, PopoverContent, PopoverTrigger };
|
|
30
30
|
//# sourceMappingURL=popover.d.ts.map
|