@layers-app/shared 0.0.44 → 0.0.50
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/{KanbanLayout-DrevX3Ow.js → KanbanLayout-oWz6EhPt.js} +5 -5
- package/dist/assets/jsons/icons.min.json.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts +2 -3
- package/dist/components/AppContainer/Header.d.ts +8 -0
- package/dist/components/AppContainer/Main.d.ts +2 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +9 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +4 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +4 -0
- package/dist/components/AppContainer/components/MobileNavbar.d.ts +2 -2
- package/dist/components/AppContainer/components/RightSidebar.d.ts +2 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts +3 -0
- package/dist/components/AppContainer/components/SlideAnimation.d.ts +6 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +3 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +2 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.d.ts +7 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/{MenuUserDropdown.d.ts → menus/UserMenu/MenuUserDropdown.d.ts} +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +30 -12
- package/dist/components/AppContainer/types.d.ts +16 -11
- package/dist/components/AppShell/AppShell.d.ts +12 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +24 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +20 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/types.d.ts +0 -8
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +9 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +16 -11
- package/dist/components/CommentComposer/index.d.ts +2 -55
- package/dist/components/CommentComposer/types.d.ts +96 -0
- package/dist/components/CommentsPanel/index.d.ts +1 -26
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts +7 -0
- package/dist/components/FilePicker/FilePicker.d.ts +2 -1
- package/dist/components/FilePicker/types.d.ts +1 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +2 -2
- package/dist/components/FormViewer/helpers/helpers.d.ts +2 -2
- package/dist/components/FormViewer/helpers/steps.d.ts +2 -2
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +2 -2
- package/dist/components/FormViewer/store/formStore.d.ts +36 -36
- package/dist/components/FormViewer/store/formStoreApi.d.ts +6 -6
- package/dist/components/FormViewer/store/selectors.d.ts +684 -684
- package/dist/components/FormViewer/types/schemes.d.ts +44 -44
- package/dist/components/Loaders/BaseLoader.d.ts +3 -0
- package/dist/components/NavMenu/NavMenu.d.ts +21 -0
- package/dist/components/NavMenu/components/DnDItem.d.ts +8 -0
- package/dist/components/NavMenu/components/DnDProvider.d.ts +8 -0
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts +1 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +2 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +7 -0
- package/dist/components/NavMenu/components/NavMenuLabel.d.ts +3 -0
- package/dist/components/NavMenu/index.d.ts +5 -0
- package/dist/components/NavMenu/store.d.ts +37 -0
- package/dist/components/NavMenu/types.d.ts +29 -0
- package/dist/components/NavbarResizer/NavbarResizer.d.ts +5 -2
- package/dist/components/Notification/Notification.d.ts +1 -0
- package/dist/components/Notification/NotificationCard.d.ts +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +8 -3
- package/dist/components/RichText/index.d.ts +3 -3
- package/dist/components/SubmitModal/index.d.ts +2 -2
- package/dist/components/UserAvatar/index.d.ts +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +6 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +2 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -8
- package/dist/components/modals/RemoveConfirmModal.d.ts +7 -0
- package/dist/constants.d.ts +0 -1
- package/dist/helpers/download.d.ts +2 -2
- package/dist/helpers/hotjar.d.ts +9 -0
- package/dist/helpers/pickRandomEmoji.d.ts +1 -0
- package/dist/hooks/useDateUtils.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +0 -3
- package/dist/icons.min-43tm8BtD.js +4 -0
- package/dist/{index-B6qa0aiu.js → index-tn5CWDGz.js} +23985 -22644
- package/dist/index.d.ts +14 -13
- package/dist/index.js +247 -249
- package/dist/index.umd.cjs +59 -59
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/locales/ui_en.json.d.ts +81 -0
- package/dist/lang/locales/ui_es.json.d.ts +78 -0
- package/dist/lang/locales/ui_ru.json.d.ts +82 -0
- package/dist/types/files.d.ts +18 -0
- package/package.json +2 -3
- package/dist/components/AppContainer/components/AllAppsMenu.d.ts +0 -5
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +0 -7
- package/dist/components/AppContainer/components/NavbarFooter.d.ts +0 -3
- package/dist/components/AppContainer/components/NavbarHeader.d.ts +0 -3
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +0 -15
- package/dist/components/AttachmentsGalleryModal/index.d.ts +0 -2
- package/dist/components/CommentFilterMenu/index.d.ts +0 -9
- package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +0 -10
- package/dist/components/CommentsPanel/components/CommentActions.d.ts +0 -16
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +0 -21
- package/dist/components/CommentsPanel/components/CommentTabFilter.d.ts +0 -7
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +0 -6
- package/dist/components/CommentsPanel/components/CommentsFilterHeader.d.ts +0 -3
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +0 -7
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +0 -18
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +0 -15
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +0 -10
- package/dist/components/CommentsPanel/components/Icon.d.ts +0 -8
- package/dist/components/CommentsPanel/store.d.ts +0 -25
- package/dist/components/CommentsPanel/types.d.ts +0 -339
- package/dist/components/CommentsPanel/utils.d.ts +0 -14
- package/dist/components/InfoMenu/index.d.ts +0 -1
- package/dist/components/InviteModal/InviteModal.d.ts +0 -2
- package/dist/components/InviteModal/slice.d.ts +0 -13
- package/dist/components/Notification/index.d.ts +0 -6
- package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
- package/dist/helpers/pickRandomIcon.d.ts +0 -1
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/store/aboutModal.d.ts +0 -7
- package/dist/store/trashModal.d.ts +0 -7
- /package/dist/components/{AttachmentsGalleryModal → ImageModal}/ImageModal.d.ts +0 -0
|
@@ -1626,6 +1626,8 @@ export declare namespace Schemes {
|
|
|
1626
1626
|
fontFamily?: string | undefined;
|
|
1627
1627
|
} | undefined;
|
|
1628
1628
|
align?: "center" | "end" | "start" | undefined;
|
|
1629
|
+
primaryColor?: string | undefined;
|
|
1630
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1629
1631
|
background?: {
|
|
1630
1632
|
image?: string | undefined;
|
|
1631
1633
|
color?: string | undefined;
|
|
@@ -1643,7 +1645,6 @@ export declare namespace Schemes {
|
|
|
1643
1645
|
shadowSize?: number | undefined;
|
|
1644
1646
|
shadowColor?: string | undefined;
|
|
1645
1647
|
} | undefined;
|
|
1646
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1647
1648
|
font?: {
|
|
1648
1649
|
color?: string | undefined;
|
|
1649
1650
|
fontSize?: number | undefined;
|
|
@@ -1651,7 +1652,6 @@ export declare namespace Schemes {
|
|
|
1651
1652
|
fontFamily?: string | undefined;
|
|
1652
1653
|
} | undefined;
|
|
1653
1654
|
listStyle?: string | undefined;
|
|
1654
|
-
primaryColor?: string | undefined;
|
|
1655
1655
|
customCSS?: string | undefined;
|
|
1656
1656
|
}, {
|
|
1657
1657
|
input?: {
|
|
@@ -1672,6 +1672,8 @@ export declare namespace Schemes {
|
|
|
1672
1672
|
fontFamily?: string | undefined;
|
|
1673
1673
|
} | undefined;
|
|
1674
1674
|
align?: "center" | "end" | "start" | undefined;
|
|
1675
|
+
primaryColor?: string | undefined;
|
|
1676
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1675
1677
|
background?: {
|
|
1676
1678
|
image?: string | undefined;
|
|
1677
1679
|
color?: string | undefined;
|
|
@@ -1689,7 +1691,6 @@ export declare namespace Schemes {
|
|
|
1689
1691
|
shadowSize?: number | undefined;
|
|
1690
1692
|
shadowColor?: string | undefined;
|
|
1691
1693
|
} | undefined;
|
|
1692
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1693
1694
|
font?: {
|
|
1694
1695
|
color?: string | undefined;
|
|
1695
1696
|
fontSize?: number | undefined;
|
|
@@ -1697,7 +1698,6 @@ export declare namespace Schemes {
|
|
|
1697
1698
|
fontFamily?: string | undefined;
|
|
1698
1699
|
} | undefined;
|
|
1699
1700
|
listStyle?: string | undefined;
|
|
1700
|
-
primaryColor?: string | undefined;
|
|
1701
1701
|
customCSS?: string | undefined;
|
|
1702
1702
|
}>;
|
|
1703
1703
|
const stepSchema: z.ZodObject<{
|
|
@@ -2524,6 +2524,8 @@ export declare namespace Schemes {
|
|
|
2524
2524
|
fontFamily?: string | undefined;
|
|
2525
2525
|
} | undefined;
|
|
2526
2526
|
align?: "center" | "end" | "start" | undefined;
|
|
2527
|
+
primaryColor?: string | undefined;
|
|
2528
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2527
2529
|
background?: {
|
|
2528
2530
|
image?: string | undefined;
|
|
2529
2531
|
color?: string | undefined;
|
|
@@ -2541,7 +2543,6 @@ export declare namespace Schemes {
|
|
|
2541
2543
|
shadowSize?: number | undefined;
|
|
2542
2544
|
shadowColor?: string | undefined;
|
|
2543
2545
|
} | undefined;
|
|
2544
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2545
2546
|
font?: {
|
|
2546
2547
|
color?: string | undefined;
|
|
2547
2548
|
fontSize?: number | undefined;
|
|
@@ -2549,7 +2550,6 @@ export declare namespace Schemes {
|
|
|
2549
2550
|
fontFamily?: string | undefined;
|
|
2550
2551
|
} | undefined;
|
|
2551
2552
|
listStyle?: string | undefined;
|
|
2552
|
-
primaryColor?: string | undefined;
|
|
2553
2553
|
customCSS?: string | undefined;
|
|
2554
2554
|
}, {
|
|
2555
2555
|
input?: {
|
|
@@ -2570,6 +2570,8 @@ export declare namespace Schemes {
|
|
|
2570
2570
|
fontFamily?: string | undefined;
|
|
2571
2571
|
} | undefined;
|
|
2572
2572
|
align?: "center" | "end" | "start" | undefined;
|
|
2573
|
+
primaryColor?: string | undefined;
|
|
2574
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2573
2575
|
background?: {
|
|
2574
2576
|
image?: string | undefined;
|
|
2575
2577
|
color?: string | undefined;
|
|
@@ -2587,7 +2589,6 @@ export declare namespace Schemes {
|
|
|
2587
2589
|
shadowSize?: number | undefined;
|
|
2588
2590
|
shadowColor?: string | undefined;
|
|
2589
2591
|
} | undefined;
|
|
2590
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2591
2592
|
font?: {
|
|
2592
2593
|
color?: string | undefined;
|
|
2593
2594
|
fontSize?: number | undefined;
|
|
@@ -2595,7 +2596,6 @@ export declare namespace Schemes {
|
|
|
2595
2596
|
fontFamily?: string | undefined;
|
|
2596
2597
|
} | undefined;
|
|
2597
2598
|
listStyle?: string | undefined;
|
|
2598
|
-
primaryColor?: string | undefined;
|
|
2599
2599
|
customCSS?: string | undefined;
|
|
2600
2600
|
}>>;
|
|
2601
2601
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -2850,6 +2850,8 @@ export declare namespace Schemes {
|
|
|
2850
2850
|
fontFamily?: string | undefined;
|
|
2851
2851
|
} | undefined;
|
|
2852
2852
|
align?: "center" | "end" | "start" | undefined;
|
|
2853
|
+
primaryColor?: string | undefined;
|
|
2854
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2853
2855
|
background?: {
|
|
2854
2856
|
image?: string | undefined;
|
|
2855
2857
|
color?: string | undefined;
|
|
@@ -2867,7 +2869,6 @@ export declare namespace Schemes {
|
|
|
2867
2869
|
shadowSize?: number | undefined;
|
|
2868
2870
|
shadowColor?: string | undefined;
|
|
2869
2871
|
} | undefined;
|
|
2870
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
2871
2872
|
font?: {
|
|
2872
2873
|
color?: string | undefined;
|
|
2873
2874
|
fontSize?: number | undefined;
|
|
@@ -2875,7 +2876,6 @@ export declare namespace Schemes {
|
|
|
2875
2876
|
fontFamily?: string | undefined;
|
|
2876
2877
|
} | undefined;
|
|
2877
2878
|
listStyle?: string | undefined;
|
|
2878
|
-
primaryColor?: string | undefined;
|
|
2879
2879
|
customCSS?: string | undefined;
|
|
2880
2880
|
} | undefined;
|
|
2881
2881
|
isStart?: boolean | undefined;
|
|
@@ -3130,6 +3130,8 @@ export declare namespace Schemes {
|
|
|
3130
3130
|
fontFamily?: string | undefined;
|
|
3131
3131
|
} | undefined;
|
|
3132
3132
|
align?: "center" | "end" | "start" | undefined;
|
|
3133
|
+
primaryColor?: string | undefined;
|
|
3134
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
3133
3135
|
background?: {
|
|
3134
3136
|
image?: string | undefined;
|
|
3135
3137
|
color?: string | undefined;
|
|
@@ -3147,7 +3149,6 @@ export declare namespace Schemes {
|
|
|
3147
3149
|
shadowSize?: number | undefined;
|
|
3148
3150
|
shadowColor?: string | undefined;
|
|
3149
3151
|
} | undefined;
|
|
3150
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
3151
3152
|
font?: {
|
|
3152
3153
|
color?: string | undefined;
|
|
3153
3154
|
fontSize?: number | undefined;
|
|
@@ -3155,7 +3156,6 @@ export declare namespace Schemes {
|
|
|
3155
3156
|
fontFamily?: string | undefined;
|
|
3156
3157
|
} | undefined;
|
|
3157
3158
|
listStyle?: string | undefined;
|
|
3158
|
-
primaryColor?: string | undefined;
|
|
3159
3159
|
customCSS?: string | undefined;
|
|
3160
3160
|
} | undefined;
|
|
3161
3161
|
isStart?: boolean | undefined;
|
|
@@ -3994,6 +3994,8 @@ export declare namespace Schemes {
|
|
|
3994
3994
|
fontFamily?: string | undefined;
|
|
3995
3995
|
} | undefined;
|
|
3996
3996
|
align?: "center" | "end" | "start" | undefined;
|
|
3997
|
+
primaryColor?: string | undefined;
|
|
3998
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
3997
3999
|
background?: {
|
|
3998
4000
|
image?: string | undefined;
|
|
3999
4001
|
color?: string | undefined;
|
|
@@ -4011,7 +4013,6 @@ export declare namespace Schemes {
|
|
|
4011
4013
|
shadowSize?: number | undefined;
|
|
4012
4014
|
shadowColor?: string | undefined;
|
|
4013
4015
|
} | undefined;
|
|
4014
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4015
4016
|
font?: {
|
|
4016
4017
|
color?: string | undefined;
|
|
4017
4018
|
fontSize?: number | undefined;
|
|
@@ -4019,7 +4020,6 @@ export declare namespace Schemes {
|
|
|
4019
4020
|
fontFamily?: string | undefined;
|
|
4020
4021
|
} | undefined;
|
|
4021
4022
|
listStyle?: string | undefined;
|
|
4022
|
-
primaryColor?: string | undefined;
|
|
4023
4023
|
customCSS?: string | undefined;
|
|
4024
4024
|
}, {
|
|
4025
4025
|
input?: {
|
|
@@ -4040,6 +4040,8 @@ export declare namespace Schemes {
|
|
|
4040
4040
|
fontFamily?: string | undefined;
|
|
4041
4041
|
} | undefined;
|
|
4042
4042
|
align?: "center" | "end" | "start" | undefined;
|
|
4043
|
+
primaryColor?: string | undefined;
|
|
4044
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4043
4045
|
background?: {
|
|
4044
4046
|
image?: string | undefined;
|
|
4045
4047
|
color?: string | undefined;
|
|
@@ -4057,7 +4059,6 @@ export declare namespace Schemes {
|
|
|
4057
4059
|
shadowSize?: number | undefined;
|
|
4058
4060
|
shadowColor?: string | undefined;
|
|
4059
4061
|
} | undefined;
|
|
4060
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4061
4062
|
font?: {
|
|
4062
4063
|
color?: string | undefined;
|
|
4063
4064
|
fontSize?: number | undefined;
|
|
@@ -4065,7 +4066,6 @@ export declare namespace Schemes {
|
|
|
4065
4066
|
fontFamily?: string | undefined;
|
|
4066
4067
|
} | undefined;
|
|
4067
4068
|
listStyle?: string | undefined;
|
|
4068
|
-
primaryColor?: string | undefined;
|
|
4069
4069
|
customCSS?: string | undefined;
|
|
4070
4070
|
}>>;
|
|
4071
4071
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -4320,6 +4320,8 @@ export declare namespace Schemes {
|
|
|
4320
4320
|
fontFamily?: string | undefined;
|
|
4321
4321
|
} | undefined;
|
|
4322
4322
|
align?: "center" | "end" | "start" | undefined;
|
|
4323
|
+
primaryColor?: string | undefined;
|
|
4324
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4323
4325
|
background?: {
|
|
4324
4326
|
image?: string | undefined;
|
|
4325
4327
|
color?: string | undefined;
|
|
@@ -4337,7 +4339,6 @@ export declare namespace Schemes {
|
|
|
4337
4339
|
shadowSize?: number | undefined;
|
|
4338
4340
|
shadowColor?: string | undefined;
|
|
4339
4341
|
} | undefined;
|
|
4340
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4341
4342
|
font?: {
|
|
4342
4343
|
color?: string | undefined;
|
|
4343
4344
|
fontSize?: number | undefined;
|
|
@@ -4345,7 +4346,6 @@ export declare namespace Schemes {
|
|
|
4345
4346
|
fontFamily?: string | undefined;
|
|
4346
4347
|
} | undefined;
|
|
4347
4348
|
listStyle?: string | undefined;
|
|
4348
|
-
primaryColor?: string | undefined;
|
|
4349
4349
|
customCSS?: string | undefined;
|
|
4350
4350
|
} | undefined;
|
|
4351
4351
|
isStart?: boolean | undefined;
|
|
@@ -4600,6 +4600,8 @@ export declare namespace Schemes {
|
|
|
4600
4600
|
fontFamily?: string | undefined;
|
|
4601
4601
|
} | undefined;
|
|
4602
4602
|
align?: "center" | "end" | "start" | undefined;
|
|
4603
|
+
primaryColor?: string | undefined;
|
|
4604
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4603
4605
|
background?: {
|
|
4604
4606
|
image?: string | undefined;
|
|
4605
4607
|
color?: string | undefined;
|
|
@@ -4617,7 +4619,6 @@ export declare namespace Schemes {
|
|
|
4617
4619
|
shadowSize?: number | undefined;
|
|
4618
4620
|
shadowColor?: string | undefined;
|
|
4619
4621
|
} | undefined;
|
|
4620
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
4621
4622
|
font?: {
|
|
4622
4623
|
color?: string | undefined;
|
|
4623
4624
|
fontSize?: number | undefined;
|
|
@@ -4625,7 +4626,6 @@ export declare namespace Schemes {
|
|
|
4625
4626
|
fontFamily?: string | undefined;
|
|
4626
4627
|
} | undefined;
|
|
4627
4628
|
listStyle?: string | undefined;
|
|
4628
|
-
primaryColor?: string | undefined;
|
|
4629
4629
|
customCSS?: string | undefined;
|
|
4630
4630
|
} | undefined;
|
|
4631
4631
|
isStart?: boolean | undefined;
|
|
@@ -5463,6 +5463,8 @@ export declare namespace Schemes {
|
|
|
5463
5463
|
fontFamily?: string | undefined;
|
|
5464
5464
|
} | undefined;
|
|
5465
5465
|
align?: "center" | "end" | "start" | undefined;
|
|
5466
|
+
primaryColor?: string | undefined;
|
|
5467
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5466
5468
|
background?: {
|
|
5467
5469
|
image?: string | undefined;
|
|
5468
5470
|
color?: string | undefined;
|
|
@@ -5480,7 +5482,6 @@ export declare namespace Schemes {
|
|
|
5480
5482
|
shadowSize?: number | undefined;
|
|
5481
5483
|
shadowColor?: string | undefined;
|
|
5482
5484
|
} | undefined;
|
|
5483
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5484
5485
|
font?: {
|
|
5485
5486
|
color?: string | undefined;
|
|
5486
5487
|
fontSize?: number | undefined;
|
|
@@ -5488,7 +5489,6 @@ export declare namespace Schemes {
|
|
|
5488
5489
|
fontFamily?: string | undefined;
|
|
5489
5490
|
} | undefined;
|
|
5490
5491
|
listStyle?: string | undefined;
|
|
5491
|
-
primaryColor?: string | undefined;
|
|
5492
5492
|
customCSS?: string | undefined;
|
|
5493
5493
|
}, {
|
|
5494
5494
|
input?: {
|
|
@@ -5509,6 +5509,8 @@ export declare namespace Schemes {
|
|
|
5509
5509
|
fontFamily?: string | undefined;
|
|
5510
5510
|
} | undefined;
|
|
5511
5511
|
align?: "center" | "end" | "start" | undefined;
|
|
5512
|
+
primaryColor?: string | undefined;
|
|
5513
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5512
5514
|
background?: {
|
|
5513
5515
|
image?: string | undefined;
|
|
5514
5516
|
color?: string | undefined;
|
|
@@ -5526,7 +5528,6 @@ export declare namespace Schemes {
|
|
|
5526
5528
|
shadowSize?: number | undefined;
|
|
5527
5529
|
shadowColor?: string | undefined;
|
|
5528
5530
|
} | undefined;
|
|
5529
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5530
5531
|
font?: {
|
|
5531
5532
|
color?: string | undefined;
|
|
5532
5533
|
fontSize?: number | undefined;
|
|
@@ -5534,7 +5535,6 @@ export declare namespace Schemes {
|
|
|
5534
5535
|
fontFamily?: string | undefined;
|
|
5535
5536
|
} | undefined;
|
|
5536
5537
|
listStyle?: string | undefined;
|
|
5537
|
-
primaryColor?: string | undefined;
|
|
5538
5538
|
customCSS?: string | undefined;
|
|
5539
5539
|
}>>;
|
|
5540
5540
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -5789,6 +5789,8 @@ export declare namespace Schemes {
|
|
|
5789
5789
|
fontFamily?: string | undefined;
|
|
5790
5790
|
} | undefined;
|
|
5791
5791
|
align?: "center" | "end" | "start" | undefined;
|
|
5792
|
+
primaryColor?: string | undefined;
|
|
5793
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5792
5794
|
background?: {
|
|
5793
5795
|
image?: string | undefined;
|
|
5794
5796
|
color?: string | undefined;
|
|
@@ -5806,7 +5808,6 @@ export declare namespace Schemes {
|
|
|
5806
5808
|
shadowSize?: number | undefined;
|
|
5807
5809
|
shadowColor?: string | undefined;
|
|
5808
5810
|
} | undefined;
|
|
5809
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
5810
5811
|
font?: {
|
|
5811
5812
|
color?: string | undefined;
|
|
5812
5813
|
fontSize?: number | undefined;
|
|
@@ -5814,7 +5815,6 @@ export declare namespace Schemes {
|
|
|
5814
5815
|
fontFamily?: string | undefined;
|
|
5815
5816
|
} | undefined;
|
|
5816
5817
|
listStyle?: string | undefined;
|
|
5817
|
-
primaryColor?: string | undefined;
|
|
5818
5818
|
customCSS?: string | undefined;
|
|
5819
5819
|
} | undefined;
|
|
5820
5820
|
isStart?: boolean | undefined;
|
|
@@ -6069,6 +6069,8 @@ export declare namespace Schemes {
|
|
|
6069
6069
|
fontFamily?: string | undefined;
|
|
6070
6070
|
} | undefined;
|
|
6071
6071
|
align?: "center" | "end" | "start" | undefined;
|
|
6072
|
+
primaryColor?: string | undefined;
|
|
6073
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6072
6074
|
background?: {
|
|
6073
6075
|
image?: string | undefined;
|
|
6074
6076
|
color?: string | undefined;
|
|
@@ -6086,7 +6088,6 @@ export declare namespace Schemes {
|
|
|
6086
6088
|
shadowSize?: number | undefined;
|
|
6087
6089
|
shadowColor?: string | undefined;
|
|
6088
6090
|
} | undefined;
|
|
6089
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6090
6091
|
font?: {
|
|
6091
6092
|
color?: string | undefined;
|
|
6092
6093
|
fontSize?: number | undefined;
|
|
@@ -6094,7 +6095,6 @@ export declare namespace Schemes {
|
|
|
6094
6095
|
fontFamily?: string | undefined;
|
|
6095
6096
|
} | undefined;
|
|
6096
6097
|
listStyle?: string | undefined;
|
|
6097
|
-
primaryColor?: string | undefined;
|
|
6098
6098
|
customCSS?: string | undefined;
|
|
6099
6099
|
} | undefined;
|
|
6100
6100
|
isStart?: boolean | undefined;
|
|
@@ -6239,6 +6239,8 @@ export declare namespace Schemes {
|
|
|
6239
6239
|
fontFamily?: string | undefined;
|
|
6240
6240
|
} | undefined;
|
|
6241
6241
|
align?: "center" | "end" | "start" | undefined;
|
|
6242
|
+
primaryColor?: string | undefined;
|
|
6243
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6242
6244
|
background?: {
|
|
6243
6245
|
image?: string | undefined;
|
|
6244
6246
|
color?: string | undefined;
|
|
@@ -6256,7 +6258,6 @@ export declare namespace Schemes {
|
|
|
6256
6258
|
shadowSize?: number | undefined;
|
|
6257
6259
|
shadowColor?: string | undefined;
|
|
6258
6260
|
} | undefined;
|
|
6259
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6260
6261
|
font?: {
|
|
6261
6262
|
color?: string | undefined;
|
|
6262
6263
|
fontSize?: number | undefined;
|
|
@@ -6264,7 +6265,6 @@ export declare namespace Schemes {
|
|
|
6264
6265
|
fontFamily?: string | undefined;
|
|
6265
6266
|
} | undefined;
|
|
6266
6267
|
listStyle?: string | undefined;
|
|
6267
|
-
primaryColor?: string | undefined;
|
|
6268
6268
|
customCSS?: string | undefined;
|
|
6269
6269
|
}, {
|
|
6270
6270
|
input?: {
|
|
@@ -6285,6 +6285,8 @@ export declare namespace Schemes {
|
|
|
6285
6285
|
fontFamily?: string | undefined;
|
|
6286
6286
|
} | undefined;
|
|
6287
6287
|
align?: "center" | "end" | "start" | undefined;
|
|
6288
|
+
primaryColor?: string | undefined;
|
|
6289
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6288
6290
|
background?: {
|
|
6289
6291
|
image?: string | undefined;
|
|
6290
6292
|
color?: string | undefined;
|
|
@@ -6302,7 +6304,6 @@ export declare namespace Schemes {
|
|
|
6302
6304
|
shadowSize?: number | undefined;
|
|
6303
6305
|
shadowColor?: string | undefined;
|
|
6304
6306
|
} | undefined;
|
|
6305
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6306
6307
|
font?: {
|
|
6307
6308
|
color?: string | undefined;
|
|
6308
6309
|
fontSize?: number | undefined;
|
|
@@ -6310,7 +6311,6 @@ export declare namespace Schemes {
|
|
|
6310
6311
|
fontFamily?: string | undefined;
|
|
6311
6312
|
} | undefined;
|
|
6312
6313
|
listStyle?: string | undefined;
|
|
6313
|
-
primaryColor?: string | undefined;
|
|
6314
6314
|
customCSS?: string | undefined;
|
|
6315
6315
|
}>>;
|
|
6316
6316
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -6367,6 +6367,8 @@ export declare namespace Schemes {
|
|
|
6367
6367
|
fontFamily?: string | undefined;
|
|
6368
6368
|
} | undefined;
|
|
6369
6369
|
align?: "center" | "end" | "start" | undefined;
|
|
6370
|
+
primaryColor?: string | undefined;
|
|
6371
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6370
6372
|
background?: {
|
|
6371
6373
|
image?: string | undefined;
|
|
6372
6374
|
color?: string | undefined;
|
|
@@ -6384,7 +6386,6 @@ export declare namespace Schemes {
|
|
|
6384
6386
|
shadowSize?: number | undefined;
|
|
6385
6387
|
shadowColor?: string | undefined;
|
|
6386
6388
|
} | undefined;
|
|
6387
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6388
6389
|
font?: {
|
|
6389
6390
|
color?: string | undefined;
|
|
6390
6391
|
fontSize?: number | undefined;
|
|
@@ -6392,7 +6393,6 @@ export declare namespace Schemes {
|
|
|
6392
6393
|
fontFamily?: string | undefined;
|
|
6393
6394
|
} | undefined;
|
|
6394
6395
|
listStyle?: string | undefined;
|
|
6395
|
-
primaryColor?: string | undefined;
|
|
6396
6396
|
customCSS?: string | undefined;
|
|
6397
6397
|
} | undefined;
|
|
6398
6398
|
settings?: {
|
|
@@ -6649,6 +6649,8 @@ export declare namespace Schemes {
|
|
|
6649
6649
|
fontFamily?: string | undefined;
|
|
6650
6650
|
} | undefined;
|
|
6651
6651
|
align?: "center" | "end" | "start" | undefined;
|
|
6652
|
+
primaryColor?: string | undefined;
|
|
6653
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6652
6654
|
background?: {
|
|
6653
6655
|
image?: string | undefined;
|
|
6654
6656
|
color?: string | undefined;
|
|
@@ -6666,7 +6668,6 @@ export declare namespace Schemes {
|
|
|
6666
6668
|
shadowSize?: number | undefined;
|
|
6667
6669
|
shadowColor?: string | undefined;
|
|
6668
6670
|
} | undefined;
|
|
6669
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6670
6671
|
font?: {
|
|
6671
6672
|
color?: string | undefined;
|
|
6672
6673
|
fontSize?: number | undefined;
|
|
@@ -6674,7 +6675,6 @@ export declare namespace Schemes {
|
|
|
6674
6675
|
fontFamily?: string | undefined;
|
|
6675
6676
|
} | undefined;
|
|
6676
6677
|
listStyle?: string | undefined;
|
|
6677
|
-
primaryColor?: string | undefined;
|
|
6678
6678
|
customCSS?: string | undefined;
|
|
6679
6679
|
} | undefined;
|
|
6680
6680
|
isStart?: boolean | undefined;
|
|
@@ -6930,6 +6930,8 @@ export declare namespace Schemes {
|
|
|
6930
6930
|
fontFamily?: string | undefined;
|
|
6931
6931
|
} | undefined;
|
|
6932
6932
|
align?: "center" | "end" | "start" | undefined;
|
|
6933
|
+
primaryColor?: string | undefined;
|
|
6934
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6933
6935
|
background?: {
|
|
6934
6936
|
image?: string | undefined;
|
|
6935
6937
|
color?: string | undefined;
|
|
@@ -6947,7 +6949,6 @@ export declare namespace Schemes {
|
|
|
6947
6949
|
shadowSize?: number | undefined;
|
|
6948
6950
|
shadowColor?: string | undefined;
|
|
6949
6951
|
} | undefined;
|
|
6950
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6951
6952
|
font?: {
|
|
6952
6953
|
color?: string | undefined;
|
|
6953
6954
|
fontSize?: number | undefined;
|
|
@@ -6955,7 +6956,6 @@ export declare namespace Schemes {
|
|
|
6955
6956
|
fontFamily?: string | undefined;
|
|
6956
6957
|
} | undefined;
|
|
6957
6958
|
listStyle?: string | undefined;
|
|
6958
|
-
primaryColor?: string | undefined;
|
|
6959
6959
|
customCSS?: string | undefined;
|
|
6960
6960
|
} | undefined;
|
|
6961
6961
|
isStart?: boolean | undefined;
|
|
@@ -6989,6 +6989,8 @@ export declare namespace Schemes {
|
|
|
6989
6989
|
fontFamily?: string | undefined;
|
|
6990
6990
|
} | undefined;
|
|
6991
6991
|
align?: "center" | "end" | "start" | undefined;
|
|
6992
|
+
primaryColor?: string | undefined;
|
|
6993
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
6992
6994
|
background?: {
|
|
6993
6995
|
image?: string | undefined;
|
|
6994
6996
|
color?: string | undefined;
|
|
@@ -7006,7 +7008,6 @@ export declare namespace Schemes {
|
|
|
7006
7008
|
shadowSize?: number | undefined;
|
|
7007
7009
|
shadowColor?: string | undefined;
|
|
7008
7010
|
} | undefined;
|
|
7009
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
7010
7011
|
font?: {
|
|
7011
7012
|
color?: string | undefined;
|
|
7012
7013
|
fontSize?: number | undefined;
|
|
@@ -7014,7 +7015,6 @@ export declare namespace Schemes {
|
|
|
7014
7015
|
fontFamily?: string | undefined;
|
|
7015
7016
|
} | undefined;
|
|
7016
7017
|
listStyle?: string | undefined;
|
|
7017
|
-
primaryColor?: string | undefined;
|
|
7018
7018
|
customCSS?: string | undefined;
|
|
7019
7019
|
} | undefined;
|
|
7020
7020
|
settings?: {
|
|
@@ -7271,6 +7271,8 @@ export declare namespace Schemes {
|
|
|
7271
7271
|
fontFamily?: string | undefined;
|
|
7272
7272
|
} | undefined;
|
|
7273
7273
|
align?: "center" | "end" | "start" | undefined;
|
|
7274
|
+
primaryColor?: string | undefined;
|
|
7275
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
7274
7276
|
background?: {
|
|
7275
7277
|
image?: string | undefined;
|
|
7276
7278
|
color?: string | undefined;
|
|
@@ -7288,7 +7290,6 @@ export declare namespace Schemes {
|
|
|
7288
7290
|
shadowSize?: number | undefined;
|
|
7289
7291
|
shadowColor?: string | undefined;
|
|
7290
7292
|
} | undefined;
|
|
7291
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
7292
7293
|
font?: {
|
|
7293
7294
|
color?: string | undefined;
|
|
7294
7295
|
fontSize?: number | undefined;
|
|
@@ -7296,7 +7297,6 @@ export declare namespace Schemes {
|
|
|
7296
7297
|
fontFamily?: string | undefined;
|
|
7297
7298
|
} | undefined;
|
|
7298
7299
|
listStyle?: string | undefined;
|
|
7299
|
-
primaryColor?: string | undefined;
|
|
7300
7300
|
customCSS?: string | undefined;
|
|
7301
7301
|
} | undefined;
|
|
7302
7302
|
isStart?: boolean | undefined;
|
|
@@ -7552,6 +7552,8 @@ export declare namespace Schemes {
|
|
|
7552
7552
|
fontFamily?: string | undefined;
|
|
7553
7553
|
} | undefined;
|
|
7554
7554
|
align?: "center" | "end" | "start" | undefined;
|
|
7555
|
+
primaryColor?: string | undefined;
|
|
7556
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
7555
7557
|
background?: {
|
|
7556
7558
|
image?: string | undefined;
|
|
7557
7559
|
color?: string | undefined;
|
|
@@ -7569,7 +7571,6 @@ export declare namespace Schemes {
|
|
|
7569
7571
|
shadowSize?: number | undefined;
|
|
7570
7572
|
shadowColor?: string | undefined;
|
|
7571
7573
|
} | undefined;
|
|
7572
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
7573
7574
|
font?: {
|
|
7574
7575
|
color?: string | undefined;
|
|
7575
7576
|
fontSize?: number | undefined;
|
|
@@ -7577,7 +7578,6 @@ export declare namespace Schemes {
|
|
|
7577
7578
|
fontFamily?: string | undefined;
|
|
7578
7579
|
} | undefined;
|
|
7579
7580
|
listStyle?: string | undefined;
|
|
7580
|
-
primaryColor?: string | undefined;
|
|
7581
7581
|
customCSS?: string | undefined;
|
|
7582
7582
|
} | undefined;
|
|
7583
7583
|
isStart?: boolean | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { NavMenuStore, createNavMenuStore } from './store';
|
|
4
|
+
import { ExpandNavMenuItemDef, NavMenuItemDef, NavMenuOrderChange } from './types';
|
|
5
|
+
export type NavMenuProps = {
|
|
6
|
+
items: NavMenuItemDef[];
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
onOrderChange?: NavMenuOrderChange;
|
|
9
|
+
noItemsPlaceholder?: ReactNode;
|
|
10
|
+
} & Partial<NavMenuStore['props']> & {
|
|
11
|
+
store?: ReturnType<typeof createNavMenuStore>;
|
|
12
|
+
};
|
|
13
|
+
export declare const NavMenu: (({ items, loading, noItemsPlaceholder, onOrderChange, onEdit, store: _store, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
+
Item: import('react').MemoExoticComponent<({ item, ignoreDepth }: {
|
|
15
|
+
item: ExpandNavMenuItemDef;
|
|
16
|
+
ignoreDepth?: boolean;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
ActionIcon: import('react').ForwardRefExoticComponent<import('@mantine/core').ActionIconProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
Label: ({ children, ...props }: PropsWithChildren<import('@mantine/core').TextProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Placeholder: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { NavMenuItemDef } from '../types';
|
|
3
|
+
export declare const DnDItem: ({ item, children, index, opened, }: PropsWithChildren<{
|
|
4
|
+
item: NavMenuItemDef;
|
|
5
|
+
index: number;
|
|
6
|
+
items: NavMenuItemDef[];
|
|
7
|
+
opened?: string[];
|
|
8
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { NavMenuOrderChange } from '../types';
|
|
3
|
+
type DnDProviderProps = {
|
|
4
|
+
onOrderChange: NavMenuOrderChange;
|
|
5
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
};
|
|
7
|
+
export declare const DnDProvider: ({ containerRef, children, onOrderChange, }: PropsWithChildren<DnDProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DraggableOverlay: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ActionIconProps } from '@mantine/core';
|
|
2
|
+
export declare const NavMenuActionIcon: import('react').ForwardRefExoticComponent<ActionIconProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExpandNavMenuItemDef } from '../types.ts';
|
|
2
|
+
type NavMenuItemProps = {
|
|
3
|
+
item: ExpandNavMenuItemDef;
|
|
4
|
+
ignoreDepth?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const NavMenuItem: import('react').MemoExoticComponent<({ item, ignoreDepth }: NavMenuItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
3
|
+
export type NavMenuEditData = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
export type NavMenuStore = {
|
|
9
|
+
editId: string | null;
|
|
10
|
+
opened: string[];
|
|
11
|
+
props: {
|
|
12
|
+
onEdit?: (props: NavMenuEditData) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const createNavMenuStore: () => {
|
|
16
|
+
useStore: UseBoundStore<StoreApi<NavMenuStore>>;
|
|
17
|
+
api: {
|
|
18
|
+
startEditing: (id: string) => void;
|
|
19
|
+
stopEditing: () => void;
|
|
20
|
+
handleEdit: (props: NavMenuEditData) => void;
|
|
21
|
+
toggleOpened: (id: string) => void;
|
|
22
|
+
setOpened: (ids: string[]) => void;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const NavMenuProvider: ({ children, store, }: PropsWithChildren<{
|
|
26
|
+
store: ReturnType<typeof createNavMenuStore>;
|
|
27
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const useNavMenuStore: () => {
|
|
29
|
+
useStore: UseBoundStore<StoreApi<NavMenuStore>>;
|
|
30
|
+
api: {
|
|
31
|
+
startEditing: (id: string) => void;
|
|
32
|
+
stopEditing: () => void;
|
|
33
|
+
handleEdit: (props: NavMenuEditData) => void;
|
|
34
|
+
toggleOpened: (id: string) => void;
|
|
35
|
+
setOpened: (ids: string[]) => void;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type NavMenuItemData = {
|
|
3
|
+
type?: string | null;
|
|
4
|
+
icon?: string | null;
|
|
5
|
+
title?: string | null;
|
|
6
|
+
};
|
|
7
|
+
export type NavMenuItemDef<DATA = NavMenuItemData> = {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
rightSection?: ReactNode;
|
|
12
|
+
isTemporary?: boolean;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
hasChildren?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
children: NavMenuItemDef<DATA>[];
|
|
17
|
+
pathById: string[];
|
|
18
|
+
order?: number;
|
|
19
|
+
data?: DATA;
|
|
20
|
+
};
|
|
21
|
+
export type ExpandNavMenuItemDef<DATA = NavMenuItemData> = NavMenuItemDef<DATA> & {
|
|
22
|
+
depth: number;
|
|
23
|
+
};
|
|
24
|
+
export type NavMenuOrderChange<DATA = NavMenuItemData> = (v: {
|
|
25
|
+
item: ExpandNavMenuItemDef<DATA>;
|
|
26
|
+
over: ExpandNavMenuItemDef<DATA>;
|
|
27
|
+
position: NavMenuOrderChangePosition;
|
|
28
|
+
}) => void;
|
|
29
|
+
export type NavMenuOrderChangePosition = 'top' | 'bottom' | 'inside';
|