@mks2508/sidebar-headless 0.3.0 → 0.4.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/dist/MobileOptimizations.css +570 -0
- package/dist/components/Sidebar/SidebarToggle.d.ts.map +1 -1
- package/dist/hooks/use-liquid-glass.d.ts +27 -4
- package/dist/hooks/use-liquid-glass.d.ts.map +1 -1
- package/dist/hooks/use-sidebar-liquid-glass.d.ts +4 -4
- package/dist/index.cjs +11021 -13154
- package/dist/index.cjs.map +1 -1
- package/dist/{dist/index.css → index.css} +10 -47
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +2235 -0
- package/dist/index.d.ts +162 -4
- package/dist/index.js +11001 -13097
- package/dist/index.js.map +1 -1
- package/dist/tooltip-keyframes.css +329 -0
- package/package.json +5 -4
- package/dist/dist/index.css.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,165 @@
|
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @author MKS2508
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
|
|
12
|
+
// ============================================
|
|
13
|
+
// Sidebar Component Exports
|
|
14
|
+
// ============================================
|
|
15
|
+
export { Sidebar } from './components/Sidebar/Sidebar'
|
|
16
|
+
export { SidebarNav } from './components/Sidebar/SidebarNav'
|
|
17
|
+
export { SidebarToggle } from './components/Sidebar/SidebarToggle'
|
|
18
|
+
export { SidebarContent } from './components/Sidebar/SidebarContent'
|
|
19
|
+
export { SidebarIndicator } from './components/Sidebar/SidebarIndicator'
|
|
20
|
+
export { SidebarFluidIndicator } from './components/Sidebar/SidebarFluidIndicator'
|
|
21
|
+
export { SidebarSafeArea } from './components/Sidebar/SidebarSafeArea'
|
|
22
|
+
export { SidebarItem } from './components/Sidebar/SidebarItem'
|
|
23
|
+
export { SidebarSubContent } from './components/Sidebar/SidebarSubContent'
|
|
24
|
+
export { SidebarSubLink } from './components/Sidebar/SidebarSubLink'
|
|
25
|
+
export { SidebarTooltip } from './components/Sidebar/SidebarTooltip'
|
|
26
|
+
|
|
27
|
+
// Sidebar Hooks
|
|
28
|
+
export { useSidebarContext } from './components/Sidebar/hooks/useSidebarContext'
|
|
29
|
+
export { useSidebarKeyboard } from './components/Sidebar/hooks/useSidebarKeyboard'
|
|
30
|
+
export { useSidebarIndicator } from './components/Sidebar/hooks/useSidebarIndicator'
|
|
31
|
+
export { useSubContent } from './components/Sidebar/hooks/useSubContent'
|
|
32
|
+
|
|
33
|
+
// Sidebar Types
|
|
34
|
+
export type {
|
|
35
|
+
SidebarProps,
|
|
36
|
+
SidebarNavProps,
|
|
37
|
+
SidebarToggleProps,
|
|
38
|
+
SidebarContentProps,
|
|
39
|
+
SidebarIndicatorProps,
|
|
40
|
+
SidebarSafeAreaProps,
|
|
41
|
+
SidebarItemProps,
|
|
42
|
+
SidebarState,
|
|
43
|
+
SidebarToggleState,
|
|
44
|
+
SidebarItemState,
|
|
45
|
+
SidebarIndicatorState,
|
|
46
|
+
SidebarContextValue,
|
|
47
|
+
SidebarDimensions,
|
|
48
|
+
SidebarSafeAreas,
|
|
49
|
+
SidebarAnimations,
|
|
50
|
+
SidebarConfig,
|
|
51
|
+
SidebarRenderProp,
|
|
52
|
+
SidebarToggleRenderProp,
|
|
53
|
+
SidebarItemRenderProp,
|
|
54
|
+
SidebarIndicatorRenderProp,
|
|
55
|
+
SidebarVisualStyle,
|
|
56
|
+
} from './components/Sidebar/Sidebar.types'
|
|
57
|
+
|
|
58
|
+
export type { SidebarSubContentProps } from './components/Sidebar/SidebarSubContent'
|
|
59
|
+
export type { SidebarSubLinkProps } from './components/Sidebar/SidebarSubLink'
|
|
60
|
+
export type { SidebarTooltipProps } from './components/Sidebar/SidebarTooltip'
|
|
61
|
+
|
|
62
|
+
// Sidebar Enums
|
|
63
|
+
export {
|
|
64
|
+
SidebarCollapseMode,
|
|
65
|
+
SidebarHideBehaviour,
|
|
66
|
+
SidebarHideOpensBehavior,
|
|
67
|
+
SidebarLayoutBehaviour,
|
|
68
|
+
SidebarWidth,
|
|
69
|
+
SidebarTransitionDuration,
|
|
70
|
+
SidebarZIndex,
|
|
71
|
+
SidebarBorderRadius,
|
|
72
|
+
SidebarSafeAreaPosition,
|
|
73
|
+
SidebarTimingFunction,
|
|
74
|
+
SidebarIconLibrary,
|
|
75
|
+
} from './components/Sidebar/Sidebar.types'
|
|
76
|
+
|
|
77
|
+
// Sidebar Constants
|
|
78
|
+
export {
|
|
79
|
+
DEFAULT_DIMENSIONS,
|
|
80
|
+
DEFAULT_SAFE_AREAS,
|
|
81
|
+
DEFAULT_ANIMATIONS,
|
|
82
|
+
DEFAULT_CONFIG,
|
|
83
|
+
DEFAULT_VISUAL_STYLE,
|
|
84
|
+
SIDEBAR_KEYBOARD_KEYS,
|
|
85
|
+
SIDEBAR_DATA_ATTRIBUTES,
|
|
86
|
+
SIDEBAR_TAILWIND_CLASSES,
|
|
87
|
+
SIDEBAR_DEBUG_PATTERNS,
|
|
88
|
+
SIDEBAR_ARIA_ROLES,
|
|
89
|
+
SIDEBAR_ARIA_LABELS,
|
|
90
|
+
SIDEBAR_BREAKPOINTS,
|
|
91
|
+
SIDEBAR_LIMITS,
|
|
92
|
+
SIDEBAR_CSS_VARIABLES,
|
|
93
|
+
SIDEBAR_VISUAL_PRESETS,
|
|
94
|
+
} from './components/Sidebar/Sidebar.constants'
|
|
95
|
+
|
|
96
|
+
export type { SidebarVisualPreset } from './components/Sidebar/Sidebar.constants'
|
|
97
|
+
|
|
98
|
+
// Sidebar Styles
|
|
99
|
+
export { generateSidebarStyles, generateIndicatorStyles } from './components/Sidebar/Sidebar.styles'
|
|
100
|
+
|
|
101
|
+
// ============================================
|
|
102
|
+
// MobileBottomNav Component Exports
|
|
103
|
+
// ============================================
|
|
104
|
+
export { MobileBottomNav, default } from './components/BottomNavBar/MobileBottomNav'
|
|
105
|
+
|
|
106
|
+
// MobileBottomNav Enums
|
|
107
|
+
export {
|
|
108
|
+
NavVariant,
|
|
109
|
+
NavSize,
|
|
110
|
+
LabelPosition,
|
|
111
|
+
AnimationType,
|
|
112
|
+
NavItemState,
|
|
113
|
+
IconSize,
|
|
114
|
+
ZIndexLevel,
|
|
115
|
+
BlurIntensity,
|
|
116
|
+
} from './components/BottomNavBar/types'
|
|
117
|
+
|
|
118
|
+
// MobileBottomNav Types
|
|
119
|
+
export type {
|
|
120
|
+
RootProps,
|
|
121
|
+
NavListProps,
|
|
122
|
+
NavItemProps,
|
|
123
|
+
NavContextValue,
|
|
124
|
+
SpringConfig,
|
|
125
|
+
TweenConfig,
|
|
126
|
+
AnimationConfig,
|
|
127
|
+
GlassConfig,
|
|
128
|
+
BaseNavProps,
|
|
129
|
+
} from './components/BottomNavBar/types'
|
|
130
|
+
|
|
131
|
+
// MobileBottomNav Default Configs
|
|
132
|
+
export {
|
|
133
|
+
DEFAULT_ANIMATION_CONFIG,
|
|
134
|
+
DEFAULT_GLASS_CONFIG,
|
|
135
|
+
DEFAULT_SPRING_CONFIG,
|
|
136
|
+
DEFAULT_TWEEN_CONFIG,
|
|
137
|
+
} from './components/BottomNavBar/types'
|
|
138
|
+
|
|
139
|
+
// MobileBottomNav Style Variants
|
|
140
|
+
export {
|
|
141
|
+
rootVariants,
|
|
142
|
+
navListVariants,
|
|
143
|
+
navItemVariants,
|
|
144
|
+
iconVariants,
|
|
145
|
+
labelVariants,
|
|
146
|
+
badgeVariants,
|
|
147
|
+
spacerVariants,
|
|
148
|
+
} from './components/BottomNavBar/MobileBottomNav.styles'
|
|
149
|
+
|
|
150
|
+
export type {
|
|
151
|
+
RootVariantProps,
|
|
152
|
+
NavListVariantProps,
|
|
153
|
+
NavItemVariantProps,
|
|
154
|
+
IconVariantProps,
|
|
155
|
+
LabelVariantProps,
|
|
156
|
+
BadgeVariantProps,
|
|
157
|
+
SpacerVariantProps,
|
|
158
|
+
} from './components/BottomNavBar/MobileBottomNav.styles'
|
|
159
|
+
|
|
160
|
+
// iOS Safari Fix Hook
|
|
161
|
+
export {
|
|
162
|
+
useIOSSafariFix,
|
|
163
|
+
useIOSFixedReset,
|
|
164
|
+
detectIOSVersion,
|
|
165
|
+
} from './components/BottomNavBar/useIOSSafariFix'
|
|
166
|
+
|
|
167
|
+
export type { IOSSafariFixConfig } from './components/BottomNavBar/useIOSSafariFix'
|
|
168
|
+
|
|
169
|
+
// ============================================
|
|
170
|
+
// Utilities
|
|
171
|
+
// ============================================
|
|
172
|
+
export { cn } from './lib/utils'
|