@sybilion/uilib 1.4.19 → 1.4.21

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 (39) 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/ui/TextShimmer/TextShimmer.js +1 -1
  9. package/dist/esm/components/ui/TextShimmer/TextShimmer.styl.js +1 -1
  10. package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +1 -0
  11. package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +1 -0
  12. package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.js +1 -0
  13. package/dist/esm/index.js +1 -0
  14. package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +1 -0
  15. package/dist/esm/types/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.d.ts +2 -0
  16. package/dist/esm/types/src/docs/pages/DataDisplayOverviewPage.d.ts +1 -0
  17. package/dist/esm/types/src/docs/pages/FeedbackOverviewPage.d.ts +1 -0
  18. package/dist/esm/types/src/docs/pages/FormsOverviewPage.d.ts +1 -0
  19. package/dist/esm/types/src/docs/pages/LayoutOverviewPage.d.ts +1 -0
  20. package/dist/esm/types/src/docs/pages/NavigationOverviewPage.d.ts +1 -0
  21. package/dist/esm/types/src/docs/pages/OverlaysOverviewPage.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/src/components/ui/Sidebar/Sidebar.tsx +1 -0
  24. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +3 -1
  25. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl +20 -0
  26. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.d.ts +7 -0
  27. package/src/components/ui/Sidebar/SidebarGroupLabel/SidebarGroupLabel.tsx +18 -0
  28. package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl +1 -1
  29. package/src/components/ui/TextShimmer/TextShimmer.styl +1 -0
  30. package/src/components/ui/TextShimmer/TextShimmer.tsx +1 -1
  31. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +7 -1
  32. package/src/docs/pages/DataDisplayOverviewPage.tsx +241 -0
  33. package/src/docs/pages/FeedbackOverviewPage.tsx +57 -0
  34. package/src/docs/pages/FormsOverviewPage.tsx +590 -0
  35. package/src/docs/pages/LayoutOverviewPage.tsx +259 -0
  36. package/src/docs/pages/NavigationOverviewPage.tsx +94 -0
  37. package/src/docs/pages/OverlaysOverviewPage.tsx +196 -0
  38. package/src/docs/pages/SidebarPage.tsx +4 -2
  39. package/src/docs/registry.ts +36 -0
@@ -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%}.SidebarGroup_sidebarGroup__STPzX:first-child{padding-top:var(--p-11)}";
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
 
@@ -4,7 +4,7 @@ import React__default, { useMemo } from 'react';
4
4
  import { motion } from 'motion/react';
5
5
  import S from './TextShimmer.styl.js';
6
6
 
7
- function TextShimmerComponent({ children, as: Component = 'p', className, duration = 2, spread = 2, inverted = false, }) {
7
+ function TextShimmerComponent({ children, as: Component = 'p', className, duration = 2, spread = 4, inverted = false, }) {
8
8
  const MotionComponent = motion.create(Component);
9
9
  const { shimmerGradient, baseGradient } = useMemo(() => {
10
10
  const dynamicSpread = children.length * spread;
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = ".TextShimmer_root__EQnCh{-webkit-background-clip:text;background-clip:text;background-repeat:no-repeat,repeat;background-size:200% 100%,100% 100%;color:transparent!important;display:inline-block;position:relative;--base-color:#a1a1aa;--base-gradient-color:#000}.dark .TextShimmer_root__EQnCh{--base-color:#71717a;--base-gradient-color:#fff}";
3
+ var css_248z = ".TextShimmer_root__EQnCh{-webkit-background-clip:text;background-clip:text;background-repeat:no-repeat,repeat;background-size:200% 100%,100% 100%;color:transparent!important;display:inline-block;position:relative;width:-moz-fit-content;width:fit-content;--base-color:#a1a1aa;--base-gradient-color:#000}.dark .TextShimmer_root__EQnCh{--base-color:#71717a;--base-gradient-color:#fff}";
4
4
  var S = {"root":"TextShimmer_root__EQnCh"};
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;
@@ -0,0 +1 @@
1
+ export default function DataDisplayOverviewPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function FeedbackOverviewPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function FormsOverviewPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function LayoutOverviewPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function NavigationOverviewPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function OverlaysOverviewPage(): 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.21",
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,6 @@
7
7
  min-width 0
8
8
  flex-direction column
9
9
  padding 0
10
- padding-top 40px
10
+
11
+ &:first-child
12
+ padding-top var(--p-11)
@@ -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,6 +1,7 @@
1
1
  .root
2
2
  position relative
3
3
  display inline-block
4
+ width fit-content
4
5
  background-size 200% 100%, 100% 100%
5
6
  -webkit-background-clip text
6
7
  background-clip text
@@ -11,7 +11,7 @@ function TextShimmerComponent({
11
11
  as: Component = 'p',
12
12
  className,
13
13
  duration = 2,
14
- spread = 2,
14
+ spread = 4,
15
15
  inverted = false,
16
16
  }: TextShimmerProps) {
17
17
  const MotionComponent = motion.create(
@@ -26,7 +26,13 @@ function entriesBySection() {
26
26
  map.set(entry.section, list);
27
27
  }
28
28
  for (const list of map.values()) {
29
- list.sort((a, b) => a.title.localeCompare(b.title));
29
+ list.sort((a, b) => {
30
+ const aOverview = a.slug.endsWith('-overview');
31
+ const bOverview = b.slug.endsWith('-overview');
32
+ if (aOverview && !bOverview) return -1;
33
+ if (!aOverview && bOverview) return 1;
34
+ return a.title.localeCompare(b.title);
35
+ });
30
36
  }
31
37
  return map;
32
38
  }
@@ -0,0 +1,241 @@
1
+ import { useState } from 'react';
2
+
3
+ import { AnalysesSelector } from '#uilib/components/ui/AnalysesSelector';
4
+ import { AnalysisLineIcon } from '#uilib/components/ui/AnalysisLineIcon';
5
+ import {
6
+ Avatar,
7
+ AvatarFallback,
8
+ AvatarImage,
9
+ } from '#uilib/components/ui/Avatar';
10
+ import { Chip } from '#uilib/components/ui/Chip';
11
+ import { FileChip } from '#uilib/components/ui/FileChip';
12
+ import { Kicker } from '#uilib/components/ui/Kicker';
13
+ import { PageContentSection } from '#uilib/components/ui/Page';
14
+ import { PullQuote } from '#uilib/components/ui/PullQuote';
15
+ import { SmartTextTruncate } from '#uilib/components/ui/SmartTextTruncate';
16
+ import {
17
+ Table,
18
+ TableBody,
19
+ TableCell,
20
+ TableHead,
21
+ TableHeader,
22
+ TableRow,
23
+ } from '#uilib/components/ui/Table';
24
+ import { TextWithDeferTooltip } from '#uilib/components/ui/TextWithDeferTooltip';
25
+
26
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
27
+ import { DocsHeaderActions } from '../docsHeaderActions';
28
+
29
+ const SAMPLE_ROWS = [
30
+ { name: 'Ada', role: 'Admin', status: 'Active' },
31
+ { name: 'Bob', role: 'Viewer', status: 'Active' },
32
+ { name: 'Cara', role: 'Editor', status: 'Invited' },
33
+ ] as const;
34
+
35
+ const ANALYSES_ITEMS = [
36
+ { id: -1, label: 'Historical', color: 'var(--foreground)' },
37
+ {
38
+ id: 1,
39
+ label: 'Analysis A',
40
+ color: 'var(--chart-1)',
41
+ status: 'done' as const,
42
+ updated_at: new Date().toISOString(),
43
+ },
44
+ {
45
+ id: 2,
46
+ label: 'Analysis B',
47
+ color: 'var(--chart-2)',
48
+ status: 'done' as const,
49
+ updated_at: new Date().toISOString(),
50
+ },
51
+ ];
52
+
53
+ const LONG_TRUNCATE_LABEL =
54
+ 'Impact — Impact Report: Professional Beauty Segment Analysis Constraints Index';
55
+
56
+ const LONG_TOOLTIP_LABEL =
57
+ 'This is a long label that should overflow and show a tooltip on hover.';
58
+
59
+ const panelStyle: React.CSSProperties = {
60
+ display: 'flex',
61
+ flexDirection: 'column',
62
+ gap: '0.75rem',
63
+ padding: 'var(--p-3)',
64
+ borderRadius: 'var(--radius-3)',
65
+ };
66
+
67
+ export default function DataDisplayOverviewPage() {
68
+ const [selectedAnalysisIds, setSelectedAnalysisIds] = useState<Set<number>>(
69
+ () => new Set([1]),
70
+ );
71
+
72
+ return (
73
+ <>
74
+ <AppPageHeader
75
+ breadcrumbs={[{ label: 'Overview' }]}
76
+ title="Overview"
77
+ subheader="Avatars, labels, chips, and tabular data."
78
+ actions={<DocsHeaderActions />}
79
+ />
80
+ <PageContentSection
81
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
82
+ >
83
+ <section>
84
+ <h3 style={{ marginBottom: '1rem' }}>AnalysesSelector</h3>
85
+ <div style={{ ...panelStyle, maxWidth: 420 }}>
86
+ <AnalysesSelector
87
+ size="sm"
88
+ items={ANALYSES_ITEMS}
89
+ selectedIds={selectedAnalysisIds}
90
+ onItemToggle={id => {
91
+ setSelectedAnalysisIds(prev => {
92
+ const next = new Set(prev);
93
+ if (next.has(id)) next.delete(id);
94
+ else next.add(id);
95
+ return next;
96
+ });
97
+ }}
98
+ placeholder="Analyses"
99
+ />
100
+ </div>
101
+ </section>
102
+
103
+ <section>
104
+ <h3 style={{ marginBottom: '1rem' }}>AnalysisLineIcon</h3>
105
+ <div
106
+ style={{
107
+ ...panelStyle,
108
+ flexDirection: 'row',
109
+ alignItems: 'center',
110
+ }}
111
+ >
112
+ <AnalysisLineIcon color="var(--chart-1)" variant="solid" />
113
+ <AnalysisLineIcon color="var(--chart-2)" variant="dashed" />
114
+ </div>
115
+ </section>
116
+
117
+ <section>
118
+ <h3 style={{ marginBottom: '1rem' }}>Avatar</h3>
119
+ <div
120
+ style={{
121
+ ...panelStyle,
122
+ flexDirection: 'row',
123
+ alignItems: 'center',
124
+ }}
125
+ >
126
+ <Avatar>
127
+ <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
128
+ <AvatarFallback>CN</AvatarFallback>
129
+ </Avatar>
130
+ <Avatar>
131
+ <AvatarFallback>AB</AvatarFallback>
132
+ </Avatar>
133
+ </div>
134
+ </section>
135
+
136
+ <section>
137
+ <h3 style={{ marginBottom: '1rem' }}>Chip</h3>
138
+ <div
139
+ style={{
140
+ ...panelStyle,
141
+ flexDirection: 'row',
142
+ flexWrap: 'wrap',
143
+ }}
144
+ >
145
+ <Chip variant="neutral">Neutral</Chip>
146
+ <Chip variant="positive">Positive</Chip>
147
+ <Chip variant="negative">Negative</Chip>
148
+ <Chip variant="accent">Accent</Chip>
149
+ </div>
150
+ </section>
151
+
152
+ <section>
153
+ <h3 style={{ marginBottom: '1rem' }}>FileChip</h3>
154
+ <div style={{ ...panelStyle, alignItems: 'flex-start' }}>
155
+ <FileChip name="report.pdf" format="pdf" hint="PDF" />
156
+ <FileChip
157
+ name="notes.txt"
158
+ format="text"
159
+ hint="Text file"
160
+ onRemove={() => {}}
161
+ />
162
+ </div>
163
+ </section>
164
+
165
+ <section>
166
+ <h3 style={{ marginBottom: '1rem' }}>Table</h3>
167
+ <div style={panelStyle}>
168
+ <Table size="md">
169
+ <TableHeader>
170
+ <TableRow>
171
+ <TableHead>Name</TableHead>
172
+ <TableHead>Role</TableHead>
173
+ <TableHead>Status</TableHead>
174
+ </TableRow>
175
+ </TableHeader>
176
+ <TableBody>
177
+ {SAMPLE_ROWS.map(row => (
178
+ <TableRow key={row.name}>
179
+ <TableCell>{row.name}</TableCell>
180
+ <TableCell>{row.role}</TableCell>
181
+ <TableCell>{row.status}</TableCell>
182
+ </TableRow>
183
+ ))}
184
+ </TableBody>
185
+ </Table>
186
+ </div>
187
+ </section>
188
+
189
+ <section>
190
+ <h3 style={{ marginBottom: '1rem' }}>Kicker</h3>
191
+ <div style={panelStyle}>
192
+ <Kicker dash>Quarterly outlook</Kicker>
193
+ <h2 style={{ marginTop: '0.5rem', marginBottom: 0 }}>
194
+ Polymer demand
195
+ </h2>
196
+ </div>
197
+ </section>
198
+
199
+ <section>
200
+ <h3 style={{ marginBottom: '1rem' }}>PullQuote</h3>
201
+ <div style={panelStyle}>
202
+ <PullQuote
203
+ attribution="Marta Linden"
204
+ attributionRole="Head of procurement"
205
+ >
206
+ Forecasts are only useful when they arrive before the decision.
207
+ </PullQuote>
208
+ </div>
209
+ </section>
210
+
211
+ <section>
212
+ <h3 style={{ marginBottom: '1rem' }}>SmartTextTruncate</h3>
213
+ <div
214
+ style={{
215
+ ...panelStyle,
216
+ width: 240,
217
+ border: '1px solid var(--border)',
218
+ }}
219
+ >
220
+ <SmartTextTruncate style={{ display: 'block', width: '100%' }}>
221
+ {LONG_TRUNCATE_LABEL}
222
+ </SmartTextTruncate>
223
+ </div>
224
+ </section>
225
+
226
+ <section>
227
+ <h3 style={{ marginBottom: '1rem' }}>TextWithDeferTooltip</h3>
228
+ <div
229
+ style={{
230
+ ...panelStyle,
231
+ maxWidth: 120,
232
+ border: '1px dashed var(--border)',
233
+ }}
234
+ >
235
+ <TextWithDeferTooltip>{LONG_TOOLTIP_LABEL}</TextWithDeferTooltip>
236
+ </div>
237
+ </section>
238
+ </PageContentSection>
239
+ </>
240
+ );
241
+ }
@@ -0,0 +1,57 @@
1
+ import { PageContentSection } from '#uilib/components/ui/Page';
2
+ import { Progress } from '#uilib/components/ui/Progress';
3
+ import { Skeleton } from '#uilib/components/ui/Skeleton';
4
+ import { TextShimmer } from '#uilib/components/ui/TextShimmer';
5
+
6
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
7
+ import { DocsHeaderActions } from '../docsHeaderActions';
8
+
9
+ const PROGRESS_WIDTH = 320;
10
+
11
+ const panelStyle: React.CSSProperties = {
12
+ display: 'flex',
13
+ flexDirection: 'column',
14
+ gap: '0.75rem',
15
+ padding: 'var(--p-3)',
16
+ borderRadius: 'var(--radius-3)',
17
+ };
18
+
19
+ export default function FeedbackOverviewPage() {
20
+ return (
21
+ <>
22
+ <AppPageHeader
23
+ breadcrumbs={[{ label: 'Overview' }]}
24
+ title="Overview"
25
+ subheader="Progress, loading placeholders, and animated status text."
26
+ actions={<DocsHeaderActions />}
27
+ />
28
+ <PageContentSection
29
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
30
+ >
31
+ <section>
32
+ <h3 style={{ marginBottom: '1rem' }}>Progress</h3>
33
+ <div style={panelStyle}>
34
+ <Progress value={65} style={{ width: PROGRESS_WIDTH }} />
35
+ <Progress style={{ width: PROGRESS_WIDTH }} />
36
+ </div>
37
+ </section>
38
+
39
+ <section>
40
+ <h3 style={{ marginBottom: '1rem' }}>Skeleton</h3>
41
+ <div style={{ ...panelStyle, maxWidth: 320 }}>
42
+ <Skeleton style={{ height: 14, width: '100%' }} />
43
+ <Skeleton style={{ height: 14, width: '80%' }} />
44
+ <Skeleton style={{ height: 80, width: '100%' }} />
45
+ </div>
46
+ </section>
47
+
48
+ <section>
49
+ <h3 style={{ marginBottom: '1rem' }}>TextShimmer</h3>
50
+ <div style={panelStyle}>
51
+ <TextShimmer>Generating forecast…</TextShimmer>
52
+ </div>
53
+ </section>
54
+ </PageContentSection>
55
+ </>
56
+ );
57
+ }