@brightlocal/ui-components 0.1.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 (320) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +349 -0
  3. package/dist/accordion.cjs +1 -0
  4. package/dist/accordion.d.ts +32 -0
  5. package/dist/accordion.d.ts.map +1 -0
  6. package/dist/accordion.js +107 -0
  7. package/dist/alert-dialog.cjs +1 -0
  8. package/dist/alert-dialog.d.ts +15 -0
  9. package/dist/alert-dialog.d.ts.map +1 -0
  10. package/dist/alert-dialog.js +146 -0
  11. package/dist/alert.cjs +1 -0
  12. package/dist/alert.d.ts +16 -0
  13. package/dist/alert.d.ts.map +1 -0
  14. package/dist/alert.js +174 -0
  15. package/dist/aspect-ratio.cjs +1 -0
  16. package/dist/aspect-ratio.d.ts +10 -0
  17. package/dist/aspect-ratio.d.ts.map +1 -0
  18. package/dist/aspect-ratio.js +22 -0
  19. package/dist/avatar.cjs +1 -0
  20. package/dist/avatar.d.ts +11 -0
  21. package/dist/avatar.d.ts.map +1 -0
  22. package/dist/avatar.js +46 -0
  23. package/dist/badge.cjs +1 -0
  24. package/dist/badge.d.ts +19 -0
  25. package/dist/badge.d.ts.map +1 -0
  26. package/dist/badge.js +50 -0
  27. package/dist/blocks/data-table.cjs +1 -0
  28. package/dist/blocks/data-table.d.ts +303 -0
  29. package/dist/blocks/data-table.d.ts.map +1 -0
  30. package/dist/blocks/data-table.js +555 -0
  31. package/dist/blocks/sidebar.cjs +1 -0
  32. package/dist/blocks/sidebar.d.ts +744 -0
  33. package/dist/blocks/sidebar.d.ts.map +1 -0
  34. package/dist/blocks/sidebar.js +839 -0
  35. package/dist/breadcrumb.cjs +1 -0
  36. package/dist/breadcrumb.d.ts +12 -0
  37. package/dist/breadcrumb.d.ts.map +1 -0
  38. package/dist/breadcrumb.js +102 -0
  39. package/dist/button.cjs +1 -0
  40. package/dist/button.d.ts +73 -0
  41. package/dist/button.d.ts.map +1 -0
  42. package/dist/button.js +195 -0
  43. package/dist/calendar.cjs +1 -0
  44. package/dist/calendar.d.ts +28 -0
  45. package/dist/calendar.d.ts.map +1 -0
  46. package/dist/calendar.js +191 -0
  47. package/dist/card.cjs +1 -0
  48. package/dist/card.d.ts +28 -0
  49. package/dist/card.d.ts.map +1 -0
  50. package/dist/card.js +131 -0
  51. package/dist/carousel.cjs +1 -0
  52. package/dist/carousel.d.ts +21 -0
  53. package/dist/carousel.d.ts.map +1 -0
  54. package/dist/carousel.js +185 -0
  55. package/dist/centred-layout.cjs +1 -0
  56. package/dist/centred-layout.d.ts +49 -0
  57. package/dist/centred-layout.d.ts.map +1 -0
  58. package/dist/centred-layout.js +35 -0
  59. package/dist/chart.cjs +10 -0
  60. package/dist/chart.d.ts +83 -0
  61. package/dist/chart.d.ts.map +1 -0
  62. package/dist/chart.js +254 -0
  63. package/dist/checkbox.cjs +1 -0
  64. package/dist/checkbox.d.ts +15 -0
  65. package/dist/checkbox.d.ts.map +1 -0
  66. package/dist/checkbox.js +96 -0
  67. package/dist/collapsible.cjs +1 -0
  68. package/dist/collapsible.d.ts +18 -0
  69. package/dist/collapsible.d.ts.map +1 -0
  70. package/dist/collapsible.js +58 -0
  71. package/dist/combobox.cjs +1 -0
  72. package/dist/combobox.d.ts +65 -0
  73. package/dist/combobox.d.ts.map +1 -0
  74. package/dist/combobox.js +203 -0
  75. package/dist/command.cjs +1 -0
  76. package/dist/command.d.ts +44 -0
  77. package/dist/command.d.ts.map +1 -0
  78. package/dist/command.js +166 -0
  79. package/dist/context-menu.cjs +1 -0
  80. package/dist/context-menu.d.ts +42 -0
  81. package/dist/context-menu.d.ts.map +1 -0
  82. package/dist/context-menu.js +226 -0
  83. package/dist/date-picker.cjs +1 -0
  84. package/dist/date-picker.d.ts +54 -0
  85. package/dist/date-picker.d.ts.map +1 -0
  86. package/dist/date-picker.js +95 -0
  87. package/dist/dialog.cjs +1 -0
  88. package/dist/dialog.d.ts +20 -0
  89. package/dist/dialog.d.ts.map +1 -0
  90. package/dist/dialog.js +130 -0
  91. package/dist/drawer.cjs +1 -0
  92. package/dist/drawer.d.ts +22 -0
  93. package/dist/drawer.d.ts.map +1 -0
  94. package/dist/drawer.js +149 -0
  95. package/dist/dropdown-menu.cjs +1 -0
  96. package/dist/dropdown-menu.d.ts +253 -0
  97. package/dist/dropdown-menu.d.ts.map +1 -0
  98. package/dist/dropdown-menu.js +325 -0
  99. package/dist/field.cjs +1 -0
  100. package/dist/field.d.ts +21 -0
  101. package/dist/field.d.ts.map +1 -0
  102. package/dist/field.js +148 -0
  103. package/dist/global-layout.cjs +1 -0
  104. package/dist/global-layout.d.ts +60 -0
  105. package/dist/global-layout.d.ts.map +1 -0
  106. package/dist/global-layout.js +87 -0
  107. package/dist/hooks/use-mobile.cjs +1 -0
  108. package/dist/hooks/use-mobile.d.ts +2 -0
  109. package/dist/hooks/use-mobile.d.ts.map +1 -0
  110. package/dist/hooks/use-mobile.js +16 -0
  111. package/dist/hover-card.cjs +1 -0
  112. package/dist/hover-card.d.ts +43 -0
  113. package/dist/hover-card.d.ts.map +1 -0
  114. package/dist/hover-card.js +71 -0
  115. package/dist/index.cjs +1 -0
  116. package/dist/index.d.ts +61 -0
  117. package/dist/index.d.ts.map +1 -0
  118. package/dist/index.js +412 -0
  119. package/dist/input-base.cjs +1 -0
  120. package/dist/input-base.d.ts +28 -0
  121. package/dist/input-base.d.ts.map +1 -0
  122. package/dist/input-base.js +56 -0
  123. package/dist/input-group.cjs +1 -0
  124. package/dist/input-group.d.ts +26 -0
  125. package/dist/input-group.d.ts.map +1 -0
  126. package/dist/input-group.js +116 -0
  127. package/dist/input-otp.cjs +1 -0
  128. package/dist/input-otp.d.ts +45 -0
  129. package/dist/input-otp.d.ts.map +1 -0
  130. package/dist/input-otp.js +186 -0
  131. package/dist/input-password.cjs +1 -0
  132. package/dist/input-password.d.ts +38 -0
  133. package/dist/input-password.d.ts.map +1 -0
  134. package/dist/input-password.js +101 -0
  135. package/dist/input.cjs +1 -0
  136. package/dist/input.d.ts +32 -0
  137. package/dist/input.d.ts.map +1 -0
  138. package/dist/input.js +146 -0
  139. package/dist/label.cjs +1 -0
  140. package/dist/label.d.ts +12 -0
  141. package/dist/label.d.ts.map +1 -0
  142. package/dist/label.js +34 -0
  143. package/dist/lib/utils.cjs +1 -0
  144. package/dist/lib/utils.d.ts +3 -0
  145. package/dist/lib/utils.d.ts.map +1 -0
  146. package/dist/lib/utils.js +8 -0
  147. package/dist/link.cjs +1 -0
  148. package/dist/link.d.ts +29 -0
  149. package/dist/link.d.ts.map +1 -0
  150. package/dist/link.figma.d.ts +2 -0
  151. package/dist/link.figma.d.ts.map +1 -0
  152. package/dist/link.js +71 -0
  153. package/dist/logo.cjs +1 -0
  154. package/dist/logo.d.ts +25 -0
  155. package/dist/logo.d.ts.map +1 -0
  156. package/dist/logo.js +71 -0
  157. package/dist/menubar.cjs +1 -0
  158. package/dist/menubar.d.ts +106 -0
  159. package/dist/menubar.d.ts.map +1 -0
  160. package/dist/menubar.js +270 -0
  161. package/dist/navigation-menu.cjs +1 -0
  162. package/dist/navigation-menu.d.ts +108 -0
  163. package/dist/navigation-menu.d.ts.map +1 -0
  164. package/dist/navigation-menu.js +175 -0
  165. package/dist/pagination.cjs +1 -0
  166. package/dist/pagination.d.ts +81 -0
  167. package/dist/pagination.d.ts.map +1 -0
  168. package/dist/pagination.js +216 -0
  169. package/dist/popover.cjs +1 -0
  170. package/dist/popover.d.ts +8 -0
  171. package/dist/popover.d.ts.map +1 -0
  172. package/dist/popover.js +44 -0
  173. package/dist/progress.cjs +1 -0
  174. package/dist/progress.d.ts +29 -0
  175. package/dist/progress.d.ts.map +1 -0
  176. package/dist/progress.js +64 -0
  177. package/dist/radio-group.cjs +1 -0
  178. package/dist/radio-group.d.ts +33 -0
  179. package/dist/radio-group.d.ts.map +1 -0
  180. package/dist/radio-group.js +193 -0
  181. package/dist/rating.cjs +1 -0
  182. package/dist/rating.d.ts +22 -0
  183. package/dist/rating.d.ts.map +1 -0
  184. package/dist/rating.js +51 -0
  185. package/dist/resizable.cjs +1 -0
  186. package/dist/resizable.d.ts +14 -0
  187. package/dist/resizable.d.ts.map +1 -0
  188. package/dist/resizable.js +46 -0
  189. package/dist/scroll-area.cjs +1 -0
  190. package/dist/scroll-area.d.ts +12 -0
  191. package/dist/scroll-area.d.ts.map +1 -0
  192. package/dist/scroll-area.js +67 -0
  193. package/dist/select.cjs +1 -0
  194. package/dist/select.d.ts +77 -0
  195. package/dist/select.d.ts.map +1 -0
  196. package/dist/select.js +259 -0
  197. package/dist/separator.cjs +1 -0
  198. package/dist/separator.d.ts +14 -0
  199. package/dist/separator.d.ts.map +1 -0
  200. package/dist/separator.js +43 -0
  201. package/dist/sheet.cjs +1 -0
  202. package/dist/sheet.d.ts +38 -0
  203. package/dist/sheet.d.ts.map +1 -0
  204. package/dist/sheet.js +190 -0
  205. package/dist/skeleton.cjs +1 -0
  206. package/dist/skeleton.d.ts +5 -0
  207. package/dist/skeleton.d.ts.map +1 -0
  208. package/dist/skeleton.js +15 -0
  209. package/dist/slider.cjs +1 -0
  210. package/dist/slider.d.ts +19 -0
  211. package/dist/slider.d.ts.map +1 -0
  212. package/dist/slider.js +69 -0
  213. package/dist/sonner.cjs +1 -0
  214. package/dist/sonner.d.ts +188 -0
  215. package/dist/sonner.d.ts.map +1 -0
  216. package/dist/sonner.js +150 -0
  217. package/dist/split-layout.cjs +1 -0
  218. package/dist/split-layout.d.ts +42 -0
  219. package/dist/split-layout.d.ts.map +1 -0
  220. package/dist/split-layout.js +108 -0
  221. package/dist/switch.cjs +1 -0
  222. package/dist/switch.d.ts +43 -0
  223. package/dist/switch.d.ts.map +1 -0
  224. package/dist/switch.figma.d.ts +2 -0
  225. package/dist/switch.figma.d.ts.map +1 -0
  226. package/dist/switch.js +110 -0
  227. package/dist/table.cjs +1 -0
  228. package/dist/table.d.ts +95 -0
  229. package/dist/table.d.ts.map +1 -0
  230. package/dist/table.js +164 -0
  231. package/dist/tabs.cjs +1 -0
  232. package/dist/tabs.d.ts +29 -0
  233. package/dist/tabs.d.ts.map +1 -0
  234. package/dist/tabs.js +96 -0
  235. package/dist/textarea.cjs +1 -0
  236. package/dist/textarea.d.ts +23 -0
  237. package/dist/textarea.d.ts.map +1 -0
  238. package/dist/textarea.js +47 -0
  239. package/dist/toggle-group.cjs +1 -0
  240. package/dist/toggle-group.d.ts +25 -0
  241. package/dist/toggle-group.d.ts.map +1 -0
  242. package/dist/toggle-group.js +74 -0
  243. package/dist/toggle.cjs +1 -0
  244. package/dist/toggle.d.ts +44 -0
  245. package/dist/toggle.d.ts.map +1 -0
  246. package/dist/toggle.figma.d.ts +2 -0
  247. package/dist/toggle.figma.d.ts.map +1 -0
  248. package/dist/toggle.js +57 -0
  249. package/dist/tooltip.cjs +1 -0
  250. package/dist/tooltip.d.ts +66 -0
  251. package/dist/tooltip.d.ts.map +1 -0
  252. package/dist/tooltip.js +78 -0
  253. package/package.json +184 -0
  254. package/src/blocks/data-table.tsx +1166 -0
  255. package/src/blocks/sidebar.tsx +1830 -0
  256. package/src/components/.gitkeep +0 -0
  257. package/src/components/accordion.tsx +142 -0
  258. package/src/components/alert-dialog.tsx +157 -0
  259. package/src/components/alert.tsx +199 -0
  260. package/src/components/aspect-ratio.tsx +30 -0
  261. package/src/components/avatar.tsx +56 -0
  262. package/src/components/badge.tsx +72 -0
  263. package/src/components/breadcrumb.tsx +109 -0
  264. package/src/components/button.tsx +296 -0
  265. package/src/components/calendar.tsx +234 -0
  266. package/src/components/card.tsx +158 -0
  267. package/src/components/carousel.tsx +256 -0
  268. package/src/components/centred-layout.tsx +91 -0
  269. package/src/components/chart.tsx +456 -0
  270. package/src/components/checkbox.tsx +132 -0
  271. package/src/components/collapsible.tsx +68 -0
  272. package/src/components/combobox.tsx +321 -0
  273. package/src/components/command.tsx +220 -0
  274. package/src/components/context-menu.tsx +305 -0
  275. package/src/components/date-picker.tsx +155 -0
  276. package/src/components/dialog.tsx +152 -0
  277. package/src/components/drawer.tsx +168 -0
  278. package/src/components/dropdown-menu.tsx +575 -0
  279. package/src/components/field.tsx +155 -0
  280. package/src/components/global-layout.tsx +153 -0
  281. package/src/components/hover-card.tsx +121 -0
  282. package/src/components/input-base.tsx +86 -0
  283. package/src/components/input-group.tsx +158 -0
  284. package/src/components/input-otp.tsx +327 -0
  285. package/src/components/input-password.tsx +191 -0
  286. package/src/components/input.tsx +220 -0
  287. package/src/components/label.tsx +42 -0
  288. package/src/components/link.figma.tsx +71 -0
  289. package/src/components/link.tsx +105 -0
  290. package/src/components/logo.tsx +97 -0
  291. package/src/components/menubar.tsx +379 -0
  292. package/src/components/navigation-menu.tsx +324 -0
  293. package/src/components/pagination.tsx +368 -0
  294. package/src/components/popover.tsx +46 -0
  295. package/src/components/progress.tsx +100 -0
  296. package/src/components/radio-group.tsx +281 -0
  297. package/src/components/rating.tsx +87 -0
  298. package/src/components/resizable.tsx +66 -0
  299. package/src/components/scroll-area.tsx +72 -0
  300. package/src/components/select.tsx +442 -0
  301. package/src/components/separator.tsx +53 -0
  302. package/src/components/sheet.tsx +220 -0
  303. package/src/components/skeleton.tsx +17 -0
  304. package/src/components/slider.tsx +86 -0
  305. package/src/components/sonner.tsx +396 -0
  306. package/src/components/split-layout.tsx +155 -0
  307. package/src/components/switch.figma.tsx +115 -0
  308. package/src/components/switch.tsx +173 -0
  309. package/src/components/table.tsx +277 -0
  310. package/src/components/tabs.tsx +142 -0
  311. package/src/components/textarea.tsx +77 -0
  312. package/src/components/toggle-group.tsx +109 -0
  313. package/src/components/toggle.figma.tsx +81 -0
  314. package/src/components/toggle.tsx +103 -0
  315. package/src/components/tooltip.tsx +156 -0
  316. package/src/hooks/.gitkeep +0 -0
  317. package/src/hooks/use-mobile.ts +21 -0
  318. package/src/index.ts +67 -0
  319. package/src/lib/utils.ts +6 -0
  320. package/src/types/external-modules.d.ts +16 -0
@@ -0,0 +1,744 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Button } from '../components/button';
3
+ import { Input } from '../components/input';
4
+ import { Separator } from '../components/separator';
5
+ import { TooltipContent } from '../components/tooltip';
6
+ import * as React from "react";
7
+ /**
8
+ * Sidebar position variants
9
+ */
10
+ export declare enum SidebarSide {
11
+ /** Sidebar positioned on the left */
12
+ LEFT = "left"
13
+ }
14
+ /**
15
+ * Sidebar visual variants
16
+ */
17
+ export declare enum SidebarVariant {
18
+ /** Standard sidebar attached to edge */
19
+ SIDEBAR = "sidebar"
20
+ }
21
+ /**
22
+ * Sidebar collapsible behavior variants
23
+ */
24
+ export declare enum SidebarCollapsible {
25
+ /** Slides off canvas when collapsed */
26
+ OFFCANVAS = "offcanvas",
27
+ /** Collapses to icon-only mode */
28
+ ICON = "icon",
29
+ /** Non-collapsible sidebar */
30
+ NONE = "none"
31
+ }
32
+ /**
33
+ * Sidebar group label size variants
34
+ */
35
+ export declare enum SidebarGroupLabelSize {
36
+ /** Default size */
37
+ DEFAULT = "default",
38
+ /** Small size */
39
+ SM = "sm",
40
+ /** Extra small size */
41
+ XS = "xs"
42
+ }
43
+ /**
44
+ * Sidebar group label variants
45
+ */
46
+ export declare enum SidebarGroupLabelVariant {
47
+ /** Static label */
48
+ DEFAULT = "default",
49
+ /** Collapsible label with chevron */
50
+ COLLAPSIBLE = "collapsible",
51
+ /** Action label with plus icon */
52
+ ACTION = "action"
53
+ }
54
+ /**
55
+ * Sidebar menu button variants
56
+ */
57
+ export declare enum SidebarMenuButtonVariant {
58
+ /** Basic menu item with icon and text */
59
+ SIMPLE = "simple",
60
+ /** Has a chevron indicator that rotates when open */
61
+ COLLAPSIBLE = "collapsible",
62
+ /** Has action menu (dots) on hover */
63
+ DROPDOWN = "dropdown",
64
+ /** Has a chevron for tree navigation */
65
+ TREE = "tree",
66
+ /** Has a number badge on the right */
67
+ BADGE = "badge",
68
+ /** Larger icon with title and subtitle */
69
+ BIG_ICON = "bigIcon",
70
+ /** Has a checkbox indicator */
71
+ CHECKBOX = "checkbox"
72
+ }
73
+ /**
74
+ * Sidebar menu button size variants
75
+ */
76
+ export declare enum SidebarMenuButtonSize {
77
+ /** Default size (32px height) */
78
+ DEFAULT = "default",
79
+ /** Small size (28px height) */
80
+ SM = "sm",
81
+ /** Large size (48px height) */
82
+ LG = "lg"
83
+ }
84
+ /**
85
+ * Sidebar menu sub variants
86
+ */
87
+ export declare enum SidebarMenuSubVariant {
88
+ /** No border styling */
89
+ DEFAULT = "default",
90
+ /** Left border indicator */
91
+ BORDER = "border",
92
+ /** Indented without border */
93
+ INDENT = "indent"
94
+ }
95
+ /**
96
+ * Sidebar menu sub button size variants
97
+ */
98
+ export declare enum SidebarMenuSubButtonSize {
99
+ /** Small size */
100
+ SM = "sm",
101
+ /** Medium size */
102
+ MD = "md"
103
+ }
104
+ /**
105
+ * Sidebar collapse icon type variants
106
+ */
107
+ export declare enum SidebarCollapseIconType {
108
+ /** Caret/chevron right icon */
109
+ CARET = "caret",
110
+ /** Horizontal chevron */
111
+ HORIZONTAL = "horizontal",
112
+ /** Vertical chevron */
113
+ VERTICAL = "vertical",
114
+ /** Up/down chevrons */
115
+ UP_DOWN = "upDown",
116
+ /** Plus/minus icons */
117
+ PLUS_MINUS = "plusMinus",
118
+ /** Ellipsis/dots icon */
119
+ DOTS = "dots"
120
+ }
121
+ type SidebarContext = {
122
+ state: "expanded" | "collapsed";
123
+ open: boolean;
124
+ setOpen: (open: boolean) => void;
125
+ openMobile: boolean;
126
+ setOpenMobile: (open: boolean) => void;
127
+ isMobile: boolean;
128
+ toggleSidebar: () => void;
129
+ };
130
+ declare const SidebarContext: React.Context<SidebarContext | null>;
131
+ declare function useSidebar(): SidebarContext;
132
+ /**
133
+ * Props for the SidebarProvider component
134
+ */
135
+ interface SidebarProviderProps extends React.ComponentProps<"div"> {
136
+ /**
137
+ * Data hook for automated testing (REQUIRED)
138
+ * Used to identify component in tests and E2E automation
139
+ */
140
+ dataHook: string;
141
+ /**
142
+ * Tracking element identifier for analytics
143
+ * Defaults to "sidebar-provider" if not provided
144
+ */
145
+ trackingEl?: string;
146
+ /**
147
+ * Tracking label for analytics context
148
+ */
149
+ trackingLabel?: string;
150
+ /**
151
+ * Default open state for uncontrolled usage
152
+ * @default true
153
+ */
154
+ defaultOpen?: boolean;
155
+ /**
156
+ * Controlled open state
157
+ */
158
+ open?: boolean;
159
+ /**
160
+ * Callback when open state changes
161
+ */
162
+ onOpenChange?: (open: boolean) => void;
163
+ }
164
+ declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<SidebarProviderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
165
+ /**
166
+ * Props for the Sidebar component
167
+ */
168
+ interface SidebarProps extends React.ComponentProps<"div"> {
169
+ /**
170
+ * Data hook for automated testing (REQUIRED)
171
+ * Used to identify component in tests and E2E automation
172
+ */
173
+ dataHook: string;
174
+ /**
175
+ * Tracking element identifier for analytics
176
+ * Defaults to "sidebar" if not provided
177
+ */
178
+ trackingEl?: string;
179
+ /**
180
+ * Tracking label for analytics context
181
+ */
182
+ trackingLabel?: string;
183
+ /**
184
+ * Position of the sidebar
185
+ * @default SidebarSide.LEFT
186
+ */
187
+ side?: SidebarSide;
188
+ /**
189
+ * Visual variant of the sidebar
190
+ * @default SidebarVariant.SIDEBAR
191
+ */
192
+ variant?: SidebarVariant;
193
+ /**
194
+ * Collapsible behavior
195
+ * @default SidebarCollapsible.OFFCANVAS
196
+ */
197
+ collapsible?: SidebarCollapsible;
198
+ }
199
+ declare const Sidebar: React.ForwardRefExoticComponent<Omit<SidebarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
200
+ /**
201
+ * Props for the SidebarTrigger component
202
+ */
203
+ interface SidebarTriggerProps extends React.ComponentProps<typeof Button> {
204
+ /**
205
+ * Data hook for automated testing (REQUIRED)
206
+ * Used to identify component in tests and E2E automation
207
+ */
208
+ dataHook: string;
209
+ /**
210
+ * Tracking element identifier for analytics
211
+ * Defaults to "sidebar-trigger" if not provided
212
+ */
213
+ trackingEl?: string;
214
+ /**
215
+ * Tracking label for analytics context
216
+ */
217
+ trackingLabel?: string;
218
+ }
219
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<SidebarTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
220
+ /**
221
+ * Props for the SidebarRail component
222
+ */
223
+ interface SidebarRailProps extends React.ComponentProps<"button"> {
224
+ /**
225
+ * Data hook for automated testing (REQUIRED)
226
+ * Used to identify component in tests and E2E automation
227
+ */
228
+ dataHook: string;
229
+ /**
230
+ * Tracking element identifier for analytics
231
+ * Defaults to "sidebar-rail" if not provided
232
+ */
233
+ trackingEl?: string;
234
+ /**
235
+ * Tracking label for analytics context
236
+ */
237
+ trackingLabel?: string;
238
+ }
239
+ declare const SidebarRail: React.ForwardRefExoticComponent<Omit<SidebarRailProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
240
+ /**
241
+ * Props for the SidebarInset component
242
+ */
243
+ interface SidebarInsetProps extends React.ComponentProps<"main"> {
244
+ /**
245
+ * Data hook for automated testing (REQUIRED)
246
+ * Used to identify component in tests and E2E automation
247
+ */
248
+ dataHook: string;
249
+ /**
250
+ * Tracking element identifier for analytics
251
+ * Defaults to "sidebar-inset" if not provided
252
+ */
253
+ trackingEl?: string;
254
+ /**
255
+ * Tracking label for analytics context
256
+ */
257
+ trackingLabel?: string;
258
+ }
259
+ declare const SidebarInset: React.ForwardRefExoticComponent<Omit<SidebarInsetProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
260
+ /**
261
+ * Props for the SidebarInput component
262
+ */
263
+ interface SidebarInputProps extends React.ComponentProps<typeof Input> {
264
+ /**
265
+ * Data hook for automated testing (REQUIRED)
266
+ * Used to identify component in tests and E2E automation
267
+ */
268
+ dataHook: string;
269
+ /**
270
+ * Tracking element identifier for analytics
271
+ * Defaults to "sidebar-input" if not provided
272
+ */
273
+ trackingEl?: string;
274
+ /**
275
+ * Tracking label for analytics context
276
+ */
277
+ trackingLabel?: string;
278
+ }
279
+ declare const SidebarInput: React.ForwardRefExoticComponent<Omit<SidebarInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
280
+ /**
281
+ * Props for the SidebarHeader component
282
+ */
283
+ interface SidebarHeaderProps extends React.ComponentProps<"div"> {
284
+ /**
285
+ * Data hook for automated testing (REQUIRED)
286
+ * Used to identify component in tests and E2E automation
287
+ */
288
+ dataHook: string;
289
+ /**
290
+ * Tracking element identifier for analytics
291
+ * Defaults to "sidebar-header" if not provided
292
+ */
293
+ trackingEl?: string;
294
+ /**
295
+ * Tracking label for analytics context
296
+ */
297
+ trackingLabel?: string;
298
+ }
299
+ declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<SidebarHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
300
+ /**
301
+ * Props for the SidebarFooter component
302
+ */
303
+ interface SidebarFooterProps extends React.ComponentProps<"div"> {
304
+ /**
305
+ * Data hook for automated testing (REQUIRED)
306
+ * Used to identify component in tests and E2E automation
307
+ */
308
+ dataHook: string;
309
+ /**
310
+ * Tracking element identifier for analytics
311
+ * Defaults to "sidebar-footer" if not provided
312
+ */
313
+ trackingEl?: string;
314
+ /**
315
+ * Tracking label for analytics context
316
+ */
317
+ trackingLabel?: string;
318
+ }
319
+ declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<SidebarFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
320
+ /**
321
+ * Props for the SidebarSeparator component
322
+ */
323
+ interface SidebarSeparatorProps extends React.ComponentProps<typeof Separator> {
324
+ /**
325
+ * Data hook for automated testing (REQUIRED)
326
+ * Used to identify component in tests and E2E automation
327
+ */
328
+ dataHook: string;
329
+ /**
330
+ * Tracking element identifier for analytics
331
+ * Defaults to "sidebar-separator" if not provided
332
+ */
333
+ trackingEl?: string;
334
+ /**
335
+ * Tracking label for analytics context
336
+ */
337
+ trackingLabel?: string;
338
+ }
339
+ declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<SidebarSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
340
+ /**
341
+ * Props for the SidebarContent component
342
+ */
343
+ interface SidebarContentProps extends React.ComponentProps<"div"> {
344
+ /**
345
+ * Data hook for automated testing (REQUIRED)
346
+ * Used to identify component in tests and E2E automation
347
+ */
348
+ dataHook: string;
349
+ /**
350
+ * Tracking element identifier for analytics
351
+ * Defaults to "sidebar-content" if not provided
352
+ */
353
+ trackingEl?: string;
354
+ /**
355
+ * Tracking label for analytics context
356
+ */
357
+ trackingLabel?: string;
358
+ }
359
+ declare const SidebarContent: React.ForwardRefExoticComponent<Omit<SidebarContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
360
+ /**
361
+ * Props for the SidebarGroup component
362
+ */
363
+ interface SidebarGroupProps extends React.ComponentProps<"div"> {
364
+ /**
365
+ * Data hook for automated testing (REQUIRED)
366
+ * Used to identify component in tests and E2E automation
367
+ */
368
+ dataHook: string;
369
+ /**
370
+ * Tracking element identifier for analytics
371
+ * Defaults to "sidebar-group" if not provided
372
+ */
373
+ trackingEl?: string;
374
+ /**
375
+ * Tracking label for analytics context
376
+ */
377
+ trackingLabel?: string;
378
+ }
379
+ declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<SidebarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
380
+ declare const sidebarGroupLabelVariants: (props?: ({
381
+ size?: "default" | "sm" | "xs" | null | undefined;
382
+ variant?: "collapsible" | "default" | "action" | null | undefined;
383
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
384
+ /**
385
+ * Props for the SidebarGroupLabel component
386
+ */
387
+ interface SidebarGroupLabelProps extends React.ComponentProps<"div">, VariantProps<typeof sidebarGroupLabelVariants> {
388
+ /**
389
+ * Data hook for automated testing (REQUIRED)
390
+ * Used to identify component in tests and E2E automation
391
+ */
392
+ dataHook: string;
393
+ /**
394
+ * Tracking element identifier for analytics
395
+ * Defaults to "sidebar-group-label" if not provided
396
+ */
397
+ trackingEl?: string;
398
+ /**
399
+ * Tracking label for analytics context
400
+ */
401
+ trackingLabel?: string;
402
+ /**
403
+ * Render as a different element (Radix Slot pattern)
404
+ */
405
+ asChild?: boolean;
406
+ /**
407
+ * Size variant
408
+ * @default SidebarGroupLabelSize.SM
409
+ */
410
+ size?: SidebarGroupLabelSize;
411
+ /**
412
+ * Visual/behavior variant
413
+ * @default SidebarGroupLabelVariant.DEFAULT
414
+ */
415
+ variant?: SidebarGroupLabelVariant;
416
+ /**
417
+ * Whether the collapsible section is open
418
+ */
419
+ isOpen?: boolean;
420
+ /**
421
+ * Callback when collapsible is toggled
422
+ */
423
+ onToggle?: () => void;
424
+ /**
425
+ * Callback when action is triggered
426
+ */
427
+ onAction?: () => void;
428
+ }
429
+ declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<SidebarGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
430
+ /**
431
+ * Props for the SidebarGroupAction component
432
+ */
433
+ interface SidebarGroupActionProps extends React.ComponentProps<"button"> {
434
+ /**
435
+ * Data hook for automated testing (REQUIRED)
436
+ * Used to identify component in tests and E2E automation
437
+ */
438
+ dataHook: string;
439
+ /**
440
+ * Tracking element identifier for analytics
441
+ * Defaults to "sidebar-group-action" if not provided
442
+ */
443
+ trackingEl?: string;
444
+ /**
445
+ * Tracking label for analytics context
446
+ */
447
+ trackingLabel?: string;
448
+ /**
449
+ * Render as a different element (Radix Slot pattern)
450
+ */
451
+ asChild?: boolean;
452
+ }
453
+ declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<SidebarGroupActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
454
+ /**
455
+ * Props for the SidebarGroupContent component
456
+ */
457
+ interface SidebarGroupContentProps extends React.ComponentProps<"div"> {
458
+ /**
459
+ * Data hook for automated testing (REQUIRED)
460
+ * Used to identify component in tests and E2E automation
461
+ */
462
+ dataHook: string;
463
+ /**
464
+ * Tracking element identifier for analytics
465
+ * Defaults to "sidebar-group-content" if not provided
466
+ */
467
+ trackingEl?: string;
468
+ /**
469
+ * Tracking label for analytics context
470
+ */
471
+ trackingLabel?: string;
472
+ }
473
+ declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<SidebarGroupContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
474
+ /**
475
+ * Props for the SidebarMenu component
476
+ */
477
+ interface SidebarMenuProps extends React.ComponentProps<"ul"> {
478
+ /**
479
+ * Data hook for automated testing (REQUIRED)
480
+ * Used to identify component in tests and E2E automation
481
+ */
482
+ dataHook: string;
483
+ /**
484
+ * Tracking element identifier for analytics
485
+ * Defaults to "sidebar-menu" if not provided
486
+ */
487
+ trackingEl?: string;
488
+ /**
489
+ * Tracking label for analytics context
490
+ */
491
+ trackingLabel?: string;
492
+ }
493
+ declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<SidebarMenuProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
494
+ /**
495
+ * Props for the SidebarMenuItem component
496
+ */
497
+ interface SidebarMenuItemProps extends React.ComponentProps<"li"> {
498
+ /**
499
+ * Data hook for automated testing (REQUIRED)
500
+ * Used to identify component in tests and E2E automation
501
+ */
502
+ dataHook: string;
503
+ /**
504
+ * Tracking element identifier for analytics
505
+ * Defaults to "sidebar-menu-item" if not provided
506
+ */
507
+ trackingEl?: string;
508
+ /**
509
+ * Tracking label for analytics context
510
+ */
511
+ trackingLabel?: string;
512
+ }
513
+ declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<SidebarMenuItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
514
+ /**
515
+ * Props for the SidebarCollapseIcon component
516
+ */
517
+ interface SidebarCollapseIconProps extends React.ComponentProps<"svg"> {
518
+ /**
519
+ * Data hook for automated testing (REQUIRED)
520
+ * Used to identify component in tests and E2E automation
521
+ */
522
+ dataHook: string;
523
+ /**
524
+ * Tracking element identifier for analytics
525
+ * Defaults to "sidebar-collapse-icon" if not provided
526
+ */
527
+ trackingEl?: string;
528
+ /**
529
+ * Tracking label for analytics context
530
+ */
531
+ trackingLabel?: string;
532
+ /**
533
+ * Icon type variant
534
+ * @default SidebarCollapseIconType.CARET
535
+ */
536
+ type?: SidebarCollapseIconType;
537
+ /**
538
+ * Whether the icon is in active/open state
539
+ */
540
+ isActive?: boolean;
541
+ }
542
+ declare const SidebarCollapseIcon: React.ForwardRefExoticComponent<Omit<SidebarCollapseIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
543
+ declare const sidebarMenuButtonVariants: (props?: ({
544
+ variant?: "checkbox" | "tree" | "collapsible" | "badge" | "dropdown" | "simple" | "bigIcon" | null | undefined;
545
+ size?: "default" | "sm" | "lg" | null | undefined;
546
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
547
+ /**
548
+ * Props for the SidebarMenuButton component
549
+ */
550
+ interface SidebarMenuButtonProps extends React.ComponentProps<"button">, VariantProps<typeof sidebarMenuButtonVariants> {
551
+ /**
552
+ * Data hook for automated testing (REQUIRED)
553
+ * Used to identify component in tests and E2E automation
554
+ */
555
+ dataHook: string;
556
+ /**
557
+ * Tracking element identifier for analytics
558
+ * Defaults to "sidebar-menu-button" if not provided
559
+ */
560
+ trackingEl?: string;
561
+ /**
562
+ * Tracking label for analytics context
563
+ */
564
+ trackingLabel?: string;
565
+ /**
566
+ * Render as a different element (Radix Slot pattern)
567
+ */
568
+ asChild?: boolean;
569
+ /**
570
+ * Whether the button is in active state
571
+ */
572
+ isActive?: boolean;
573
+ /**
574
+ * Tooltip content to show when sidebar is collapsed
575
+ */
576
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
577
+ /**
578
+ * Visual/behavior variant
579
+ * @default SidebarMenuButtonVariant.SIMPLE
580
+ */
581
+ variant?: SidebarMenuButtonVariant;
582
+ /**
583
+ * Size variant
584
+ * @default SidebarMenuButtonSize.DEFAULT
585
+ */
586
+ size?: SidebarMenuButtonSize;
587
+ }
588
+ declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<SidebarMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
589
+ /**
590
+ * Props for the SidebarMenuAction component
591
+ */
592
+ interface SidebarMenuActionProps extends React.ComponentProps<"button"> {
593
+ /**
594
+ * Data hook for automated testing (REQUIRED)
595
+ * Used to identify component in tests and E2E automation
596
+ */
597
+ dataHook: string;
598
+ /**
599
+ * Tracking element identifier for analytics
600
+ * Defaults to "sidebar-menu-action" if not provided
601
+ */
602
+ trackingEl?: string;
603
+ /**
604
+ * Tracking label for analytics context
605
+ */
606
+ trackingLabel?: string;
607
+ /**
608
+ * Render as a different element (Radix Slot pattern)
609
+ */
610
+ asChild?: boolean;
611
+ /**
612
+ * Show action only on hover
613
+ */
614
+ showOnHover?: boolean;
615
+ }
616
+ declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<SidebarMenuActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
617
+ /**
618
+ * Props for the SidebarMenuBadge component
619
+ */
620
+ interface SidebarMenuBadgeProps extends React.ComponentProps<"div"> {
621
+ /**
622
+ * Data hook for automated testing (REQUIRED)
623
+ * Used to identify component in tests and E2E automation
624
+ */
625
+ dataHook: string;
626
+ /**
627
+ * Tracking element identifier for analytics
628
+ * Defaults to "sidebar-menu-badge" if not provided
629
+ */
630
+ trackingEl?: string;
631
+ /**
632
+ * Tracking label for analytics context
633
+ */
634
+ trackingLabel?: string;
635
+ }
636
+ declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<SidebarMenuBadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
637
+ /**
638
+ * Props for the SidebarMenuSkeleton component
639
+ */
640
+ interface SidebarMenuSkeletonProps extends React.ComponentProps<"div"> {
641
+ /**
642
+ * Data hook for automated testing (REQUIRED)
643
+ * Used to identify component in tests and E2E automation
644
+ */
645
+ dataHook: string;
646
+ /**
647
+ * Tracking element identifier for analytics
648
+ * Defaults to "sidebar-menu-skeleton" if not provided
649
+ */
650
+ trackingEl?: string;
651
+ /**
652
+ * Tracking label for analytics context
653
+ */
654
+ trackingLabel?: string;
655
+ /**
656
+ * Show icon skeleton placeholder
657
+ */
658
+ showIcon?: boolean;
659
+ }
660
+ declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<SidebarMenuSkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
661
+ declare const sidebarMenuSubVariants: (props?: ({
662
+ variant?: "default" | "border" | "indent" | null | undefined;
663
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
664
+ /**
665
+ * Props for the SidebarMenuSub component
666
+ */
667
+ interface SidebarMenuSubProps extends React.ComponentProps<"ul">, VariantProps<typeof sidebarMenuSubVariants> {
668
+ /**
669
+ * Data hook for automated testing (REQUIRED)
670
+ * Used to identify component in tests and E2E automation
671
+ */
672
+ dataHook: string;
673
+ /**
674
+ * Tracking element identifier for analytics
675
+ * Defaults to "sidebar-menu-sub" if not provided
676
+ */
677
+ trackingEl?: string;
678
+ /**
679
+ * Tracking label for analytics context
680
+ */
681
+ trackingLabel?: string;
682
+ /**
683
+ * Visual variant
684
+ * @default SidebarMenuSubVariant.BORDER
685
+ */
686
+ variant?: SidebarMenuSubVariant;
687
+ }
688
+ declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<SidebarMenuSubProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
689
+ /**
690
+ * Props for the SidebarMenuSubItem component
691
+ */
692
+ interface SidebarMenuSubItemProps extends React.ComponentProps<"li"> {
693
+ /**
694
+ * Data hook for automated testing (REQUIRED)
695
+ * Used to identify component in tests and E2E automation
696
+ */
697
+ dataHook: string;
698
+ /**
699
+ * Tracking element identifier for analytics
700
+ * Defaults to "sidebar-menu-sub-item" if not provided
701
+ */
702
+ trackingEl?: string;
703
+ /**
704
+ * Tracking label for analytics context
705
+ */
706
+ trackingLabel?: string;
707
+ }
708
+ declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<SidebarMenuSubItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
709
+ /**
710
+ * Props for the SidebarMenuSubButton component
711
+ */
712
+ interface SidebarMenuSubButtonProps extends React.ComponentProps<"a"> {
713
+ /**
714
+ * Data hook for automated testing (REQUIRED)
715
+ * Used to identify component in tests and E2E automation
716
+ */
717
+ dataHook: string;
718
+ /**
719
+ * Tracking element identifier for analytics
720
+ * Defaults to "sidebar-menu-sub-button" if not provided
721
+ */
722
+ trackingEl?: string;
723
+ /**
724
+ * Tracking label for analytics context
725
+ */
726
+ trackingLabel?: string;
727
+ /**
728
+ * Render as a different element (Radix Slot pattern)
729
+ */
730
+ asChild?: boolean;
731
+ /**
732
+ * Size variant
733
+ * @default SidebarMenuSubButtonSize.MD
734
+ */
735
+ size?: SidebarMenuSubButtonSize;
736
+ /**
737
+ * Whether the button is in active state
738
+ */
739
+ isActive?: boolean;
740
+ }
741
+ declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<SidebarMenuSubButtonProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
742
+ export { Sidebar, SidebarCollapseIcon, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
743
+ export type { SidebarProviderProps, SidebarProps, SidebarTriggerProps, SidebarRailProps, SidebarInsetProps, SidebarInputProps, SidebarHeaderProps, SidebarFooterProps, SidebarSeparatorProps, SidebarContentProps, SidebarGroupProps, SidebarGroupLabelProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarMenuProps, SidebarMenuItemProps, SidebarCollapseIconProps, SidebarMenuButtonProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuSkeletonProps, SidebarMenuSubProps, SidebarMenuSubItemProps, SidebarMenuSubButtonProps, };
744
+ //# sourceMappingURL=sidebar.d.ts.map