@dbcdk/react-components 0.0.102 → 0.0.104

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 (355) hide show
  1. package/dist/assets/logo.cjs +87 -0
  2. package/dist/assets/logo.js +85 -0
  3. package/dist/client.cjs +587 -0
  4. package/dist/client.d.ts +83 -0
  5. package/dist/client.js +84 -0
  6. package/dist/components/accordion/Accordion.cjs +103 -0
  7. package/dist/components/accordion/Accordion.js +97 -0
  8. package/dist/components/accordion/Accordion.module.css +41 -0
  9. package/dist/components/accordion/components/AccordionRow.cjs +115 -0
  10. package/dist/components/accordion/components/AccordionRow.js +109 -0
  11. package/dist/components/accordion/components/AccordionRow.module.css +99 -0
  12. package/dist/components/alert/Alert.cjs +52 -0
  13. package/dist/components/alert/Alert.d.ts +2 -1
  14. package/dist/components/alert/Alert.js +46 -0
  15. package/dist/components/alert/Alert.module.css +97 -0
  16. package/dist/components/app-header/AppHeader.cjs +14 -0
  17. package/dist/components/app-header/AppHeader.js +8 -0
  18. package/dist/components/app-header/AppHeader.module.css +74 -0
  19. package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
  20. package/dist/components/attribute-chip/AttributeChip.js +16 -0
  21. package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
  22. package/dist/components/avatar/Avatar.cjs +111 -0
  23. package/dist/components/avatar/Avatar.js +86 -0
  24. package/dist/components/avatar/Avatar.module.css +91 -0
  25. package/dist/components/breadcrumbs/Breadcrumbs.cjs +24 -0
  26. package/dist/components/breadcrumbs/Breadcrumbs.js +18 -0
  27. package/dist/components/breadcrumbs/Breadcrumbs.module.css +80 -0
  28. package/dist/components/button/Button.cjs +149 -0
  29. package/dist/components/button/Button.js +124 -0
  30. package/dist/components/button/Button.module.css +260 -0
  31. package/dist/components/button-select/ButtonSelect.cjs +35 -0
  32. package/dist/components/button-select/ButtonSelect.js +29 -0
  33. package/dist/components/button-select/ButtonSelect.module.css +40 -0
  34. package/dist/components/card/Card.cjs +112 -0
  35. package/dist/components/card/Card.d.ts +2 -1
  36. package/dist/components/card/Card.js +106 -0
  37. package/dist/components/card/Card.module.css +187 -0
  38. package/dist/components/card/components/CardMeta.cjs +62 -0
  39. package/dist/components/card/components/CardMeta.js +55 -0
  40. package/dist/components/card/components/CardMeta.module.css +55 -0
  41. package/dist/components/card-container/CardContainer.cjs +34 -0
  42. package/dist/components/card-container/CardContainer.js +28 -0
  43. package/dist/components/card-container/CardContainer.module.css +63 -0
  44. package/dist/components/chip/Chip.cjs +65 -0
  45. package/dist/components/chip/Chip.js +59 -0
  46. package/dist/components/chip/Chip.module.css +236 -0
  47. package/dist/components/circle/Circle.cjs +33 -0
  48. package/dist/components/circle/Circle.js +27 -0
  49. package/dist/components/circle/Circle.module.css +128 -0
  50. package/dist/components/clear-button/ClearButton.cjs +33 -0
  51. package/dist/components/clear-button/ClearButton.d.ts +2 -1
  52. package/dist/components/clear-button/ClearButton.js +27 -0
  53. package/dist/components/clear-button/ClearButton.module.css +26 -0
  54. package/dist/components/code-block/CodeBlock.cjs +97 -0
  55. package/dist/components/code-block/CodeBlock.js +91 -0
  56. package/dist/components/code-block/CodeBlock.module.css +124 -0
  57. package/dist/components/copy-button/CopyButton.cjs +139 -0
  58. package/dist/components/copy-button/CopyButton.js +133 -0
  59. package/dist/components/copy-button/CopyButton.module.css +22 -0
  60. package/dist/components/datetime-picker/DateTimePicker.cjs +559 -0
  61. package/dist/components/datetime-picker/DateTimePicker.js +553 -0
  62. package/dist/components/datetime-picker/DateTimePicker.module.css +155 -0
  63. package/dist/components/datetime-picker/dateTimeHelpers.cjs +179 -0
  64. package/dist/components/datetime-picker/dateTimeHelpers.js +160 -0
  65. package/dist/components/divider/Divider.cjs +22 -0
  66. package/dist/components/divider/Divider.js +20 -0
  67. package/dist/components/filter-field/FilterField.cjs +296 -0
  68. package/dist/components/filter-field/FilterField.js +289 -0
  69. package/dist/components/filter-field/FilterField.module.css +379 -0
  70. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +115 -0
  71. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +108 -0
  72. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +59 -0
  73. package/dist/components/forms/checkbox/Checkbox.cjs +88 -0
  74. package/dist/components/forms/checkbox/Checkbox.js +82 -0
  75. package/dist/components/forms/checkbox/Checkbox.module.css +104 -0
  76. package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +121 -0
  77. package/dist/components/forms/checkbox-group/CheckboxGroup.js +115 -0
  78. package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +115 -0
  79. package/dist/components/forms/form-select/FormSelect.cjs +191 -0
  80. package/dist/components/forms/form-select/FormSelect.js +166 -0
  81. package/dist/components/forms/form-select/FormSelect.module.css +236 -0
  82. package/dist/components/forms/input/Input.cjs +188 -0
  83. package/dist/components/forms/input/Input.d.ts +1 -0
  84. package/dist/components/forms/input/Input.js +182 -0
  85. package/dist/components/forms/input/Input.module.css +468 -0
  86. package/dist/components/forms/input-container/InputContainer.cjs +72 -0
  87. package/dist/components/forms/input-container/InputContainer.js +66 -0
  88. package/dist/components/forms/input-container/InputContainer.module.css +59 -0
  89. package/dist/components/forms/multi-select/MultiSelect.cjs +227 -0
  90. package/dist/components/forms/multi-select/MultiSelect.js +225 -0
  91. package/dist/components/forms/radio-buttons/RadioButton.cjs +91 -0
  92. package/dist/components/forms/radio-buttons/RadioButton.js +85 -0
  93. package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +74 -0
  94. package/dist/components/forms/radio-buttons/RadioButtonGroup.js +72 -0
  95. package/dist/components/forms/radio-buttons/RadioButtons.module.css +118 -0
  96. package/dist/components/forms/select/Select.cjs +286 -0
  97. package/dist/components/forms/select/Select.js +280 -0
  98. package/dist/components/forms/select/Select.module.css +32 -0
  99. package/dist/components/forms/text-area/Textarea.cjs +116 -0
  100. package/dist/components/forms/text-area/Textarea.js +110 -0
  101. package/dist/components/forms/text-area/Textarea.module.css +70 -0
  102. package/dist/components/forms/typeahead/Typeahead.cjs +792 -0
  103. package/dist/components/forms/typeahead/Typeahead.js +768 -0
  104. package/dist/components/forms/typeahead/Typeahead.module.css +38 -0
  105. package/dist/components/grid/Grid.cjs +45 -0
  106. package/dist/components/grid/Grid.js +38 -0
  107. package/dist/components/grid/Grid.module.css +35 -0
  108. package/dist/components/headline/CollapsibleHeadline.cjs +80 -0
  109. package/dist/components/headline/CollapsibleHeadline.js +74 -0
  110. package/dist/components/headline/Headline.cjs +59 -0
  111. package/dist/components/headline/Headline.js +53 -0
  112. package/dist/components/headline/Headline.module.css +185 -0
  113. package/dist/components/hyperlink/Hyperlink.cjs +107 -0
  114. package/dist/components/hyperlink/Hyperlink.d.ts +1 -0
  115. package/dist/components/hyperlink/Hyperlink.js +82 -0
  116. package/dist/components/hyperlink/Hyperlink.module.css +121 -0
  117. package/dist/components/icon/Icon.cjs +27 -0
  118. package/dist/components/icon/Icon.js +20 -0
  119. package/dist/components/icon/Icon.module.css +36 -0
  120. package/dist/components/inline-status/InlineStatus.cjs +39 -0
  121. package/dist/components/inline-status/InlineStatus.js +33 -0
  122. package/dist/components/inline-status/InlineStatus.module.css +92 -0
  123. package/dist/components/interval-select/IntervalSelect.cjs +203 -0
  124. package/dist/components/interval-select/IntervalSelect.js +201 -0
  125. package/dist/components/json-viewer/HighlightedText.cjs +13 -0
  126. package/dist/components/json-viewer/HighlightedText.js +11 -0
  127. package/dist/components/json-viewer/JsonNode.cjs +124 -0
  128. package/dist/components/json-viewer/JsonNode.js +118 -0
  129. package/dist/components/json-viewer/JsonViewer.cjs +164 -0
  130. package/dist/components/json-viewer/JsonViewer.js +158 -0
  131. package/dist/components/json-viewer/JsonViewer.module.css +346 -0
  132. package/dist/components/json-viewer/types.cjs +2 -0
  133. package/dist/components/json-viewer/types.js +1 -0
  134. package/dist/components/json-viewer/useClipboardStatus.cjs +15 -0
  135. package/dist/components/json-viewer/useClipboardStatus.js +13 -0
  136. package/dist/components/json-viewer/utils.cjs +126 -0
  137. package/dist/components/json-viewer/utils.js +111 -0
  138. package/dist/components/media-card/MediaCard.cjs +60 -0
  139. package/dist/components/media-card/MediaCard.d.ts +19 -0
  140. package/dist/components/media-card/MediaCard.js +54 -0
  141. package/dist/components/media-card/MediaCard.module.css +92 -0
  142. package/dist/components/menu/Menu.cjs +287 -0
  143. package/dist/components/menu/Menu.js +262 -0
  144. package/dist/components/menu/Menu.module.css +220 -0
  145. package/dist/components/meta-bar/MetaBar.cjs +28 -0
  146. package/dist/components/meta-bar/MetaBar.js +22 -0
  147. package/dist/components/meta-bar/MetaBar.module.css +27 -0
  148. package/dist/components/nav-bar/NavBar.cjs +95 -0
  149. package/dist/components/nav-bar/NavBar.d.ts +1 -1
  150. package/dist/components/nav-bar/NavBar.js +89 -0
  151. package/dist/components/nav-bar/NavBar.module.css +225 -0
  152. package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +30 -0
  153. package/dist/components/overlay/fade-overlay/FadeOverlay.js +24 -0
  154. package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +54 -0
  155. package/dist/components/overlay/modal/Modal.cjs +189 -0
  156. package/dist/components/overlay/modal/Modal.d.ts +2 -1
  157. package/dist/components/overlay/modal/Modal.js +183 -0
  158. package/dist/components/overlay/modal/Modal.module.css +112 -0
  159. package/dist/components/overlay/modal/provider/ModalProvider.cjs +98 -0
  160. package/dist/components/overlay/modal/provider/ModalProvider.js +95 -0
  161. package/dist/components/overlay/side-panel/SidePanel.cjs +173 -0
  162. package/dist/components/overlay/side-panel/SidePanel.js +167 -0
  163. package/dist/components/overlay/side-panel/SidePanel.module.css +177 -0
  164. package/dist/components/overlay/side-panel/useSidePanel.cjs +16 -0
  165. package/dist/components/overlay/side-panel/useSidePanel.js +14 -0
  166. package/dist/components/overlay/tooltip/Tooltip.cjs +34 -0
  167. package/dist/components/overlay/tooltip/Tooltip.js +32 -0
  168. package/dist/components/overlay/tooltip/Tooltip.module.css +104 -0
  169. package/dist/components/overlay/tooltip/TooltipProvider.cjs +238 -0
  170. package/dist/components/overlay/tooltip/TooltipProvider.js +231 -0
  171. package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +117 -0
  172. package/dist/components/overlay/tooltip/useTooltipTrigger.js +115 -0
  173. package/dist/components/page/Page.cjs +63 -0
  174. package/dist/components/page/Page.js +57 -0
  175. package/dist/components/page/Page.module.css +95 -0
  176. package/dist/components/page-layout/PageLayout.cjs +97 -0
  177. package/dist/components/page-layout/PageLayout.d.ts +0 -5
  178. package/dist/components/page-layout/PageLayout.js +91 -0
  179. package/dist/components/page-layout/PageLayout.module.css +236 -0
  180. package/dist/components/page-layout/components/footer/Footer.cjs +53 -0
  181. package/dist/components/page-layout/components/footer/Footer.js +47 -0
  182. package/dist/components/page-layout/components/footer/Footer.module.css +89 -0
  183. package/dist/components/pagination/Pagination.cjs +160 -0
  184. package/dist/components/pagination/Pagination.js +154 -0
  185. package/dist/components/pagination/Pagination.module.css +25 -0
  186. package/dist/components/panel/Panel.cjs +38 -0
  187. package/dist/components/panel/Panel.js +32 -0
  188. package/dist/components/panel/Panel.module.css +30 -0
  189. package/dist/components/popover/Popover.cjs +331 -0
  190. package/dist/components/popover/Popover.js +307 -0
  191. package/dist/components/popover/Popover.module.css +52 -0
  192. package/dist/components/search-box/SearchBox.cjs +274 -0
  193. package/dist/components/search-box/SearchBox.js +268 -0
  194. package/dist/components/search-box/SearchBox.module.css +27 -0
  195. package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +127 -0
  196. package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +121 -0
  197. package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +174 -0
  198. package/dist/components/sidebar/Sidebar.cjs +39 -0
  199. package/dist/components/sidebar/Sidebar.js +37 -0
  200. package/dist/components/sidebar/components/SidebarItem.cjs +29 -0
  201. package/dist/components/sidebar/components/SidebarItem.js +27 -0
  202. package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
  203. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +133 -0
  204. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +127 -0
  205. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +29 -0
  206. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +214 -0
  207. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +207 -0
  208. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +260 -0
  209. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +54 -0
  210. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +47 -0
  211. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +106 -0
  212. package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +61 -0
  213. package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +55 -0
  214. package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +20 -0
  215. package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +97 -0
  216. package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +91 -0
  217. package/dist/components/sidebar/providers/SidebarProvider.cjs +223 -0
  218. package/dist/components/sidebar/providers/SidebarProvider.js +220 -0
  219. package/dist/components/skeleton-loader/SkeletonLoader.cjs +442 -0
  220. package/dist/components/skeleton-loader/SkeletonLoader.js +440 -0
  221. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +42 -0
  222. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +36 -0
  223. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +51 -0
  224. package/dist/components/split-button/SplitButton.cjs +46 -0
  225. package/dist/components/split-button/SplitButton.js +40 -0
  226. package/dist/components/split-button/SplitButton.module.css +32 -0
  227. package/dist/components/split-pane/SplitPane.cjs +177 -0
  228. package/dist/components/split-pane/SplitPane.js +168 -0
  229. package/dist/components/split-pane/SplitPane.module.css +111 -0
  230. package/dist/components/split-pane/provider/SplitPaneContext.cjs +129 -0
  231. package/dist/components/split-pane/provider/SplitPaneContext.js +121 -0
  232. package/dist/components/stack/Stack.cjs +47 -0
  233. package/dist/components/stack/Stack.d.ts +1 -1
  234. package/dist/components/stack/Stack.js +41 -0
  235. package/dist/components/stack/Stack.module.css +61 -0
  236. package/dist/components/state-page/StatePage.cjs +48 -0
  237. package/dist/components/state-page/StatePage.js +42 -0
  238. package/dist/components/state-page/StatePage.module.css +9 -0
  239. package/dist/components/state-page/empty.cjs +664 -0
  240. package/dist/components/state-page/empty.js +662 -0
  241. package/dist/components/state-page/error.cjs +310 -0
  242. package/dist/components/state-page/error.js +308 -0
  243. package/dist/components/state-page/notFound.cjs +243 -0
  244. package/dist/components/state-page/notFound.js +241 -0
  245. package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +98 -0
  246. package/dist/components/sticky-footer-layout/StickyFooterLayout.js +96 -0
  247. package/dist/components/table/Table.cjs +216 -0
  248. package/dist/components/table/Table.js +210 -0
  249. package/dist/components/table/Table.module.css +534 -0
  250. package/dist/components/table/Table.types.cjs +2 -0
  251. package/dist/components/table/Table.types.js +1 -0
  252. package/dist/components/table/TanstackTable.cjs +172 -0
  253. package/dist/components/table/TanstackTable.js +147 -0
  254. package/dist/components/table/components/TableBody.cjs +50 -0
  255. package/dist/components/table/components/TableBody.js +44 -0
  256. package/dist/components/table/components/TableHeader.cjs +56 -0
  257. package/dist/components/table/components/TableHeader.js +50 -0
  258. package/dist/components/table/components/TableHeaderCell.cjs +69 -0
  259. package/dist/components/table/components/TableHeaderCell.js +63 -0
  260. package/dist/components/table/components/TableLoadingBody.cjs +35 -0
  261. package/dist/components/table/components/TableLoadingBody.js +29 -0
  262. package/dist/components/table/components/TablePagination.cjs +2 -0
  263. package/dist/components/table/components/TablePagination.js +1 -0
  264. package/dist/components/table/components/TableRow.cjs +151 -0
  265. package/dist/components/table/components/TableRow.js +145 -0
  266. package/dist/components/table/components/TableSelectionCell.cjs +41 -0
  267. package/dist/components/table/components/TableSelectionCell.js +35 -0
  268. package/dist/components/table/components/column-resizer/ColumnResizer.cjs +25 -0
  269. package/dist/components/table/components/column-resizer/ColumnResizer.js +19 -0
  270. package/dist/components/table/components/column-resizer/ColumnResizer.module.css +22 -0
  271. package/dist/components/table/components/empty-state/EmptyState.cjs +33 -0
  272. package/dist/components/table/components/empty-state/EmptyState.js +31 -0
  273. package/dist/components/table/components/empty-state/EmptyState.module.css +4 -0
  274. package/dist/components/table/components/table-settings/TableSettings.cjs +139 -0
  275. package/dist/components/table/components/table-settings/TableSettings.js +137 -0
  276. package/dist/components/table/hooks/useTableRowInteractions.cjs +46 -0
  277. package/dist/components/table/hooks/useTableRowInteractions.js +44 -0
  278. package/dist/components/table/table.classes.cjs +49 -0
  279. package/dist/components/table/table.classes.js +40 -0
  280. package/dist/components/table/table.utils.cjs +57 -0
  281. package/dist/components/table/table.utils.js +45 -0
  282. package/dist/components/table/tanstackTable.utils.cjs +166 -0
  283. package/dist/components/table/tanstackTable.utils.js +159 -0
  284. package/dist/components/tabs/Tabs.cjs +172 -0
  285. package/dist/components/tabs/Tabs.js +166 -0
  286. package/dist/components/tabs/Tabs.module.css +261 -0
  287. package/dist/components/theme-button/ThemeButton.cjs +78 -0
  288. package/dist/components/theme-button/ThemeButton.js +75 -0
  289. package/dist/components/toast/Toast.cjs +68 -0
  290. package/dist/components/toast/Toast.js +62 -0
  291. package/dist/components/toast/Toast.module.css +161 -0
  292. package/dist/components/toast/provider/ToastProvider.cjs +105 -0
  293. package/dist/components/toast/provider/ToastProvider.js +97 -0
  294. package/dist/components/user-display/UserDisplay.cjs +22 -0
  295. package/dist/components/user-display/UserDisplay.js +16 -0
  296. package/dist/components/user-display/UserDisplay.module.css +25 -0
  297. package/dist/constants/chart-colors.cjs +10 -0
  298. package/dist/constants/chart-colors.js +8 -0
  299. package/dist/constants/chart-colors.types.cjs +2 -0
  300. package/dist/constants/chart-colors.types.js +1 -0
  301. package/dist/constants/severity.cjs +30 -0
  302. package/dist/constants/severity.js +26 -0
  303. package/dist/constants/severity.types.cjs +2 -0
  304. package/dist/constants/severity.types.js +1 -0
  305. package/dist/constants/sizes.cjs +11 -0
  306. package/dist/constants/sizes.js +9 -0
  307. package/dist/hooks/useDeviceSize.cjs +35 -0
  308. package/dist/hooks/useDeviceSize.js +33 -0
  309. package/dist/hooks/useListNavigation.cjs +237 -0
  310. package/dist/hooks/useListNavigation.js +235 -0
  311. package/dist/hooks/usePagination.cjs +144 -0
  312. package/dist/hooks/usePagination.js +142 -0
  313. package/dist/hooks/useSorting.cjs +119 -0
  314. package/dist/hooks/useSorting.js +117 -0
  315. package/dist/hooks/useTableData.cjs +53 -0
  316. package/dist/hooks/useTableData.js +51 -0
  317. package/dist/hooks/useTableSelection.cjs +172 -0
  318. package/dist/hooks/useTableSelection.js +170 -0
  319. package/dist/hooks/useTableSettings.cjs +90 -0
  320. package/dist/hooks/useTableSettings.js +87 -0
  321. package/dist/hooks/useTheme.cjs +64 -0
  322. package/dist/hooks/useTheme.js +62 -0
  323. package/dist/hooks/useTimeDuration.cjs +72 -0
  324. package/dist/hooks/useTimeDuration.js +70 -0
  325. package/dist/hooks/useViewportFill.cjs +82 -0
  326. package/dist/hooks/useViewportFill.js +80 -0
  327. package/dist/index.cjs +161 -12901
  328. package/dist/index.css +67 -7228
  329. package/dist/index.d.ts +0 -58
  330. package/dist/index.js +24 -12802
  331. package/dist/styles/animation.cjs +9 -0
  332. package/dist/styles/animation.js +7 -0
  333. package/dist/styles/themes/dbc/colors.css +5 -0
  334. package/dist/styles/themes/types.cjs +2 -0
  335. package/dist/styles/themes/types.js +1 -0
  336. package/dist/tanstack.cjs +18 -2652
  337. package/dist/tanstack.js +3 -2636
  338. package/dist/types/a11y-props.types.cjs +2 -0
  339. package/dist/types/a11y-props.types.js +1 -0
  340. package/dist/types/assets.d.cjs +2 -0
  341. package/dist/types/assets.d.js +1 -0
  342. package/dist/types/css.d.cjs +2 -0
  343. package/dist/types/css.d.js +1 -0
  344. package/dist/types/sizes.types.cjs +2 -0
  345. package/dist/types/sizes.types.js +1 -0
  346. package/dist/utils/arrays/nested-filtering.cjs +40 -0
  347. package/dist/utils/arrays/nested-filtering.js +38 -0
  348. package/dist/utils/date/formatDate.cjs +35 -0
  349. package/dist/utils/date/formatDate.js +33 -0
  350. package/dist/utils/localStorage.utils.cjs +53 -0
  351. package/dist/utils/localStorage.utils.js +49 -0
  352. package/dist/utils/text/get-highlighted-segments.cjs +49 -0
  353. package/dist/utils/text/get-highlighted-segments.js +47 -0
  354. package/package.json +8 -3
  355. package/dist/tanstack.css +0 -1271
@@ -0,0 +1,29 @@
1
+ .container {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ border-radius: var(--border-radius-default);
6
+ }
7
+
8
+ .container button {
9
+ color: var(--color-text);
10
+ min-block-size: 20px !important;
11
+ min-inline-size: 20px !important;
12
+ max-block-size: 20px !important;
13
+ max-inline-size: 20px !important;
14
+ &:hover {
15
+ background-color: var(--color-bg-contextual-subtle) !important;
16
+ }
17
+ }
18
+
19
+ .childrenContainer {
20
+ overflow: hidden;
21
+ }
22
+
23
+ .chevron {
24
+ transition: transform 0.3s ease;
25
+ }
26
+
27
+ .chevronExpanded {
28
+ transform: rotate(180deg);
29
+ }
@@ -0,0 +1,214 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var lucideReact = require('lucide-react');
6
+ var react = require('react');
7
+ var logo = require('../../../../assets/logo');
8
+ var Button = require('../../../../components/button/Button');
9
+ var SidebarItems = require('../../../../components/sidebar/components/sidebar-items/SidebarItems');
10
+ var SidenavFiltering = require('../../../../components/sidebar/components/sidenav-filteirng/SidenavFiltering');
11
+ var SidebarProvider = require('../../../../components/sidebar/providers/SidebarProvider');
12
+ var styles = require('./SidebarContainer.module.css');
13
+
14
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
+
16
+ var SidenavFiltering__default = /*#__PURE__*/_interopDefault(SidenavFiltering);
17
+ var styles__default = /*#__PURE__*/_interopDefault(styles);
18
+
19
+ function clamp(n, min, max) {
20
+ return Math.max(min, Math.min(max, n));
21
+ }
22
+ function readStoredWidth(key) {
23
+ try {
24
+ const raw = localStorage.getItem(key);
25
+ if (!raw) return null;
26
+ const num = Number(raw);
27
+ return Number.isFinite(num) ? num : null;
28
+ } catch {
29
+ return null;
30
+ }
31
+ }
32
+ function writeStoredWidth(key, value) {
33
+ try {
34
+ localStorage.setItem(key, String(Math.round(value)));
35
+ } catch {
36
+ }
37
+ }
38
+ function removeStoredWidth(key) {
39
+ try {
40
+ localStorage.removeItem(key);
41
+ } catch {
42
+ }
43
+ }
44
+ function SidebarContainer({
45
+ logo: logo$1,
46
+ productLogo,
47
+ activeLink,
48
+ version,
49
+ hideSearch,
50
+ searchPlaceholder = "Filtrer menu",
51
+ showSettings = false,
52
+ footer,
53
+ resizable,
54
+ defaultWidth = 240,
55
+ minWidth = 160,
56
+ storageKey
57
+ }) {
58
+ const { isSidebarCollapsed, handleSidebarCollapseChange } = SidebarProvider.useSidebar();
59
+ const [sidebarWidth, setSidebarWidth] = react.useState(defaultWidth);
60
+ const [manualWidth, setManualWidth] = react.useState(null);
61
+ const [isResizing, setIsResizing] = react.useState(false);
62
+ const [ariaMaxWidth, setAriaMaxWidth] = react.useState(void 0);
63
+ const containerRef = react.useRef(null);
64
+ const draggingRef = react.useRef(false);
65
+ const pointerIdRef = react.useRef(null);
66
+ const startXRef = react.useRef(0);
67
+ const startWidthRef = react.useRef(0);
68
+ const maxWidthRef = react.useRef(Infinity);
69
+ const getMaxWidth = react.useCallback(() => {
70
+ const viewportWidth = typeof window !== "undefined" ? window.innerWidth || document.documentElement.clientWidth : Infinity;
71
+ return Math.max(minWidth, viewportWidth - minWidth);
72
+ }, [minWidth]);
73
+ react.useEffect(() => {
74
+ if (!storageKey) return;
75
+ const stored = readStoredWidth(storageKey);
76
+ if (stored === null) return;
77
+ setManualWidth(stored);
78
+ setSidebarWidth(stored);
79
+ }, [storageKey]);
80
+ react.useEffect(() => {
81
+ if (!storageKey) return;
82
+ if (manualWidth === null) {
83
+ removeStoredWidth(storageKey);
84
+ return;
85
+ }
86
+ writeStoredWidth(storageKey, manualWidth);
87
+ }, [manualWidth, storageKey]);
88
+ react.useEffect(() => {
89
+ setAriaMaxWidth(getMaxWidth());
90
+ }, [getMaxWidth]);
91
+ react.useEffect(() => {
92
+ return () => {
93
+ document.body.style.cursor = "";
94
+ document.body.style.userSelect = "";
95
+ };
96
+ }, []);
97
+ const updateWidth = react.useCallback((nextWidth) => {
98
+ setManualWidth(nextWidth);
99
+ setSidebarWidth(nextWidth);
100
+ }, []);
101
+ const onResizePointerDown = react.useCallback(
102
+ (e) => {
103
+ const maxWidth = getMaxWidth();
104
+ if (maxWidth === null) return;
105
+ e.currentTarget.setPointerCapture(e.pointerId);
106
+ maxWidthRef.current = maxWidth;
107
+ draggingRef.current = true;
108
+ pointerIdRef.current = e.pointerId;
109
+ startXRef.current = e.clientX;
110
+ startWidthRef.current = sidebarWidth;
111
+ setIsResizing(true);
112
+ document.body.style.userSelect = "none";
113
+ document.body.style.cursor = "col-resize";
114
+ },
115
+ [getMaxWidth, sidebarWidth]
116
+ );
117
+ const onResizePointerMove = react.useCallback(
118
+ (e) => {
119
+ if (!draggingRef.current) return;
120
+ if (pointerIdRef.current !== null && e.pointerId !== pointerIdRef.current) return;
121
+ const next = startWidthRef.current + (e.clientX - startXRef.current);
122
+ updateWidth(clamp(next, minWidth, maxWidthRef.current));
123
+ },
124
+ [minWidth, updateWidth]
125
+ );
126
+ const endResizeDrag = react.useCallback(() => {
127
+ if (!draggingRef.current) return;
128
+ draggingRef.current = false;
129
+ pointerIdRef.current = null;
130
+ setIsResizing(false);
131
+ document.body.style.cursor = "";
132
+ document.body.style.userSelect = "";
133
+ }, []);
134
+ const resetWidth = react.useCallback(() => {
135
+ setManualWidth(null);
136
+ setSidebarWidth(clamp(defaultWidth, minWidth, getMaxWidth()));
137
+ }, [defaultWidth, getMaxWidth, minWidth]);
138
+ const onKeyDown = react.useCallback(
139
+ (e) => {
140
+ const maxWidth = getMaxWidth();
141
+ const step = e.shiftKey ? 32 : 8;
142
+ let next = null;
143
+ if (e.key === "ArrowLeft") next = sidebarWidth - step;
144
+ if (e.key === "ArrowRight") next = sidebarWidth + step;
145
+ if (e.key === "Home") next = minWidth;
146
+ if (e.key === "End") next = maxWidth;
147
+ if (next === null) return;
148
+ e.preventDefault();
149
+ updateWidth(clamp(next, minWidth, maxWidth));
150
+ },
151
+ [getMaxWidth, minWidth, sidebarWidth, updateWidth]
152
+ );
153
+ const containerStyle = react.useMemo(
154
+ () => ({
155
+ "--sidebar-width": `${sidebarWidth}px`
156
+ }),
157
+ [sidebarWidth]
158
+ );
159
+ return /* @__PURE__ */ jsxRuntime.jsxs(
160
+ "div",
161
+ {
162
+ ref: containerRef,
163
+ role: "complementary",
164
+ className: `${styles__default.default.container} ${isSidebarCollapsed ? styles__default.default.collapsed : ""} ${isResizing ? styles__default.default.resizing : ""}`,
165
+ style: containerStyle,
166
+ children: [
167
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.header, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.productHeader, children: [
168
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.productLogo, children: productLogo }),
169
+ /* @__PURE__ */ jsxRuntime.jsx(
170
+ Button.Button,
171
+ {
172
+ size: "md",
173
+ variant: "inline",
174
+ shape: "round",
175
+ "aria-label": "Collapse sidebar",
176
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: isSidebarCollapsed ? styles__default.default.collapsedIcon : "" }),
177
+ onClick: () => handleSidebarCollapseChange(!isSidebarCollapsed)
178
+ }
179
+ )
180
+ ] }) }),
181
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.content, children: [
182
+ !hideSearch && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.filter, children: /* @__PURE__ */ jsxRuntime.jsx(SidenavFiltering__default.default, { placeholder: searchPlaceholder, showSettings }) }),
183
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles__default.default.links} hideScrollBar`, children: /* @__PURE__ */ jsxRuntime.jsx(SidebarItems.SidebarItems, { activeLink }) })
184
+ ] }),
185
+ footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.footerSlot, children: footer }),
186
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.footer, children: [
187
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.companyLogo, children: logo$1 != null ? logo$1 : /* @__PURE__ */ jsxRuntime.jsx(logo.Logo, {}) }),
188
+ version && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles__default.default.version} dbc-muted-text dbc-sm-text`, children: version })
189
+ ] }),
190
+ resizable && /* @__PURE__ */ jsxRuntime.jsx(
191
+ "div",
192
+ {
193
+ className: styles__default.default.resizeHandle,
194
+ role: "separator",
195
+ "aria-label": "Resize sidebar",
196
+ "aria-orientation": "vertical",
197
+ "aria-valuemin": Math.round(minWidth),
198
+ "aria-valuemax": ariaMaxWidth !== void 0 ? Math.round(ariaMaxWidth) : void 0,
199
+ "aria-valuenow": Math.round(sidebarWidth),
200
+ tabIndex: isSidebarCollapsed ? -1 : 0,
201
+ onPointerDown: onResizePointerDown,
202
+ onPointerMove: onResizePointerMove,
203
+ onPointerUp: endResizeDrag,
204
+ onPointerCancel: endResizeDrag,
205
+ onDoubleClick: resetWidth,
206
+ onKeyDown
207
+ }
208
+ )
209
+ ]
210
+ }
211
+ );
212
+ }
213
+
214
+ exports.SidebarContainer = SidebarContainer;
@@ -0,0 +1,207 @@
1
+ 'use client';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { ChevronLeft } from 'lucide-react';
4
+ import { useState, useRef, useCallback, useEffect, useMemo } from 'react';
5
+ import { Logo } from '../../../../assets/logo';
6
+ import { Button } from '../../../../components/button/Button';
7
+ import { SidebarItems } from '../../../../components/sidebar/components/sidebar-items/SidebarItems';
8
+ import SidenavFiltering from '../../../../components/sidebar/components/sidenav-filteirng/SidenavFiltering';
9
+ import { useSidebar } from '../../../../components/sidebar/providers/SidebarProvider';
10
+ import styles from './SidebarContainer.module.css';
11
+
12
+ function clamp(n, min, max) {
13
+ return Math.max(min, Math.min(max, n));
14
+ }
15
+ function readStoredWidth(key) {
16
+ try {
17
+ const raw = localStorage.getItem(key);
18
+ if (!raw) return null;
19
+ const num = Number(raw);
20
+ return Number.isFinite(num) ? num : null;
21
+ } catch {
22
+ return null;
23
+ }
24
+ }
25
+ function writeStoredWidth(key, value) {
26
+ try {
27
+ localStorage.setItem(key, String(Math.round(value)));
28
+ } catch {
29
+ }
30
+ }
31
+ function removeStoredWidth(key) {
32
+ try {
33
+ localStorage.removeItem(key);
34
+ } catch {
35
+ }
36
+ }
37
+ function SidebarContainer({
38
+ logo,
39
+ productLogo,
40
+ activeLink,
41
+ version,
42
+ hideSearch,
43
+ searchPlaceholder = "Filtrer menu",
44
+ showSettings = false,
45
+ footer,
46
+ resizable,
47
+ defaultWidth = 240,
48
+ minWidth = 160,
49
+ storageKey
50
+ }) {
51
+ const { isSidebarCollapsed, handleSidebarCollapseChange } = useSidebar();
52
+ const [sidebarWidth, setSidebarWidth] = useState(defaultWidth);
53
+ const [manualWidth, setManualWidth] = useState(null);
54
+ const [isResizing, setIsResizing] = useState(false);
55
+ const [ariaMaxWidth, setAriaMaxWidth] = useState(void 0);
56
+ const containerRef = useRef(null);
57
+ const draggingRef = useRef(false);
58
+ const pointerIdRef = useRef(null);
59
+ const startXRef = useRef(0);
60
+ const startWidthRef = useRef(0);
61
+ const maxWidthRef = useRef(Infinity);
62
+ const getMaxWidth = useCallback(() => {
63
+ const viewportWidth = typeof window !== "undefined" ? window.innerWidth || document.documentElement.clientWidth : Infinity;
64
+ return Math.max(minWidth, viewportWidth - minWidth);
65
+ }, [minWidth]);
66
+ useEffect(() => {
67
+ if (!storageKey) return;
68
+ const stored = readStoredWidth(storageKey);
69
+ if (stored === null) return;
70
+ setManualWidth(stored);
71
+ setSidebarWidth(stored);
72
+ }, [storageKey]);
73
+ useEffect(() => {
74
+ if (!storageKey) return;
75
+ if (manualWidth === null) {
76
+ removeStoredWidth(storageKey);
77
+ return;
78
+ }
79
+ writeStoredWidth(storageKey, manualWidth);
80
+ }, [manualWidth, storageKey]);
81
+ useEffect(() => {
82
+ setAriaMaxWidth(getMaxWidth());
83
+ }, [getMaxWidth]);
84
+ useEffect(() => {
85
+ return () => {
86
+ document.body.style.cursor = "";
87
+ document.body.style.userSelect = "";
88
+ };
89
+ }, []);
90
+ const updateWidth = useCallback((nextWidth) => {
91
+ setManualWidth(nextWidth);
92
+ setSidebarWidth(nextWidth);
93
+ }, []);
94
+ const onResizePointerDown = useCallback(
95
+ (e) => {
96
+ const maxWidth = getMaxWidth();
97
+ if (maxWidth === null) return;
98
+ e.currentTarget.setPointerCapture(e.pointerId);
99
+ maxWidthRef.current = maxWidth;
100
+ draggingRef.current = true;
101
+ pointerIdRef.current = e.pointerId;
102
+ startXRef.current = e.clientX;
103
+ startWidthRef.current = sidebarWidth;
104
+ setIsResizing(true);
105
+ document.body.style.userSelect = "none";
106
+ document.body.style.cursor = "col-resize";
107
+ },
108
+ [getMaxWidth, sidebarWidth]
109
+ );
110
+ const onResizePointerMove = useCallback(
111
+ (e) => {
112
+ if (!draggingRef.current) return;
113
+ if (pointerIdRef.current !== null && e.pointerId !== pointerIdRef.current) return;
114
+ const next = startWidthRef.current + (e.clientX - startXRef.current);
115
+ updateWidth(clamp(next, minWidth, maxWidthRef.current));
116
+ },
117
+ [minWidth, updateWidth]
118
+ );
119
+ const endResizeDrag = useCallback(() => {
120
+ if (!draggingRef.current) return;
121
+ draggingRef.current = false;
122
+ pointerIdRef.current = null;
123
+ setIsResizing(false);
124
+ document.body.style.cursor = "";
125
+ document.body.style.userSelect = "";
126
+ }, []);
127
+ const resetWidth = useCallback(() => {
128
+ setManualWidth(null);
129
+ setSidebarWidth(clamp(defaultWidth, minWidth, getMaxWidth()));
130
+ }, [defaultWidth, getMaxWidth, minWidth]);
131
+ const onKeyDown = useCallback(
132
+ (e) => {
133
+ const maxWidth = getMaxWidth();
134
+ const step = e.shiftKey ? 32 : 8;
135
+ let next = null;
136
+ if (e.key === "ArrowLeft") next = sidebarWidth - step;
137
+ if (e.key === "ArrowRight") next = sidebarWidth + step;
138
+ if (e.key === "Home") next = minWidth;
139
+ if (e.key === "End") next = maxWidth;
140
+ if (next === null) return;
141
+ e.preventDefault();
142
+ updateWidth(clamp(next, minWidth, maxWidth));
143
+ },
144
+ [getMaxWidth, minWidth, sidebarWidth, updateWidth]
145
+ );
146
+ const containerStyle = useMemo(
147
+ () => ({
148
+ "--sidebar-width": `${sidebarWidth}px`
149
+ }),
150
+ [sidebarWidth]
151
+ );
152
+ return /* @__PURE__ */ jsxs(
153
+ "div",
154
+ {
155
+ ref: containerRef,
156
+ role: "complementary",
157
+ className: `${styles.container} ${isSidebarCollapsed ? styles.collapsed : ""} ${isResizing ? styles.resizing : ""}`,
158
+ style: containerStyle,
159
+ children: [
160
+ /* @__PURE__ */ jsx("div", { className: styles.header, children: /* @__PURE__ */ jsxs("div", { className: styles.productHeader, children: [
161
+ /* @__PURE__ */ jsx("div", { className: styles.productLogo, children: productLogo }),
162
+ /* @__PURE__ */ jsx(
163
+ Button,
164
+ {
165
+ size: "md",
166
+ variant: "inline",
167
+ shape: "round",
168
+ "aria-label": "Collapse sidebar",
169
+ icon: /* @__PURE__ */ jsx(ChevronLeft, { className: isSidebarCollapsed ? styles.collapsedIcon : "" }),
170
+ onClick: () => handleSidebarCollapseChange(!isSidebarCollapsed)
171
+ }
172
+ )
173
+ ] }) }),
174
+ /* @__PURE__ */ jsxs("div", { className: styles.content, children: [
175
+ !hideSearch && /* @__PURE__ */ jsx("div", { className: styles.filter, children: /* @__PURE__ */ jsx(SidenavFiltering, { placeholder: searchPlaceholder, showSettings }) }),
176
+ /* @__PURE__ */ jsx("div", { className: `${styles.links} hideScrollBar`, children: /* @__PURE__ */ jsx(SidebarItems, { activeLink }) })
177
+ ] }),
178
+ footer && /* @__PURE__ */ jsx("div", { className: styles.footerSlot, children: footer }),
179
+ /* @__PURE__ */ jsxs("div", { className: styles.footer, children: [
180
+ /* @__PURE__ */ jsx("div", { className: styles.companyLogo, children: logo != null ? logo : /* @__PURE__ */ jsx(Logo, {}) }),
181
+ version && /* @__PURE__ */ jsx("div", { className: `${styles.version} dbc-muted-text dbc-sm-text`, children: version })
182
+ ] }),
183
+ resizable && /* @__PURE__ */ jsx(
184
+ "div",
185
+ {
186
+ className: styles.resizeHandle,
187
+ role: "separator",
188
+ "aria-label": "Resize sidebar",
189
+ "aria-orientation": "vertical",
190
+ "aria-valuemin": Math.round(minWidth),
191
+ "aria-valuemax": ariaMaxWidth !== void 0 ? Math.round(ariaMaxWidth) : void 0,
192
+ "aria-valuenow": Math.round(sidebarWidth),
193
+ tabIndex: isSidebarCollapsed ? -1 : 0,
194
+ onPointerDown: onResizePointerDown,
195
+ onPointerMove: onResizePointerMove,
196
+ onPointerUp: endResizeDrag,
197
+ onPointerCancel: endResizeDrag,
198
+ onDoubleClick: resetWidth,
199
+ onKeyDown
200
+ }
201
+ )
202
+ ]
203
+ }
204
+ );
205
+ }
206
+
207
+ export { SidebarContainer };
@@ -0,0 +1,260 @@
1
+ .container {
2
+ position: relative;
3
+ flex-shrink: 1;
4
+ height: 100%;
5
+ overflow: auto;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: var(--spacing-md);
9
+ width: var(--sidebar-width);
10
+ inline-size: var(--sidebar-width);
11
+ box-sizing: border-box;
12
+ border-inline-end: var(--border-width-thin) solid var(--color-border-default);
13
+ transition:
14
+ width var(--transition-fast) var(--ease-standard),
15
+ inline-size var(--transition-fast) var(--ease-standard);
16
+ }
17
+
18
+ .container.resizing {
19
+ transition: none;
20
+ }
21
+
22
+ /* Collapsed state */
23
+ .container.collapsed {
24
+ width: var(--component-size-lg);
25
+ inline-size: var(--component-size-lg);
26
+ box-sizing: content-box;
27
+ gap: var(--spacing-sm);
28
+ }
29
+
30
+ /* Global links / focus */
31
+ .container a {
32
+ text-decoration: none;
33
+ color: inherit;
34
+ }
35
+
36
+ .container a:focus-visible,
37
+ .container button:focus-visible {
38
+ outline: none;
39
+ box-shadow: var(--focus-ring);
40
+ }
41
+
42
+ /* HEADER (product + collapse) */
43
+ .header {
44
+ flex: 0 0 auto;
45
+ box-sizing: border-box;
46
+ box-shadow: 0 1px 0 var(--color-border-default);
47
+ padding-inline: var(--spacing-xs);
48
+ min-block-size: 60px;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ }
53
+
54
+ .productHeader {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+ gap: var(--spacing-sm);
59
+ flex-grow: 1;
60
+ }
61
+
62
+ /* Product logo container */
63
+ .productLogo {
64
+ display: flex;
65
+ align-items: center;
66
+ max-inline-size: 100%;
67
+ block-size: 25px;
68
+ min-width: 0;
69
+ }
70
+
71
+ /* Let wrapper elements such as Next.js <Link> inherit the logo sizing context */
72
+ .productLogo > * {
73
+ display: flex;
74
+ align-items: center;
75
+ max-inline-size: 100%;
76
+ block-size: 100%;
77
+ min-inline-size: 0;
78
+ }
79
+
80
+ /* Keep product logo visible in expanded state even when wrapped */
81
+ .productLogo :is(img, svg) {
82
+ display: block;
83
+ block-size: 100%;
84
+ inline-size: auto;
85
+ max-inline-size: 100%;
86
+ }
87
+
88
+ /* Collapse button */
89
+ .productHeader button {
90
+ flex: 0 0 auto;
91
+ }
92
+
93
+ /* Rotate icon when collapsed */
94
+ .collapsedIcon {
95
+ transform: rotate(180deg);
96
+ transition: transform 0.3s ease;
97
+ }
98
+
99
+ /* CONTENT */
100
+ .content {
101
+ overflow: auto;
102
+ flex: 1 1 auto;
103
+ overflow-y: visible;
104
+ display: flex;
105
+ flex-direction: column;
106
+ position: relative;
107
+ width: 100%;
108
+ gap: 5px;
109
+ }
110
+
111
+ .container:not(.collapsed) .content {
112
+ gap: var(--spacing-md);
113
+ }
114
+
115
+ /* FILTER */
116
+ .filter button {
117
+ border-radius: 0;
118
+ min-height: var(--component-size-md);
119
+ width: 100%;
120
+ padding: var(--spacing-xs);
121
+ color: var(--color-fg-muted);
122
+ }
123
+
124
+ .container:not(.collapsed) .filter {
125
+ padding-inline: var(--spacing-xs);
126
+ }
127
+
128
+ /* LINKS */
129
+ .links {
130
+ overflow: auto;
131
+ display: flex;
132
+ flex-grow: 1;
133
+ flex-direction: column;
134
+ gap: 2px;
135
+ font-size: var(--font-size-sm);
136
+ }
137
+
138
+ .container:not(.collapsed) .links {
139
+ padding-inline: var(--spacing-xs);
140
+ }
141
+
142
+ .container .links button {
143
+ background: none;
144
+ border: 0;
145
+ font-size: inherit;
146
+ color: inherit;
147
+ display: inline-flex;
148
+ padding: 0;
149
+ }
150
+
151
+ /* RESIZE HANDLE */
152
+ .resizeHandle {
153
+ position: absolute;
154
+ top: 0;
155
+ bottom: 0;
156
+ right: 0;
157
+ width: 8px;
158
+ cursor: col-resize;
159
+ z-index: 1;
160
+ user-select: none;
161
+ touch-action: none;
162
+ outline: none;
163
+ }
164
+
165
+ .resizeHandle::after {
166
+ content: '';
167
+ position: absolute;
168
+ top: 0;
169
+ bottom: 0;
170
+ right: 0;
171
+ width: var(--border-width-thin);
172
+ background-color: var(--color-border-subtle);
173
+ opacity: 0;
174
+ transition:
175
+ opacity var(--transition-fast) var(--ease-standard),
176
+ background-color var(--transition-fast) var(--ease-standard);
177
+ }
178
+
179
+ .resizeHandle:hover::after,
180
+ .resizeHandle:active::after {
181
+ opacity: 1;
182
+ background-color: var(--color-border-strong);
183
+ }
184
+
185
+ .resizeHandle:active::after {
186
+ background-color: var(--color-brand);
187
+ }
188
+
189
+ .resizeHandle:focus-visible {
190
+ box-shadow: var(--focus-ring);
191
+ }
192
+
193
+ .container.collapsed .resizeHandle {
194
+ display: none;
195
+ }
196
+
197
+ /* CUSTOM FOOTER SLOT */
198
+ .footerSlot {
199
+ flex: 0 0 auto;
200
+ }
201
+
202
+ .container:not(.collapsed) .footerSlot {
203
+ padding-inline: var(--spacing-xs);
204
+ }
205
+
206
+ /* FOOTER (company logo) */
207
+ .footer {
208
+ flex: 0 0 auto;
209
+ border-top: 1px solid var(--color-border-default);
210
+ padding: var(--spacing-sm);
211
+ display: flex;
212
+ justify-content: space-between;
213
+ align-items: center;
214
+ gap: var(--spacing-sm);
215
+ }
216
+
217
+ .companyLogo {
218
+ opacity: 0.6;
219
+ }
220
+
221
+ .companyLogo svg {
222
+ width: 80px;
223
+ height: auto;
224
+ display: block;
225
+ }
226
+
227
+ /* Hide company logo in collapsed state */
228
+ .container.collapsed .companyLogo {
229
+ display: none;
230
+ }
231
+
232
+ .version {
233
+ overflow: hidden;
234
+ white-space: nowrap;
235
+ text-overflow: ellipsis;
236
+ min-width: 0;
237
+ }
238
+ .logo {
239
+ display: none;
240
+ }
241
+
242
+ /* === Collapsed header behavior ===
243
+ Hide product logo entirely so the collapse button can truly center. */
244
+ .container.collapsed .productLogo {
245
+ display: none;
246
+ }
247
+
248
+ /* Center the collapse button in collapsed state */
249
+ .container.collapsed .productHeader {
250
+ justify-content: center;
251
+ gap: 0;
252
+ }
253
+
254
+ .container.collapsed .header {
255
+ padding: 0;
256
+ }
257
+
258
+ .container.collapsed .productHeader button {
259
+ margin-inline: auto;
260
+ }