@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.
Files changed (130) hide show
  1. package/CHANGELOG.md +53 -53
  2. package/LICENSE +21 -21
  3. package/README.md +165 -165
  4. package/dist/components/BottomNavBar/MobileBottomNav.d.ts +65 -0
  5. package/dist/components/BottomNavBar/MobileBottomNav.d.ts.map +1 -0
  6. package/dist/components/BottomNavBar/MobileBottomNav.styles.d.ts +94 -0
  7. package/dist/components/BottomNavBar/MobileBottomNav.styles.d.ts.map +1 -0
  8. package/dist/components/BottomNavBar/index.d.ts +10 -0
  9. package/dist/components/BottomNavBar/index.d.ts.map +1 -0
  10. package/dist/components/BottomNavBar/types.d.ts +363 -0
  11. package/dist/components/BottomNavBar/types.d.ts.map +1 -0
  12. package/dist/components/BottomNavBar/useIOSSafariFix.d.ts +74 -0
  13. package/dist/components/BottomNavBar/useIOSSafariFix.d.ts.map +1 -0
  14. package/dist/components/Sidebar/Sidebar.constants.d.ts +285 -0
  15. package/dist/components/Sidebar/Sidebar.constants.d.ts.map +1 -0
  16. package/dist/components/Sidebar/Sidebar.d.ts +80 -0
  17. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
  18. package/dist/components/Sidebar/Sidebar.styles.d.ts +77 -0
  19. package/dist/components/Sidebar/Sidebar.styles.d.ts.map +1 -0
  20. package/dist/components/Sidebar/Sidebar.types.d.ts +638 -0
  21. package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -0
  22. package/dist/components/Sidebar/SidebarContent.d.ts +46 -0
  23. package/dist/components/Sidebar/SidebarContent.d.ts.map +1 -0
  24. package/dist/components/Sidebar/SidebarContext.d.ts +87 -0
  25. package/dist/components/Sidebar/SidebarContext.d.ts.map +1 -0
  26. package/dist/components/Sidebar/SidebarFluidIndicator.d.ts +37 -0
  27. package/dist/components/Sidebar/SidebarFluidIndicator.d.ts.map +1 -0
  28. package/dist/components/Sidebar/SidebarIndicator.d.ts +59 -0
  29. package/dist/components/Sidebar/SidebarIndicator.d.ts.map +1 -0
  30. package/dist/components/Sidebar/SidebarItem.d.ts +82 -0
  31. package/dist/components/Sidebar/SidebarItem.d.ts.map +1 -0
  32. package/dist/components/Sidebar/SidebarNav.d.ts +48 -0
  33. package/dist/components/Sidebar/SidebarNav.d.ts.map +1 -0
  34. package/dist/components/Sidebar/SidebarSafeArea.d.ts +56 -0
  35. package/dist/components/Sidebar/SidebarSafeArea.d.ts.map +1 -0
  36. package/dist/components/Sidebar/SidebarSubContent.d.ts +10 -0
  37. package/dist/components/Sidebar/SidebarSubContent.d.ts.map +1 -0
  38. package/dist/components/Sidebar/SidebarSubLink.d.ts +18 -0
  39. package/dist/components/Sidebar/SidebarSubLink.d.ts.map +1 -0
  40. package/dist/components/Sidebar/SidebarToggle.d.ts +52 -0
  41. package/dist/components/Sidebar/SidebarToggle.d.ts.map +1 -0
  42. package/dist/components/Sidebar/SidebarTooltip.d.ts +26 -0
  43. package/dist/components/Sidebar/SidebarTooltip.d.ts.map +1 -0
  44. package/dist/components/Sidebar/TooltipTitle3D.d.ts +42 -0
  45. package/dist/components/Sidebar/TooltipTitle3D.d.ts.map +1 -0
  46. package/dist/components/Sidebar/TooltipTitle3DCrossfade.d.ts +46 -0
  47. package/dist/components/Sidebar/TooltipTitle3DCrossfade.d.ts.map +1 -0
  48. package/dist/components/Sidebar/TooltipTitleCylinder.d.ts +9 -0
  49. package/dist/components/Sidebar/TooltipTitleCylinder.d.ts.map +1 -0
  50. package/dist/components/Sidebar/hooks/useSidebarContext.d.ts +48 -0
  51. package/dist/components/Sidebar/hooks/useSidebarContext.d.ts.map +1 -0
  52. package/dist/components/Sidebar/hooks/useSidebarIndicator.d.ts +72 -0
  53. package/dist/components/Sidebar/hooks/useSidebarIndicator.d.ts.map +1 -0
  54. package/dist/components/Sidebar/hooks/useSidebarKeyboard.d.ts +51 -0
  55. package/dist/components/Sidebar/hooks/useSidebarKeyboard.d.ts.map +1 -0
  56. package/dist/components/Sidebar/hooks/useSubContent.d.ts +7 -0
  57. package/dist/components/Sidebar/hooks/useSubContent.d.ts.map +1 -0
  58. package/dist/components/Sidebar/hooks/useTitleHistory.d.ts +41 -0
  59. package/dist/components/Sidebar/hooks/useTitleHistory.d.ts.map +1 -0
  60. package/dist/components/Sidebar/hooks/useTooltipDirection.d.ts +29 -0
  61. package/dist/components/Sidebar/hooks/useTooltipDirection.d.ts.map +1 -0
  62. package/dist/components/Sidebar/hooks/useTooltipTransition.d.ts +60 -0
  63. package/dist/components/Sidebar/hooks/useTooltipTransition.d.ts.map +1 -0
  64. package/dist/components/Sidebar/index.d.ts +163 -0
  65. package/dist/components/Sidebar/index.d.ts.map +1 -0
  66. package/dist/components/Sidebar/sidebar-defaults.d.ts +54 -0
  67. package/dist/components/Sidebar/sidebar-defaults.d.ts.map +1 -0
  68. package/dist/components/animate-ui/components/base/switch.d.ts +11 -0
  69. package/dist/components/animate-ui/components/base/switch.d.ts.map +1 -0
  70. package/dist/components/animate-ui/primitives/base/switch.d.ts +23 -0
  71. package/dist/components/animate-ui/primitives/base/switch.d.ts.map +1 -0
  72. package/dist/components/fluid-hover-indicator-v2.d.ts +46 -0
  73. package/dist/components/fluid-hover-indicator-v2.d.ts.map +1 -0
  74. package/dist/components/fluid-hover-indicator.d.ts +28 -0
  75. package/dist/components/fluid-hover-indicator.d.ts.map +1 -0
  76. package/dist/components/ui/TextCylinder.d.ts +21 -0
  77. package/dist/components/ui/TextCylinder.d.ts.map +1 -0
  78. package/dist/components/ui/button.d.ts +11 -0
  79. package/dist/components/ui/button.d.ts.map +1 -0
  80. package/dist/components/ui/card.d.ts +10 -0
  81. package/dist/components/ui/card.d.ts.map +1 -0
  82. package/dist/components/ui/custom-icon.d.ts +45 -0
  83. package/dist/components/ui/custom-icon.d.ts.map +1 -0
  84. package/dist/components/ui/dotted-glow-background.d.ts +42 -0
  85. package/dist/components/ui/dotted-glow-background.d.ts.map +1 -0
  86. package/dist/components/ui/input.d.ts +4 -0
  87. package/dist/components/ui/input.d.ts.map +1 -0
  88. package/dist/components/ui/label.d.ts +5 -0
  89. package/dist/components/ui/label.d.ts.map +1 -0
  90. package/dist/components/ui/optimized-image.d.ts +12 -0
  91. package/dist/components/ui/optimized-image.d.ts.map +1 -0
  92. package/dist/components/ui/select.d.ts +16 -0
  93. package/dist/components/ui/select.d.ts.map +1 -0
  94. package/dist/components/ui/slider.d.ts +5 -0
  95. package/dist/components/ui/slider.d.ts.map +1 -0
  96. package/dist/components/ui/textarea.d.ts +4 -0
  97. package/dist/components/ui/textarea.d.ts.map +1 -0
  98. package/dist/{index.css → dist/index.css} +945 -908
  99. package/dist/dist/index.css.map +1 -0
  100. package/dist/hooks/use-controlled-state.d.ts +9 -0
  101. package/dist/hooks/use-controlled-state.d.ts.map +1 -0
  102. package/dist/hooks/use-fluid-animation.d.ts +18 -0
  103. package/dist/hooks/use-fluid-animation.d.ts.map +1 -0
  104. package/dist/hooks/use-liquid-glass.d.ts +40 -0
  105. package/dist/hooks/use-liquid-glass.d.ts.map +1 -0
  106. package/dist/hooks/use-sidebar-liquid-glass.d.ts +48 -0
  107. package/dist/hooks/use-sidebar-liquid-glass.d.ts.map +1 -0
  108. package/dist/hooks/use-text-cylinder.d.ts +67 -0
  109. package/dist/hooks/use-text-cylinder.d.ts.map +1 -0
  110. package/dist/index.cjs +14087 -0
  111. package/dist/index.cjs.map +1 -0
  112. package/dist/index.d.ts +10 -2231
  113. package/dist/index.d.ts.map +1 -0
  114. package/dist/index.js +13132 -52336
  115. package/dist/index.js.map +1 -1
  116. package/dist/lib/get-strict-context.d.ts +10 -0
  117. package/dist/lib/get-strict-context.d.ts.map +1 -0
  118. package/dist/lib/liquid-glass-presets.d.ts +43 -0
  119. package/dist/lib/liquid-glass-presets.d.ts.map +1 -0
  120. package/dist/lib/utils.d.ts +3 -0
  121. package/dist/lib/utils.d.ts.map +1 -0
  122. package/dist/types/sidebar-minimal.d.ts +21 -0
  123. package/dist/types/sidebar-minimal.d.ts.map +1 -0
  124. package/dist/utils/TooltipAnimationController.d.ts +122 -0
  125. package/dist/utils/TooltipAnimationController.d.ts.map +1 -0
  126. package/package.json +12 -6
  127. package/dist/MobileOptimizations.css +0 -570
  128. package/dist/index.css.map +0 -1
  129. package/dist/index.d.cts +0 -2235
  130. 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,3 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -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.2.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.js"
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": "tsup",
32
- "build:watch": "tsup --watch",
31
+ "build": "rolldown -c",
32
+ "build:watch": "rolldown -c --watch",
33
33
  "preview": "cd playground && vite preview",
34
- "typecheck": "tsc --noEmit",
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",