@sybilion/uilib 1.4.19 → 1.4.20

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 (21) hide show
  1. package/dist/esm/components/ui/Chat/ChatChrome/ChatChrome.js +1 -0
  2. package/dist/esm/components/ui/Chat/ChatSheet/useChatPanelChromeModel.js +1 -0
  3. package/dist/esm/components/ui/Page/Breadcrumbs/Breadcrumbs.js +1 -0
  4. package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.js +1 -1
  5. package/dist/esm/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.js +9 -0
  6. package/dist/esm/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js +7 -0
  7. package/dist/esm/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl.js +1 -1
  8. package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +1 -0
  9. package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +1 -0
  10. package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.js +1 -0
  11. package/dist/esm/index.js +1 -0
  12. package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +1 -0
  13. package/dist/esm/types/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.d.ts +2 -0
  14. package/package.json +1 -1
  15. package/src/components/ui/Sidebar/Sidebar.tsx +1 -0
  16. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +0 -1
  17. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl +20 -0
  18. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.d.ts +7 -0
  19. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.tsx +18 -0
  20. package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl +1 -1
  21. package/src/docs/pages/SidebarPage.tsx +4 -2
@@ -28,6 +28,7 @@ import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
28
28
  import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
29
29
  import '@radix-ui/react-slot';
30
30
  import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
31
+ import '../../Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
31
32
  import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
32
33
  import '../../SmartTextTruncate/SmartTextTruncate.js';
33
34
  import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
@@ -37,6 +37,7 @@ import '../../Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
37
37
  import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
38
38
  import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
39
39
  import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
40
+ import '../../Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
40
41
  import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
41
42
  import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
42
43
  import '../../Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
@@ -24,6 +24,7 @@ import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
24
24
  import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
25
25
  import '@radix-ui/react-slot';
26
26
  import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
27
+ import '../../Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
27
28
  import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
28
29
  import '../../Button/Button.styl.js';
29
30
  import { SlashIcon } from 'lucide-react';
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.SidebarGroup_sidebarGroup__STPzX{display:flex;flex-direction:column;min-width:0;padding:40px 0 0;position:relative;width:100%}";
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.SidebarGroup_sidebarGroup__STPzX{display:flex;flex-direction:column;min-width:0;padding:0;position:relative;width:100%}";
4
4
  var S = {"sidebarGroup":"SidebarGroup_sidebarGroup__STPzX"};
5
5
  styleInject(css_248z);
6
6
 
@@ -0,0 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import cn from 'classnames';
3
+ import S from './SidebarGroupLabel.styl.js';
4
+
5
+ function SidebarGroupLabel({ className, ...props }) {
6
+ return (jsx("div", { "data-slot": "sidebar-group-label", "data-sidebar": "group-label", className: cn(S.sidebarGroupLabel, className), ...props }));
7
+ }
8
+
9
+ export { SidebarGroupLabel };
@@ -0,0 +1,7 @@
1
+ import styleInject from 'style-inject';
2
+
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.SidebarGroupLabel_sidebarGroupLabel__q6MD9{align-items:center;color:var(--muted-foreground);display:flex;flex-shrink:0;font-size:var(--font-size-xs);font-weight:500;line-height:1;min-height:40px;min-width:0;overflow:hidden;padding:var(--p-2) var(--p-8);pointer-events:none;text-overflow:ellipsis;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}";
4
+ var S = {"sidebarGroupLabel":"SidebarGroupLabel_sidebarGroupLabel__q6MD9"};
5
+ styleInject(css_248z);
6
+
7
+ export { S as default };
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.SidebarMenu_sidebarMenu__s23ie{display:flex;flex-direction:column;gap:var(--p-4);list-style:none;min-width:0;padding:0 var(--p-11) var(--p-10) var(--p-8);width:100%}@media (max-width:768px){.SidebarMenu_sidebarMenu__s23ie{padding-right:var(--p-8)}}.SidebarMenu_sidebarMenuItem__-0rjO{cursor:pointer;position:relative}.SidebarMenu_sidebarMenuBadge__3Xl-9{align-items:center;border-radius:.375rem;color:var(--sidebar-foreground);display:flex;font-weight:500;height:1.25rem;justify-content:center;min-width:1.25rem;padding-left:.25rem;padding-right:.25rem;pointer-events:none;position:absolute;right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=sm]{top:.25rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=md]{top:.375rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=lg]{top:.625rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-collapsible=icon]{display:none}.SidebarMenu_sidebarMenuSkeleton__v8pRu{align-items:center;border-radius:.375rem;display:flex;gap:.5rem;height:2rem;padding-left:.5rem;padding-right:.5rem}.SidebarMenu_sidebarMenuSkeletonIcon__9LFRp{border-radius:.375rem;height:1rem;width:1rem}.SidebarMenu_sidebarMenuSkeletonText__cRqnl{flex:1;height:1rem;max-width:var(--skeleton-width)}";
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.SidebarMenu_sidebarMenu__s23ie{display:flex;flex-direction:column;gap:var(--p-2);list-style:none;min-width:0;padding:0 var(--p-11) var(--p-10) var(--p-8);width:100%}@media (max-width:768px){.SidebarMenu_sidebarMenu__s23ie{padding-right:var(--p-8)}}.SidebarMenu_sidebarMenuItem__-0rjO{cursor:pointer;position:relative}.SidebarMenu_sidebarMenuBadge__3Xl-9{align-items:center;border-radius:.375rem;color:var(--sidebar-foreground);display:flex;font-weight:500;height:1.25rem;justify-content:center;min-width:1.25rem;padding-left:.25rem;padding-right:.25rem;pointer-events:none;position:absolute;right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=sm]{top:.25rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=md]{top:.375rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-size=lg]{top:.625rem}.SidebarMenu_sidebarMenuBadge__3Xl-9[data-collapsible=icon]{display:none}.SidebarMenu_sidebarMenuSkeleton__v8pRu{align-items:center;border-radius:.375rem;display:flex;gap:.5rem;height:2rem;padding-left:.5rem;padding-right:.5rem}.SidebarMenu_sidebarMenuSkeletonIcon__9LFRp{border-radius:.375rem;height:1rem;width:1rem}.SidebarMenu_sidebarMenuSkeletonText__cRqnl{flex:1;height:1rem;max-width:var(--skeleton-width)}";
4
4
  var S = {"sidebarMenu":"SidebarMenu_sidebarMenu__s23ie","sidebarMenuItem":"SidebarMenu_sidebarMenuItem__-0rjO","sidebarMenuBadge":"SidebarMenu_sidebarMenuBadge__3Xl-9","sidebarMenuSkeleton":"SidebarMenu_sidebarMenuSkeleton__v8pRu","sidebarMenuSkeletonIcon":"SidebarMenu_sidebarMenuSkeletonIcon__9LFRp","sidebarMenuSkeletonText":"SidebarMenu_sidebarMenuSkeletonText__cRqnl"};
5
5
  styleInject(css_248z);
6
6
 
@@ -32,6 +32,7 @@ import '../../ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
32
32
  import '../../ui/Sidebar/SidebarContent/SidebarContent.styl.js';
33
33
  import '../../ui/Sidebar/SidebarGroup/SidebarGroup.styl.js';
34
34
  import '../../ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
35
+ import '../../ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
35
36
  import '../../ui/Sidebar/SidebarMenu/SidebarMenu.styl.js';
36
37
  import '../../ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
37
38
  import '../../ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
@@ -32,6 +32,7 @@ import '../../ui/Sidebar/SidebarContent/SidebarContent.styl.js';
32
32
  import '../../ui/Sidebar/SidebarGroup/SidebarGroup.styl.js';
33
33
  import '@radix-ui/react-slot';
34
34
  import '../../ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
35
+ import '../../ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
35
36
  import '../../ui/Sidebar/SidebarMenu/SidebarMenu.styl.js';
36
37
  import '../../ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
37
38
  import '../../ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
@@ -25,6 +25,7 @@ import '../../ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
25
25
  import '../../ui/Sidebar/SidebarContent/SidebarContent.styl.js';
26
26
  import { SidebarGroup } from '../../ui/Sidebar/SidebarGroup/SidebarGroup.js';
27
27
  import '../../ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
28
+ import '../../ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
28
29
  import { SidebarMenu, SidebarMenuItem } from '../../ui/Sidebar/SidebarMenu/SidebarMenu.js';
29
30
  import { SidebarMenuButton } from '../../ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js';
30
31
  import '../../ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
package/dist/esm/index.js CHANGED
@@ -106,6 +106,7 @@ export { SidebarSeparator } from './components/ui/Sidebar/SidebarSeparator/Sideb
106
106
  export { SidebarContent } from './components/ui/Sidebar/SidebarContent/SidebarContent.js';
107
107
  export { SidebarGroup } from './components/ui/Sidebar/SidebarGroup/SidebarGroup.js';
108
108
  export { SidebarGroupAction } from './components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.js';
109
+ export { SidebarGroupLabel } from './components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.js';
109
110
  export { SidebarMenu, SidebarMenuBadge, SidebarMenuItem } from './components/ui/Sidebar/SidebarMenu/SidebarMenu.js';
110
111
  export { SidebarMenuButton } from './components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js';
111
112
  export { SidebarMenuAction } from './components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.js';
@@ -12,6 +12,7 @@ export { SidebarSeparator } from './SidebarSeparator/SidebarSeparator';
12
12
  export { SidebarContent } from './SidebarContent/SidebarContent';
13
13
  export { SidebarGroup } from './SidebarGroup/SidebarGroup';
14
14
  export { SidebarGroupAction } from './SidebarGroupAction/SidebarGroupAction';
15
+ export { SidebarGroupLabel } from './SidebarGroupLabel/SidebarGroupLabel';
15
16
  export { SidebarMenu, SidebarMenuItem, SidebarMenuBadge, } from './SidebarMenu/SidebarMenu';
16
17
  export { SidebarMenuButton } from './SidebarMenuButton/SidebarMenuButton';
17
18
  export { SidebarMenuAction } from './SidebarMenuAction/SidebarMenuAction';
@@ -0,0 +1,2 @@
1
+ import { ComponentProps } from 'react';
2
+ export declare function SidebarGroupLabel({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -16,6 +16,7 @@ export { SidebarSeparator } from './SidebarSeparator/SidebarSeparator';
16
16
  export { SidebarContent } from './SidebarContent/SidebarContent';
17
17
  export { SidebarGroup } from './SidebarGroup/SidebarGroup';
18
18
  export { SidebarGroupAction } from './SidebarGroupAction/SidebarGroupAction';
19
+ export { SidebarGroupLabel } from './SidebarGroupLabel/SidebarGroupLabel';
19
20
  export {
20
21
  SidebarMenu,
21
22
  SidebarMenuItem,
@@ -7,4 +7,3 @@
7
7
  min-width 0
8
8
  flex-direction column
9
9
  padding 0
10
- padding-top 40px
@@ -0,0 +1,20 @@
1
+ @import '../../../../lib/theme.styl';
2
+
3
+ .sidebarGroupLabel
4
+ display flex
5
+ align-items center
6
+ width 100%
7
+ min-width 0
8
+ min-height 40px
9
+ flex-shrink 0
10
+ padding var(--p-2) var(--p-8)
11
+ font-size var(--font-size-xs)
12
+ text-transform uppercase
13
+ font-weight 500
14
+ line-height 1
15
+ color var(--muted-foreground)
16
+ pointer-events none
17
+ user-select none
18
+ overflow hidden
19
+ text-overflow ellipsis
20
+ white-space nowrap
@@ -0,0 +1,7 @@
1
+ // This file is automatically generated.
2
+ // Please do not change this file!
3
+ interface CssExports {
4
+ 'sidebarGroupLabel': string;
5
+ }
6
+ export const cssExports: CssExports;
7
+ export default cssExports;
@@ -0,0 +1,18 @@
1
+ import cn from 'classnames';
2
+ import { ComponentProps } from 'react';
3
+
4
+ import S from './SidebarGroupLabel.styl';
5
+
6
+ export function SidebarGroupLabel({
7
+ className,
8
+ ...props
9
+ }: ComponentProps<'div'>) {
10
+ return (
11
+ <div
12
+ data-slot="sidebar-group-label"
13
+ data-sidebar="group-label"
14
+ className={cn(S.sidebarGroupLabel, className)}
15
+ {...props}
16
+ />
17
+ );
18
+ }
@@ -3,7 +3,7 @@
3
3
  .sidebarMenu
4
4
  display flex
5
5
  flex-direction column
6
- gap var(--p-4)
6
+ gap var(--p-2)
7
7
  width 100%
8
8
  min-width 0
9
9
  padding 0 var(--p-11) var(--p-10) var(--p-8)
@@ -1,7 +1,6 @@
1
- import { PageContentSection } from '#uilib/components/ui/Page';
2
- import sidebarGuidance from '#uilib/components/ui/Sidebar/AGENT.md';
3
1
  import {
4
2
  SidebarGroup,
3
+ SidebarGroupLabel,
5
4
  SidebarMenu,
6
5
  SidebarMenuButton,
7
6
  SidebarMenuItem,
@@ -10,6 +9,8 @@ import {
10
9
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
11
10
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
12
11
  import { DocsHeaderActions } from '../docsHeaderActions';
12
+ import { PageContentSection } from '#uilib/components/ui/Page';
13
+ import sidebarGuidance from '#uilib/components/ui/Sidebar/AGENT.md';
13
14
 
14
15
  export default function SidebarPage() {
15
16
  return (
@@ -32,6 +33,7 @@ export default function SidebarPage() {
32
33
  borderRadius: 'var(--p-4)',
33
34
  }}
34
35
  >
36
+ <SidebarGroupLabel>Group label</SidebarGroupLabel>
35
37
  <SidebarMenu>
36
38
  <SidebarMenuItem>
37
39
  <SidebarMenuButton type="button" isActive>