@mks2508/sidebar-headless 0.2.0 → 0.3.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/CHANGELOG.md +53 -53
- package/LICENSE +21 -21
- package/README.md +165 -165
- package/dist/components/BottomNavBar/MobileBottomNav.d.ts +65 -0
- package/dist/components/BottomNavBar/MobileBottomNav.d.ts.map +1 -0
- package/dist/components/BottomNavBar/MobileBottomNav.styles.d.ts +94 -0
- package/dist/components/BottomNavBar/MobileBottomNav.styles.d.ts.map +1 -0
- package/dist/components/BottomNavBar/index.d.ts +10 -0
- package/dist/components/BottomNavBar/index.d.ts.map +1 -0
- package/dist/components/BottomNavBar/types.d.ts +363 -0
- package/dist/components/BottomNavBar/types.d.ts.map +1 -0
- package/dist/components/BottomNavBar/useIOSSafariFix.d.ts +74 -0
- package/dist/components/BottomNavBar/useIOSSafariFix.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.constants.d.ts +285 -0
- package/dist/components/Sidebar/Sidebar.constants.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +80 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.styles.d.ts +77 -0
- package/dist/components/Sidebar/Sidebar.styles.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +638 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarContent.d.ts +46 -0
- package/dist/components/Sidebar/SidebarContent.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarContext.d.ts +87 -0
- package/dist/components/Sidebar/SidebarContext.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarFluidIndicator.d.ts +37 -0
- package/dist/components/Sidebar/SidebarFluidIndicator.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarIndicator.d.ts +59 -0
- package/dist/components/Sidebar/SidebarIndicator.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarItem.d.ts +82 -0
- package/dist/components/Sidebar/SidebarItem.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarNav.d.ts +48 -0
- package/dist/components/Sidebar/SidebarNav.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarSafeArea.d.ts +56 -0
- package/dist/components/Sidebar/SidebarSafeArea.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarSubContent.d.ts +10 -0
- package/dist/components/Sidebar/SidebarSubContent.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarSubLink.d.ts +18 -0
- package/dist/components/Sidebar/SidebarSubLink.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarToggle.d.ts +52 -0
- package/dist/components/Sidebar/SidebarToggle.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarTooltip.d.ts +26 -0
- package/dist/components/Sidebar/SidebarTooltip.d.ts.map +1 -0
- package/dist/components/Sidebar/TooltipTitle3D.d.ts +42 -0
- package/dist/components/Sidebar/TooltipTitle3D.d.ts.map +1 -0
- package/dist/components/Sidebar/TooltipTitle3DCrossfade.d.ts +46 -0
- package/dist/components/Sidebar/TooltipTitle3DCrossfade.d.ts.map +1 -0
- package/dist/components/Sidebar/TooltipTitleCylinder.d.ts +9 -0
- package/dist/components/Sidebar/TooltipTitleCylinder.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.ts +48 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarIndicator.d.ts +72 -0
- package/dist/components/Sidebar/hooks/useSidebarIndicator.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarKeyboard.d.ts +51 -0
- package/dist/components/Sidebar/hooks/useSidebarKeyboard.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useSubContent.d.ts +7 -0
- package/dist/components/Sidebar/hooks/useSubContent.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useTitleHistory.d.ts +41 -0
- package/dist/components/Sidebar/hooks/useTitleHistory.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useTooltipDirection.d.ts +29 -0
- package/dist/components/Sidebar/hooks/useTooltipDirection.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useTooltipTransition.d.ts +60 -0
- package/dist/components/Sidebar/hooks/useTooltipTransition.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +163 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/sidebar-defaults.d.ts +54 -0
- package/dist/components/Sidebar/sidebar-defaults.d.ts.map +1 -0
- package/dist/components/animate-ui/components/base/switch.d.ts +11 -0
- package/dist/components/animate-ui/components/base/switch.d.ts.map +1 -0
- package/dist/components/animate-ui/primitives/base/switch.d.ts +23 -0
- package/dist/components/animate-ui/primitives/base/switch.d.ts.map +1 -0
- package/dist/components/fluid-hover-indicator-v2.d.ts +46 -0
- package/dist/components/fluid-hover-indicator-v2.d.ts.map +1 -0
- package/dist/components/fluid-hover-indicator.d.ts +28 -0
- package/dist/components/fluid-hover-indicator.d.ts.map +1 -0
- package/dist/components/ui/TextCylinder.d.ts +21 -0
- package/dist/components/ui/TextCylinder.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/custom-icon.d.ts +45 -0
- package/dist/components/ui/custom-icon.d.ts.map +1 -0
- package/dist/components/ui/dotted-glow-background.d.ts +42 -0
- package/dist/components/ui/dotted-glow-background.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/optimized-image.d.ts +12 -0
- package/dist/components/ui/optimized-image.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/{index.css → dist/index.css} +945 -908
- package/dist/dist/index.css.map +1 -0
- package/dist/hooks/use-controlled-state.d.ts +9 -0
- package/dist/hooks/use-controlled-state.d.ts.map +1 -0
- package/dist/hooks/use-fluid-animation.d.ts +18 -0
- package/dist/hooks/use-fluid-animation.d.ts.map +1 -0
- package/dist/hooks/use-liquid-glass.d.ts +40 -0
- package/dist/hooks/use-liquid-glass.d.ts.map +1 -0
- package/dist/hooks/use-sidebar-liquid-glass.d.ts +48 -0
- package/dist/hooks/use-sidebar-liquid-glass.d.ts.map +1 -0
- package/dist/hooks/use-text-cylinder.d.ts +67 -0
- package/dist/hooks/use-text-cylinder.d.ts.map +1 -0
- package/dist/index.cjs +14087 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -2231
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13132 -52336
- package/dist/index.js.map +1 -1
- package/dist/lib/get-strict-context.d.ts +10 -0
- package/dist/lib/get-strict-context.d.ts.map +1 -0
- package/dist/lib/liquid-glass-presets.d.ts +43 -0
- package/dist/lib/liquid-glass-presets.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/types/sidebar-minimal.d.ts +21 -0
- package/dist/types/sidebar-minimal.d.ts.map +1 -0
- package/dist/utils/TooltipAnimationController.d.ts +122 -0
- package/dist/utils/TooltipAnimationController.d.ts.map +1 -0
- package/package.json +12 -6
- package/dist/MobileOptimizations.css +0 -570
- package/dist/index.css.map +0 -1
- package/dist/index.d.cts +0 -2235
- package/dist/tooltip-keyframes.css +0 -329
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function getStrictContext<T>(name?: string): readonly [
|
|
3
|
+
({ value, children }: {
|
|
4
|
+
value: T;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}) => React.JSX.Element,
|
|
7
|
+
() => T
|
|
8
|
+
];
|
|
9
|
+
export { getStrictContext };
|
|
10
|
+
//# sourceMappingURL=get-strict-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-strict-context.d.ts","sourceRoot":"","sources":["../../src/lib/get-strict-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,gBAAgB,CAAC,CAAC,EACzB,IAAI,CAAC,EAAE,MAAM,GACZ,SAAS;IACV,CAAC,EACC,KAAK,EACL,QAAQ,EACT,EAAE;QACD,KAAK,EAAE,CAAC,CAAC;QACT,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC5B,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO;IACvB,MAAM,CAAC;CACR,CAoBA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glass configuration interface (local definition to avoid external dependency issues)
|
|
3
|
+
* Made flexible to handle all liquid glass configuration properties
|
|
4
|
+
*/
|
|
5
|
+
export interface SidebarLiquidConfig {
|
|
6
|
+
/** Habilitar chromatic aberration (Phase 2) - solo para tooltips por defecto */
|
|
7
|
+
enableChromaticAberration?: boolean;
|
|
8
|
+
/** Allow any property to avoid external dependency issues */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Presets optimizados de Liquid Glass para componentes del Sidebar
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Configuraciones pre-optimizadas para diferentes componentes del sidebar:
|
|
16
|
+
* - `indicator`: Para el FluidHoverIndicator (hover states de items)
|
|
17
|
+
* - `tooltip`: Para tooltips expandidos con contenido rico
|
|
18
|
+
* - `dropdown`: Para menús dropdown y submenús
|
|
19
|
+
*
|
|
20
|
+
* Cada preset está calibrado para:
|
|
21
|
+
* - Performance óptimo en sidebar (blur reducido vs showcase)
|
|
22
|
+
* - Tamaños típicos de componentes de sidebar
|
|
23
|
+
* - Visual balance entre refracción y legibilidad
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Extended config interface for sidebar liquid glass
|
|
27
|
+
*/
|
|
28
|
+
export interface ExtendedSidebarLiquidConfig extends SidebarLiquidConfig {
|
|
29
|
+
/** Habilitar chromatic aberration (Phase 2) - solo para tooltips por defecto */
|
|
30
|
+
enableChromaticAberration?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export type SidebarLiquidPreset = 'indicator' | 'tooltip' | 'dropdown' | 'sidebar';
|
|
33
|
+
export declare const sidebarLiquidPresets: Record<SidebarLiquidPreset, SidebarLiquidConfig>;
|
|
34
|
+
/**
|
|
35
|
+
* Helper para obtener preset con overrides
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* const config = getLiquidPreset('indicator', { blur: 12 })
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function getLiquidPreset(preset: SidebarLiquidPreset, overrides?: Partial<SidebarLiquidConfig>): SidebarLiquidConfig;
|
|
43
|
+
//# sourceMappingURL=liquid-glass-presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liquid-glass-presets.d.ts","sourceRoot":"","sources":["../../src/lib/liquid-glass-presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,6DAA6D;IAC7D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,gFAAgF;IAChF,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAA;AAElF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAwJjF,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GACvC,mBAAmB,CAKrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
export interface Category {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: ComponentType<{
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}>;
|
|
9
|
+
subcategories?: SubCategory[];
|
|
10
|
+
}
|
|
11
|
+
export interface SubCategory {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
icon?: ComponentType<{
|
|
15
|
+
size?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
}> | string | {
|
|
18
|
+
displayName?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=sidebar-minimal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-minimal.d.ts","sourceRoot":"","sources":["../../src/types/sidebar-minimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,WAAW,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,MAAM,GAAG;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAChG"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TooltipAnimationController
|
|
3
|
+
*
|
|
4
|
+
* Controlador centralizado para animaciones de tooltip usando Web Animations API.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Cancelación inmediata de animaciones en hover rápido
|
|
8
|
+
* - Orquestación de múltiples animaciones simultáneas
|
|
9
|
+
* - Direction-aware animations (up/down)
|
|
10
|
+
* - commitStyles() para persistir estados finales
|
|
11
|
+
* - Promise-based API para sincronización
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const controller = new TooltipAnimationController();
|
|
16
|
+
*
|
|
17
|
+
* await controller.transitionTooltip({
|
|
18
|
+
* oldTitleEl: document.querySelector('.old-title'),
|
|
19
|
+
* newTitleEl: document.querySelector('.new-title'),
|
|
20
|
+
* oldItemsContainer: document.querySelector('.old-items'),
|
|
21
|
+
* newItemsContainer: document.querySelector('.new-items'),
|
|
22
|
+
* heightContainer: document.querySelector('.height-container'),
|
|
23
|
+
* direction: 'down'
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export type AnimationDirection = 'up' | 'down';
|
|
28
|
+
export interface TooltipTransitionParams {
|
|
29
|
+
oldTitleEl: HTMLElement | null;
|
|
30
|
+
newTitleEl: HTMLElement | null;
|
|
31
|
+
oldItemsContainer: HTMLElement | null;
|
|
32
|
+
newItemsContainer: HTMLElement | null;
|
|
33
|
+
heightContainer: HTMLElement | null;
|
|
34
|
+
direction: AnimationDirection;
|
|
35
|
+
skipTitleAnimation?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface AnimationTimings {
|
|
38
|
+
titleDuration: number;
|
|
39
|
+
itemExitDuration: number;
|
|
40
|
+
itemEnterDuration: number;
|
|
41
|
+
heightDuration: number;
|
|
42
|
+
itemStaggerDelay: number;
|
|
43
|
+
heightStartDelay: number;
|
|
44
|
+
itemEnterStartDelay: number;
|
|
45
|
+
}
|
|
46
|
+
export declare class TooltipAnimationController {
|
|
47
|
+
private currentAnimations;
|
|
48
|
+
private timings;
|
|
49
|
+
constructor(customTimings?: Partial<AnimationTimings>);
|
|
50
|
+
/**
|
|
51
|
+
* Transición completa del tooltip con todas las animaciones
|
|
52
|
+
*/
|
|
53
|
+
transitionTooltip(params: TooltipTransitionParams): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Anima título con crossfade + rotación 3D
|
|
56
|
+
*/
|
|
57
|
+
private animateTitleCrossfade;
|
|
58
|
+
/**
|
|
59
|
+
* Anima salida de items existentes
|
|
60
|
+
*/
|
|
61
|
+
private animateItemsExit;
|
|
62
|
+
/**
|
|
63
|
+
* Anima entrada de items nuevos con stagger
|
|
64
|
+
*/
|
|
65
|
+
private animateItemsEnter;
|
|
66
|
+
/**
|
|
67
|
+
* Anima transición de height (requiere grid trick en CSS)
|
|
68
|
+
*
|
|
69
|
+
* Este método solo dispara la transición CSS cambiando el data-state.
|
|
70
|
+
* El CSS debe tener el grid trick configurado:
|
|
71
|
+
*
|
|
72
|
+
* ```css
|
|
73
|
+
* .tooltip-content-grid {
|
|
74
|
+
* display: grid;
|
|
75
|
+
* grid-template-rows: 0fr;
|
|
76
|
+
* transition: grid-template-rows 200ms;
|
|
77
|
+
* }
|
|
78
|
+
* .tooltip-content-grid[data-state="open"] {
|
|
79
|
+
* grid-template-rows: 1fr;
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
private animateHeight;
|
|
84
|
+
/**
|
|
85
|
+
* Anima cubo 3D (Enfoque A: multi-cara)
|
|
86
|
+
*/
|
|
87
|
+
animateCube(cubeEl: HTMLElement, direction: AnimationDirection, targetFace: string): Animation;
|
|
88
|
+
/**
|
|
89
|
+
* Obtiene la rotación actual del cubo desde su data-face
|
|
90
|
+
*/
|
|
91
|
+
private getCurrentCubeRotation;
|
|
92
|
+
/**
|
|
93
|
+
* Cancela todas las animaciones activas
|
|
94
|
+
*/
|
|
95
|
+
cancelAll(): void;
|
|
96
|
+
/**
|
|
97
|
+
* Finaliza todas las animaciones inmediatamente (skip to end)
|
|
98
|
+
*/
|
|
99
|
+
finishAll(): void;
|
|
100
|
+
/**
|
|
101
|
+
* Obtiene el estado actual de las animaciones
|
|
102
|
+
*/
|
|
103
|
+
getStatus(): {
|
|
104
|
+
active: number;
|
|
105
|
+
finished: number;
|
|
106
|
+
total: number;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Actualiza los timings
|
|
110
|
+
*/
|
|
111
|
+
updateTimings(newTimings: Partial<AnimationTimings>): void;
|
|
112
|
+
/**
|
|
113
|
+
* Obtiene los timings actuales
|
|
114
|
+
*/
|
|
115
|
+
getTimings(): AnimationTimings;
|
|
116
|
+
/**
|
|
117
|
+
* Destructor - limpia todas las animaciones
|
|
118
|
+
*/
|
|
119
|
+
destroy(): void;
|
|
120
|
+
}
|
|
121
|
+
export default TooltipAnimationController;
|
|
122
|
+
//# sourceMappingURL=TooltipAnimationController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipAnimationController.d.ts","sourceRoot":"","sources":["../../src/utils/TooltipAnimationController.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,0BAA0B;IACrC,OAAO,CAAC,iBAAiB,CAAmB;IAC5C,OAAO,CAAC,OAAO,CAAmB;IAElC,YAAY,aAAa,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAWpD;IAED;;OAEG;IACG,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0CtE;IAED;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAmC7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAoBxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,aAAa;IAsBrB;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,CAsB7F;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;OAEG;IACH,SAAS,IAAI,IAAI,CAQhB;IAED;;OAEG;IACH,SAAS,IAAI,IAAI,CAOhB;IAED;;OAEG;IACH,SAAS,IAAI;QACX,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CASA;IAED;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAEzD;IAED;;OAEG;IACH,UAAU,IAAI,gBAAgB,CAE7B;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAEd;CACF;AAED,eAAe,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mks2508/sidebar-headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Headless sidebar and mobile bottom navigation components for React with advanced animations, keyboard navigation, and full WAI-ARIA accessibility",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
|
-
"require": "./dist/index.
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
14
|
},
|
|
15
15
|
"./styles.css": "./dist/index.css",
|
|
16
16
|
"./mobile-optimizations.css": "./dist/MobileOptimizations.css",
|
|
@@ -28,10 +28,13 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "cd playground && vite",
|
|
30
30
|
"dev:clean": "killall -9 node || true && cd playground && vite",
|
|
31
|
-
"build": "
|
|
32
|
-
"build:watch": "
|
|
31
|
+
"build": "rolldown -c",
|
|
32
|
+
"build:watch": "rolldown -c --watch",
|
|
33
33
|
"preview": "cd playground && vite preview",
|
|
34
|
-
"typecheck": "
|
|
34
|
+
"typecheck": "mkdir -p dist && tsgo --declaration --emitDeclarationOnly --noEmit false",
|
|
35
|
+
"typecheck:watch": "mkdir -p dist && tsgo --declaration --emitDeclarationOnly --noEmit false --watch",
|
|
36
|
+
"lint": "oxlint",
|
|
37
|
+
"lint:fix": "oxlint --fix",
|
|
35
38
|
"prepublishOnly": "bun run build && bun run typecheck"
|
|
36
39
|
},
|
|
37
40
|
"keywords": [
|
|
@@ -65,7 +68,8 @@
|
|
|
65
68
|
"homepage": "https://github.com/mks2508/sidebar-headless#readme",
|
|
66
69
|
"peerDependencies": {
|
|
67
70
|
"react": ">=18.0.0",
|
|
68
|
-
"react-dom": ">=18.0.0"
|
|
71
|
+
"react-dom": ">=18.0.0",
|
|
72
|
+
"lucide-react": ">=0.400.0"
|
|
69
73
|
},
|
|
70
74
|
"peerDependenciesMeta": {
|
|
71
75
|
"@liquid-svg-glass/core": {
|
|
@@ -95,8 +99,10 @@
|
|
|
95
99
|
"class-variance-authority": "^0.7.1",
|
|
96
100
|
"lucide-react": "^0.545.0",
|
|
97
101
|
"motion": "^12.23.24",
|
|
102
|
+
"oxlint": "^1.40.0",
|
|
98
103
|
"react": "^19",
|
|
99
104
|
"react-dom": "^19",
|
|
105
|
+
"rolldown": "^1.0.0-beta.60",
|
|
100
106
|
"tailwindcss": "^4.1.11",
|
|
101
107
|
"tsup": "^8.5.1",
|
|
102
108
|
"tw-animate-css": "^1.4.0",
|