@moontra/moonui-pro 2.6.0 → 2.6.1
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/index.d.ts +8 -1
- package/dist/index.mjs +12 -1
- package/package.json +1 -1
- package/src/components/sidebar/index.tsx +19 -1
package/dist/index.d.ts
CHANGED
|
@@ -1913,6 +1913,13 @@ interface SidebarConfig {
|
|
|
1913
1913
|
collapsible?: boolean;
|
|
1914
1914
|
defaultCollapsed?: boolean;
|
|
1915
1915
|
floatingActionButton?: boolean;
|
|
1916
|
+
floatingActionButtonPosition?: {
|
|
1917
|
+
bottom?: string;
|
|
1918
|
+
left?: string;
|
|
1919
|
+
right?: string;
|
|
1920
|
+
top?: string;
|
|
1921
|
+
};
|
|
1922
|
+
floatingActionButtonClassName?: string;
|
|
1916
1923
|
glassmorphism?: boolean;
|
|
1917
1924
|
animatedBackground?: boolean;
|
|
1918
1925
|
keyboardShortcuts?: boolean;
|
|
@@ -1939,7 +1946,7 @@ interface SidebarProps extends SidebarConfig {
|
|
|
1939
1946
|
activePath?: string;
|
|
1940
1947
|
onNavigate?: (href: string) => void;
|
|
1941
1948
|
}
|
|
1942
|
-
declare function Sidebar({ sections, footer, showSearch, searchPlaceholder, searchQuery, onSearchChange, showThemeToggle, theme, onThemeChange, branding, collapsible, defaultCollapsed, floatingActionButton, glassmorphism, animatedBackground, keyboardShortcuts, persistState, persistKey, onStateChange, customStyles, className, activePath, onNavigate }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1949
|
+
declare function Sidebar({ sections, footer, showSearch, searchPlaceholder, searchQuery, onSearchChange, showThemeToggle, theme, onThemeChange, branding, collapsible, defaultCollapsed, floatingActionButton, floatingActionButtonPosition, floatingActionButtonClassName, glassmorphism, animatedBackground, keyboardShortcuts, persistState, persistKey, onStateChange, customStyles, className, activePath, onNavigate }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1943
1950
|
|
|
1944
1951
|
declare const enhancedButtonVariants: (props?: ({
|
|
1945
1952
|
variant?: "link" | "default" | "ghost" | "outline" | "secondary" | "destructive" | "gradient" | "glow" | null | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -59271,6 +59271,8 @@ function Sidebar({
|
|
|
59271
59271
|
collapsible = true,
|
|
59272
59272
|
defaultCollapsed = false,
|
|
59273
59273
|
floatingActionButton = true,
|
|
59274
|
+
floatingActionButtonPosition = { bottom: "1rem", left: "1rem" },
|
|
59275
|
+
floatingActionButtonClassName,
|
|
59274
59276
|
glassmorphism = false,
|
|
59275
59277
|
animatedBackground = false,
|
|
59276
59278
|
keyboardShortcuts = true,
|
|
@@ -59734,8 +59736,17 @@ function Sidebar({
|
|
|
59734
59736
|
MoonUIButtonPro,
|
|
59735
59737
|
{
|
|
59736
59738
|
onClick: () => setIsOpen(true),
|
|
59737
|
-
className:
|
|
59739
|
+
className: cn(
|
|
59740
|
+
"fixed z-40 h-12 w-12 rounded-full shadow-lg md:hidden",
|
|
59741
|
+
floatingActionButtonClassName
|
|
59742
|
+
),
|
|
59738
59743
|
size: "icon",
|
|
59744
|
+
style: {
|
|
59745
|
+
bottom: floatingActionButtonPosition?.bottom,
|
|
59746
|
+
left: floatingActionButtonPosition?.left,
|
|
59747
|
+
right: floatingActionButtonPosition?.right,
|
|
59748
|
+
top: floatingActionButtonPosition?.top
|
|
59749
|
+
},
|
|
59739
59750
|
children: /* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" })
|
|
59740
59751
|
}
|
|
59741
59752
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -153,6 +153,13 @@ export interface SidebarConfig {
|
|
|
153
153
|
collapsible?: boolean
|
|
154
154
|
defaultCollapsed?: boolean
|
|
155
155
|
floatingActionButton?: boolean
|
|
156
|
+
floatingActionButtonPosition?: {
|
|
157
|
+
bottom?: string
|
|
158
|
+
left?: string
|
|
159
|
+
right?: string
|
|
160
|
+
top?: string
|
|
161
|
+
}
|
|
162
|
+
floatingActionButtonClassName?: string
|
|
156
163
|
glassmorphism?: boolean
|
|
157
164
|
animatedBackground?: boolean
|
|
158
165
|
keyboardShortcuts?: boolean
|
|
@@ -196,6 +203,8 @@ export function Sidebar({
|
|
|
196
203
|
collapsible = true,
|
|
197
204
|
defaultCollapsed = false,
|
|
198
205
|
floatingActionButton = true,
|
|
206
|
+
floatingActionButtonPosition = { bottom: '1rem', left: '1rem' },
|
|
207
|
+
floatingActionButtonClassName,
|
|
199
208
|
glassmorphism = false,
|
|
200
209
|
animatedBackground = false,
|
|
201
210
|
keyboardShortcuts = true,
|
|
@@ -803,8 +812,17 @@ export function Sidebar({
|
|
|
803
812
|
{floatingActionButton && (
|
|
804
813
|
<Button
|
|
805
814
|
onClick={() => setIsOpen(true)}
|
|
806
|
-
className=
|
|
815
|
+
className={cn(
|
|
816
|
+
"fixed z-40 h-12 w-12 rounded-full shadow-lg md:hidden",
|
|
817
|
+
floatingActionButtonClassName
|
|
818
|
+
)}
|
|
807
819
|
size="icon"
|
|
820
|
+
style={{
|
|
821
|
+
bottom: floatingActionButtonPosition?.bottom,
|
|
822
|
+
left: floatingActionButtonPosition?.left,
|
|
823
|
+
right: floatingActionButtonPosition?.right,
|
|
824
|
+
top: floatingActionButtonPosition?.top
|
|
825
|
+
}}
|
|
808
826
|
>
|
|
809
827
|
<Menu className="h-5 w-5" />
|
|
810
828
|
</Button>
|