@b3-crow/ui-kit 0.0.34-pr30.4 → 0.0.35-pr30.5
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.
- package/dist/components/cards/TipCard.d.ts +5 -0
- package/dist/components/cards/TipCard.d.ts.map +1 -0
- package/dist/components/{dashboard → cards}/TipCard.js +0 -7
- package/dist/components/cards/TipCard.js.map +1 -0
- package/dist/components/chat/MessageBubble.d.ts +13 -0
- package/dist/components/chat/MessageBubble.d.ts.map +1 -0
- package/dist/components/chat/MessageBubble.js +19 -0
- package/dist/components/chat/MessageBubble.js.map +1 -0
- package/dist/components/dashboard/ChatHistorySection.d.ts.map +1 -1
- package/dist/components/dashboard/ChatHistorySection.js +31 -29
- package/dist/components/dashboard/ChatHistorySection.js.map +1 -1
- package/dist/components/dashboard/CollapseToggleButton.d.ts +7 -0
- package/dist/components/dashboard/CollapseToggleButton.d.ts.map +1 -0
- package/dist/components/dashboard/CollapseToggleButton.js +7 -0
- package/dist/components/dashboard/CollapseToggleButton.js.map +1 -0
- package/dist/components/dashboard/DashboardBackground.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardBackground.js +13 -9
- package/dist/components/dashboard/DashboardBackground.js.map +1 -1
- package/dist/components/dashboard/Header.d.ts.map +1 -1
- package/dist/components/dashboard/Header.js +62 -58
- package/dist/components/dashboard/Header.js.map +1 -1
- package/dist/components/dashboard/MetricsCard.d.ts.map +1 -1
- package/dist/components/dashboard/MetricsCard.js +12 -26
- package/dist/components/dashboard/MetricsCard.js.map +1 -1
- package/dist/components/dashboard/MobileSidebar.d.ts.map +1 -1
- package/dist/components/dashboard/MobileSidebar.js +8 -20
- package/dist/components/dashboard/MobileSidebar.js.map +1 -1
- package/dist/components/dashboard/NavMenu.d.ts +3 -1
- package/dist/components/dashboard/NavMenu.d.ts.map +1 -1
- package/dist/components/dashboard/NavMenu.js +44 -42
- package/dist/components/dashboard/NavMenu.js.map +1 -1
- package/dist/components/dashboard/NavTooltip.d.ts +10 -0
- package/dist/components/dashboard/NavTooltip.d.ts.map +1 -0
- package/dist/components/dashboard/NavTooltip.js +36 -0
- package/dist/components/dashboard/NavTooltip.js.map +1 -0
- package/dist/components/dashboard/PatternCard.d.ts +1 -1
- package/dist/components/dashboard/PatternCard.d.ts.map +1 -1
- package/dist/components/dashboard/PatternCard.js +22 -13
- package/dist/components/dashboard/PatternCard.js.map +1 -1
- package/dist/components/dashboard/SettingsDropup.d.ts +2 -1
- package/dist/components/dashboard/SettingsDropup.d.ts.map +1 -1
- package/dist/components/dashboard/SettingsDropup.js +9 -13
- package/dist/components/dashboard/SettingsDropup.js.map +1 -1
- package/dist/components/dashboard/SettingsModal.js +3 -3
- package/dist/components/dashboard/SettingsModal.js.map +1 -1
- package/dist/components/dashboard/SidePanel.d.ts.map +1 -1
- package/dist/components/dashboard/SidePanel.js +1 -1
- package/dist/components/dashboard/SidePanel.js.map +1 -1
- package/dist/components/dashboard/Sidebar.d.ts +1 -1
- package/dist/components/dashboard/Sidebar.d.ts.map +1 -1
- package/dist/components/dashboard/Sidebar.js +7 -20
- package/dist/components/dashboard/Sidebar.js.map +1 -1
- package/dist/components/dashboard/SidebarLogo.d.ts +3 -1
- package/dist/components/dashboard/SidebarLogo.d.ts.map +1 -1
- package/dist/components/dashboard/SidebarLogo.js +6 -2
- package/dist/components/dashboard/SidebarLogo.js.map +1 -1
- package/dist/components/dashboard/constants/accessibility.d.ts +24 -0
- package/dist/components/dashboard/constants/accessibility.d.ts.map +1 -0
- package/dist/components/dashboard/constants/accessibility.js +26 -0
- package/dist/components/dashboard/constants/accessibility.js.map +1 -0
- package/dist/components/dashboard/constants/animations.d.ts +73 -0
- package/dist/components/dashboard/constants/animations.d.ts.map +1 -0
- package/dist/components/dashboard/constants/animations.js +48 -0
- package/dist/components/dashboard/constants/animations.js.map +1 -0
- package/dist/components/dashboard/constants/colors.d.ts +55 -0
- package/dist/components/dashboard/constants/colors.d.ts.map +1 -0
- package/dist/components/dashboard/constants/colors.js +55 -0
- package/dist/components/dashboard/constants/colors.js.map +1 -0
- package/dist/components/dashboard/constants/gradients.d.ts +29 -0
- package/dist/components/dashboard/constants/gradients.d.ts.map +1 -0
- package/dist/components/dashboard/constants/gradients.js +29 -0
- package/dist/components/dashboard/constants/gradients.js.map +1 -0
- package/dist/components/dashboard/constants/icons.d.ts +4 -0
- package/dist/components/dashboard/constants/icons.d.ts.map +1 -0
- package/dist/components/dashboard/constants/icons.js +23 -0
- package/dist/components/dashboard/constants/icons.js.map +1 -0
- package/dist/components/dashboard/constants/navigation.d.ts +3 -0
- package/dist/components/dashboard/constants/navigation.d.ts.map +1 -0
- package/dist/components/dashboard/constants/navigation.js +35 -0
- package/dist/components/dashboard/constants/navigation.js.map +1 -0
- package/dist/components/dashboard/constants/sizing.d.ts +61 -0
- package/dist/components/dashboard/constants/sizing.d.ts.map +1 -0
- package/dist/components/dashboard/constants/sizing.js +49 -0
- package/dist/components/dashboard/constants/sizing.js.map +1 -0
- package/dist/components/dashboard/constants/styles.d.ts +44 -0
- package/dist/components/dashboard/constants/styles.d.ts.map +1 -0
- package/dist/components/dashboard/constants/styles.js +44 -0
- package/dist/components/dashboard/constants/styles.js.map +1 -0
- package/dist/components/dashboard/constants.d.ts +10 -6
- package/dist/components/dashboard/constants.d.ts.map +1 -1
- package/dist/components/dashboard/constants.js +8 -7
- package/dist/components/dashboard/constants.js.map +1 -1
- package/dist/components/dashboard/index.d.ts +23 -13
- package/dist/components/dashboard/index.d.ts.map +1 -1
- package/dist/components/dashboard/index.js +23 -13
- package/dist/components/dashboard/index.js.map +1 -1
- package/dist/components/dashboard/types.d.ts +2 -23
- package/dist/components/dashboard/types.d.ts.map +1 -1
- package/dist/components/dashboard/utils/accessibilityUtils.d.ts +9 -0
- package/dist/components/dashboard/utils/accessibilityUtils.d.ts.map +1 -0
- package/dist/components/dashboard/utils/accessibilityUtils.js +56 -0
- package/dist/components/dashboard/utils/accessibilityUtils.js.map +1 -0
- package/dist/components/dashboard/utils/pathUtils.d.ts +4 -0
- package/dist/components/dashboard/utils/pathUtils.d.ts.map +1 -0
- package/dist/components/dashboard/utils/pathUtils.js +16 -0
- package/dist/components/dashboard/utils/pathUtils.js.map +1 -0
- package/dist/components/display/IconBadge.d.ts +12 -0
- package/dist/components/display/IconBadge.d.ts.map +1 -0
- package/dist/components/display/IconBadge.js +26 -0
- package/dist/components/display/IconBadge.js.map +1 -0
- package/dist/components/display/SourceIcon.d.ts +7 -0
- package/dist/components/display/SourceIcon.d.ts.map +1 -0
- package/dist/components/display/SourceIcon.js +23 -0
- package/dist/components/display/SourceIcon.js.map +1 -0
- package/dist/components/display/StatusBadge.d.ts +14 -0
- package/dist/components/display/StatusBadge.d.ts.map +1 -0
- package/dist/components/{dashboard → display}/StatusBadge.js +0 -12
- package/dist/components/display/StatusBadge.js.map +1 -0
- package/dist/components/display/StatusIndicator.d.ts +7 -0
- package/dist/components/display/StatusIndicator.d.ts.map +1 -0
- package/dist/components/{dashboard → display}/StatusIndicator.js +0 -9
- package/dist/components/display/StatusIndicator.js.map +1 -0
- package/dist/components/display/Tag.d.ts +7 -0
- package/dist/components/display/Tag.d.ts.map +1 -0
- package/dist/components/display/Tag.js +12 -0
- package/dist/components/display/Tag.js.map +1 -0
- package/dist/components/feedback/GeneratingState.d.ts +12 -0
- package/dist/components/feedback/GeneratingState.d.ts.map +1 -0
- package/dist/components/feedback/GeneratingState.js +19 -0
- package/dist/components/feedback/GeneratingState.js.map +1 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +16 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/FilterDropdown.d.ts.map +1 -0
- package/dist/components/{dashboard → inputs}/FilterDropdown.js +14 -16
- package/dist/components/inputs/FilterDropdown.js.map +1 -0
- package/dist/components/inputs/SearchInput.d.ts +14 -0
- package/dist/components/inputs/SearchInput.d.ts.map +1 -0
- package/dist/components/{dashboard → inputs}/SearchInput.js +11 -25
- package/dist/components/inputs/SearchInput.js.map +1 -0
- package/dist/components/inputs/SuggestionChip.d.ts +10 -0
- package/dist/components/inputs/SuggestionChip.d.ts.map +1 -0
- package/dist/components/inputs/SuggestionChip.js +12 -0
- package/dist/components/inputs/SuggestionChip.js.map +1 -0
- package/dist/components/inputs/ToggleSwitch.d.ts +8 -0
- package/dist/components/inputs/ToggleSwitch.d.ts.map +1 -0
- package/dist/components/inputs/ToggleSwitch.js +29 -0
- package/dist/components/inputs/ToggleSwitch.js.map +1 -0
- package/dist/components/layout/GlassPanel.d.ts +4 -0
- package/dist/components/layout/GlassPanel.d.ts.map +1 -0
- package/dist/components/layout/GlassPanel.js +11 -0
- package/dist/components/layout/GlassPanel.js.map +1 -0
- package/dist/components/layout/ListItem.d.ts +10 -0
- package/dist/components/layout/ListItem.d.ts.map +1 -0
- package/dist/components/layout/ListItem.js +14 -0
- package/dist/components/layout/ListItem.js.map +1 -0
- package/dist/components/layout/SectionHeader.d.ts.map +1 -0
- package/dist/components/{dashboard → layout}/SectionHeader.js +12 -9
- package/dist/components/layout/SectionHeader.js.map +1 -0
- package/dist/components/providers/LenisProvider.d.ts +22 -0
- package/dist/components/providers/LenisProvider.d.ts.map +1 -0
- package/dist/components/providers/LenisProvider.js +45 -0
- package/dist/components/providers/LenisProvider.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +4 -2
- package/dist/components/dashboard/FilterDropdown.d.ts.map +0 -1
- package/dist/components/dashboard/FilterDropdown.js.map +0 -1
- package/dist/components/dashboard/GlassPanel.d.ts +0 -13
- package/dist/components/dashboard/GlassPanel.d.ts.map +0 -1
- package/dist/components/dashboard/GlassPanel.js +0 -20
- package/dist/components/dashboard/GlassPanel.js.map +0 -1
- package/dist/components/dashboard/IconBadge.d.ts +0 -22
- package/dist/components/dashboard/IconBadge.d.ts.map +0 -1
- package/dist/components/dashboard/IconBadge.js +0 -44
- package/dist/components/dashboard/IconBadge.js.map +0 -1
- package/dist/components/dashboard/ListItem.d.ts +0 -22
- package/dist/components/dashboard/ListItem.d.ts.map +0 -1
- package/dist/components/dashboard/ListItem.js +0 -25
- package/dist/components/dashboard/ListItem.js.map +0 -1
- package/dist/components/dashboard/SearchInput.d.ts +0 -30
- package/dist/components/dashboard/SearchInput.d.ts.map +0 -1
- package/dist/components/dashboard/SearchInput.js.map +0 -1
- package/dist/components/dashboard/SectionHeader.d.ts.map +0 -1
- package/dist/components/dashboard/SectionHeader.js.map +0 -1
- package/dist/components/dashboard/SourceIcon.d.ts +0 -15
- package/dist/components/dashboard/SourceIcon.d.ts.map +0 -1
- package/dist/components/dashboard/SourceIcon.js +0 -28
- package/dist/components/dashboard/SourceIcon.js.map +0 -1
- package/dist/components/dashboard/StatusBadge.d.ts +0 -26
- package/dist/components/dashboard/StatusBadge.d.ts.map +0 -1
- package/dist/components/dashboard/StatusBadge.js.map +0 -1
- package/dist/components/dashboard/StatusIndicator.d.ts +0 -16
- package/dist/components/dashboard/StatusIndicator.d.ts.map +0 -1
- package/dist/components/dashboard/StatusIndicator.js.map +0 -1
- package/dist/components/dashboard/Tag.d.ts +0 -16
- package/dist/components/dashboard/Tag.d.ts.map +0 -1
- package/dist/components/dashboard/Tag.js +0 -18
- package/dist/components/dashboard/Tag.js.map +0 -1
- package/dist/components/dashboard/TipCard.d.ts +0 -12
- package/dist/components/dashboard/TipCard.d.ts.map +0 -1
- package/dist/components/dashboard/TipCard.js.map +0 -1
- package/dist/components/dashboard/ToggleSwitch.d.ts +0 -17
- package/dist/components/dashboard/ToggleSwitch.d.ts.map +0 -1
- package/dist/components/dashboard/ToggleSwitch.js +0 -27
- package/dist/components/dashboard/ToggleSwitch.js.map +0 -1
- /package/dist/components/{dashboard → inputs}/FilterDropdown.d.ts +0 -0
- /package/dist/components/{dashboard → layout}/SectionHeader.d.ts +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const DEFAULT_NAV_ITEMS = [
|
|
2
|
+
{
|
|
3
|
+
icon: 'grid_view',
|
|
4
|
+
label: 'Overview',
|
|
5
|
+
href: '/',
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
icon: 'chat_bubble',
|
|
9
|
+
label: 'Ask CROW',
|
|
10
|
+
href: '/ask-crow',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
icon: 'timeline',
|
|
14
|
+
label: 'Analysis',
|
|
15
|
+
href: '#',
|
|
16
|
+
submenu: [
|
|
17
|
+
{
|
|
18
|
+
icon: '',
|
|
19
|
+
label: 'Interactions',
|
|
20
|
+
href: '/analysis/interactions',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
icon: '',
|
|
24
|
+
label: 'Patterns',
|
|
25
|
+
href: '/analysis/patterns',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
icon: 'group',
|
|
31
|
+
label: 'Team',
|
|
32
|
+
href: '/team',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../../src/components/dashboard/constants/navigation.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAc;IAC1C;QACE,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,GAAG;KACV;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,WAAW;KAClB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,cAAc;gBACrB,IAAI,EAAE,wBAAwB;aAC/B;YACD;gBACE,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,oBAAoB;aAC3B;SACF;KACF;IACD;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,OAAO;KACd;CACF,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const SIZING: {
|
|
2
|
+
icons: {
|
|
3
|
+
xs: {
|
|
4
|
+
container: string;
|
|
5
|
+
size: number;
|
|
6
|
+
};
|
|
7
|
+
sm: {
|
|
8
|
+
container: string;
|
|
9
|
+
size: number;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
container: string;
|
|
13
|
+
size: number;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
container: string;
|
|
17
|
+
size: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
panels: {
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
};
|
|
25
|
+
sidebars: {
|
|
26
|
+
desktop: string;
|
|
27
|
+
mobile: string;
|
|
28
|
+
};
|
|
29
|
+
buttons: {
|
|
30
|
+
sm: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
};
|
|
34
|
+
toggles: {
|
|
35
|
+
sm: {
|
|
36
|
+
container: string;
|
|
37
|
+
thumb: string;
|
|
38
|
+
translateX: string;
|
|
39
|
+
};
|
|
40
|
+
default: {
|
|
41
|
+
container: string;
|
|
42
|
+
thumb: string;
|
|
43
|
+
translateX: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const SPACING: {
|
|
48
|
+
padding: {
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
};
|
|
54
|
+
gaps: {
|
|
55
|
+
xs: string;
|
|
56
|
+
sm: string;
|
|
57
|
+
md: string;
|
|
58
|
+
lg: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/constants/sizing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const SIZING = {
|
|
2
|
+
icons: {
|
|
3
|
+
xs: { container: 'w-6 h-6', size: 14 },
|
|
4
|
+
sm: { container: 'w-8 h-8', size: 16 },
|
|
5
|
+
md: { container: 'w-10 h-10', size: 20 },
|
|
6
|
+
lg: { container: 'w-12 h-12', size: 24 },
|
|
7
|
+
},
|
|
8
|
+
panels: {
|
|
9
|
+
sm: 'w-[380px]',
|
|
10
|
+
md: 'w-[480px]',
|
|
11
|
+
lg: 'w-[560px]',
|
|
12
|
+
},
|
|
13
|
+
sidebars: {
|
|
14
|
+
desktop: 'w-[247px]',
|
|
15
|
+
mobile: 'w-[280px]',
|
|
16
|
+
},
|
|
17
|
+
buttons: {
|
|
18
|
+
sm: 'h-[34px]',
|
|
19
|
+
md: 'h-[41px]',
|
|
20
|
+
lg: 'h-10',
|
|
21
|
+
},
|
|
22
|
+
toggles: {
|
|
23
|
+
sm: {
|
|
24
|
+
container: 'w-9 h-5 rounded-[10px] p-0.5',
|
|
25
|
+
thumb: 'w-4 h-4',
|
|
26
|
+
translateX: 'translate-x-4',
|
|
27
|
+
},
|
|
28
|
+
default: {
|
|
29
|
+
container: 'w-11 h-6 rounded-xl p-0.5',
|
|
30
|
+
thumb: 'w-5 h-5',
|
|
31
|
+
translateX: 'translate-x-5',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export const SPACING = {
|
|
36
|
+
padding: {
|
|
37
|
+
xs: 'p-2',
|
|
38
|
+
sm: 'p-3',
|
|
39
|
+
md: 'p-4',
|
|
40
|
+
lg: 'p-6',
|
|
41
|
+
},
|
|
42
|
+
gaps: {
|
|
43
|
+
xs: 'gap-1',
|
|
44
|
+
sm: 'gap-2',
|
|
45
|
+
md: 'gap-3',
|
|
46
|
+
lg: 'gap-4',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=sizing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizing.js","sourceRoot":"","sources":["../../../../src/components/dashboard/constants/sizing.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;QACtC,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;QACtC,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE;QACxC,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE;KACzC;IACD,MAAM,EAAE;QACN,EAAE,EAAE,WAAW;QACf,EAAE,EAAE,WAAW;QACf,EAAE,EAAE,WAAW;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,WAAW;KACpB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,MAAM;KACX;IACD,OAAO,EAAE;QACP,EAAE,EAAE;YACF,SAAS,EAAE,8BAA8B;YACzC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,eAAe;SAC5B;QACD,OAAO,EAAE;YACP,SAAS,EAAE,2BAA2B;YACtC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,eAAe;SAC5B;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE;QACP,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;KACV;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;KACZ;CACF,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const GLASS_STYLES: {
|
|
2
|
+
light: {
|
|
3
|
+
className: string;
|
|
4
|
+
style: {
|
|
5
|
+
background: string;
|
|
6
|
+
border: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
heavy: {
|
|
10
|
+
className: string;
|
|
11
|
+
style: {
|
|
12
|
+
background: string;
|
|
13
|
+
border: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const MODAL_STYLES: {
|
|
18
|
+
backdrop: {
|
|
19
|
+
className: string;
|
|
20
|
+
style: {
|
|
21
|
+
background: string;
|
|
22
|
+
backdropFilter: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
container: {
|
|
26
|
+
className: string;
|
|
27
|
+
style: {
|
|
28
|
+
background: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
shadow: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const DROPDOWN_STYLES: {
|
|
35
|
+
container: string;
|
|
36
|
+
menuItem: string;
|
|
37
|
+
menuItemHovered: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const BORDER_COLORS: {
|
|
40
|
+
light: string;
|
|
41
|
+
default: string;
|
|
42
|
+
heavy: string;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/constants/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAexB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CAkBxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;CAM3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAIzB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const GLASS_STYLES = {
|
|
2
|
+
light: {
|
|
3
|
+
className: 'bg-white/[0.02] border-white/[0.06] backdrop-blur-sm',
|
|
4
|
+
style: {
|
|
5
|
+
background: 'rgba(255, 255, 255, 0.02)',
|
|
6
|
+
border: '1px solid rgba(255, 255, 255, 0.06)',
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
heavy: {
|
|
10
|
+
className: 'bg-white/[0.02] border-white/[0.08] backdrop-blur-md',
|
|
11
|
+
style: {
|
|
12
|
+
background: 'rgba(255, 255, 255, 0.02)',
|
|
13
|
+
border: '1px solid rgba(255, 255, 255, 0.08)',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export const MODAL_STYLES = {
|
|
18
|
+
backdrop: {
|
|
19
|
+
className: 'fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]',
|
|
20
|
+
style: {
|
|
21
|
+
background: 'rgba(0, 0, 0, 0.60)',
|
|
22
|
+
backdropFilter: 'blur(4px)',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
container: {
|
|
26
|
+
className: 'bg-[rgba(10,5,20,0.98)] backdrop-blur-[20px] rounded-2xl border border-white/[0.08]',
|
|
27
|
+
style: {
|
|
28
|
+
background: 'rgba(10, 5, 20, 0.98)',
|
|
29
|
+
borderColor: 'rgba(255, 255, 255, 0.08)',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
shadow: 'shadow-[0px_24px_48px_rgba(0,0,0,0.5),0px_0px_1px_rgba(139,92,246,0.3)]',
|
|
33
|
+
};
|
|
34
|
+
export const DROPDOWN_STYLES = {
|
|
35
|
+
container: 'fixed min-w-[160px] py-1 rounded-lg bg-[rgba(20,10,35,0.98)] border border-white/10 shadow-[0_10px_40px_rgba(0,0,0,0.5)]',
|
|
36
|
+
menuItem: 'w-full px-3 py-2 flex items-center justify-between text-left transition-colors',
|
|
37
|
+
menuItemHovered: 'bg-white/5',
|
|
38
|
+
};
|
|
39
|
+
export const BORDER_COLORS = {
|
|
40
|
+
light: 'border-white/[0.06]',
|
|
41
|
+
default: 'border-white/[0.08]',
|
|
42
|
+
heavy: 'border-white/[0.10]',
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/dashboard/constants/styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE;QACL,SAAS,EAAE,sDAAsD;QACjE,KAAK,EAAE;YACL,UAAU,EAAE,2BAA2B;YACvC,MAAM,EAAE,qCAAqC;SAC9C;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,sDAAsD;QACjE,KAAK,EAAE;YACL,UAAU,EAAE,2BAA2B;YACvC,MAAM,EAAE,qCAAqC;SAC9C;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE;QACR,SAAS,EAAE,oDAAoD;QAC/D,KAAK,EAAE;YACL,UAAU,EAAE,qBAAqB;YACjC,cAAc,EAAE,WAAW;SAC5B;KACF;IACD,SAAS,EAAE;QACT,SAAS,EACP,qFAAqF;QACvF,KAAK,EAAE;YACL,UAAU,EAAE,uBAAuB;YACnC,WAAW,EAAE,2BAA2B;SACzC;KACF;IACD,MAAM,EACJ,yEAAyE;CAC5E,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EACP,0HAA0H;IAC5H,QAAQ,EACN,gFAAgF;IAClF,eAAe,EAAE,YAAY;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,qBAAqB;IAC5B,OAAO,EAAE,qBAAqB;IAC9B,KAAK,EAAE,qBAAqB;CAC7B,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { FilterOption } from '../inputs/FilterDropdown';
|
|
2
|
+
import type { ConfidenceLevel, SeverityLevel } from './types';
|
|
3
|
+
export { FOCUSABLE_ELEMENTS, KEYBOARD_KEYS, KEYBOARD_PATTERNS, } from './constants/accessibility';
|
|
4
|
+
export { ANIMATION_PRESETS, MOTION_VARIANTS } from './constants/animations';
|
|
5
|
+
export { COLOR_PALETTE } from './constants/colors';
|
|
6
|
+
export { CHART_COLORS, GRADIENT_CONFIG } from './constants/gradients';
|
|
7
|
+
export { getIcon, ICON_REGISTRY } from './constants/icons';
|
|
8
|
+
export { DEFAULT_NAV_ITEMS } from './constants/navigation';
|
|
9
|
+
export { SIZING, SPACING } from './constants/sizing';
|
|
10
|
+
export { BORDER_COLORS, DROPDOWN_STYLES, GLASS_STYLES, MODAL_STYLES, } from './constants/styles';
|
|
7
11
|
export declare const SEVERITY_CONFIG: Record<SeverityLevel, {
|
|
8
12
|
label: string;
|
|
9
13
|
color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/constants.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACn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K9C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAAY,EAIhD,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { FOCUSABLE_ELEMENTS, KEYBOARD_KEYS, KEYBOARD_PATTERNS, } from './constants/accessibility';
|
|
2
|
+
export { ANIMATION_PRESETS, MOTION_VARIANTS } from './constants/animations';
|
|
3
|
+
export { COLOR_PALETTE } from './constants/colors';
|
|
4
|
+
export { CHART_COLORS, GRADIENT_CONFIG } from './constants/gradients';
|
|
5
|
+
export { getIcon, ICON_REGISTRY } from './constants/icons';
|
|
6
|
+
export { DEFAULT_NAV_ITEMS } from './constants/navigation';
|
|
7
|
+
export { SIZING, SPACING } from './constants/sizing';
|
|
8
|
+
export { BORDER_COLORS, DROPDOWN_STYLES, GLASS_STYLES, MODAL_STYLES, } from './constants/styles';
|
|
6
9
|
export const SEVERITY_CONFIG = {
|
|
7
10
|
high: {
|
|
8
11
|
label: 'HIGH',
|
|
@@ -23,7 +26,6 @@ export const SEVERITY_CONFIG = {
|
|
|
23
26
|
border: 'rgba(59, 130, 246, 0.20)',
|
|
24
27
|
},
|
|
25
28
|
};
|
|
26
|
-
// ===== CONFIDENCE CONFIGURATION (Pattern/Default) =====
|
|
27
29
|
export const CONFIDENCE_CONFIG = {
|
|
28
30
|
high: {
|
|
29
31
|
label: 'High',
|
|
@@ -44,7 +46,6 @@ export const CONFIDENCE_CONFIG = {
|
|
|
44
46
|
border: 'rgba(156, 163, 175, 0.20)',
|
|
45
47
|
},
|
|
46
48
|
};
|
|
47
|
-
// ===== FILTER OPTIONS =====
|
|
48
49
|
export const DEFAULT_DATE_RANGE_OPTIONS = [
|
|
49
50
|
{ label: 'Date range', value: 'all' },
|
|
50
51
|
{ label: 'Today', value: 'today' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/dashboard/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/dashboard/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,eAAe,GAGxB;IACF,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,SAAS;QAChB,EAAE,EAAE,yBAAyB;QAC7B,MAAM,EAAE,yBAAyB;KAClC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,SAAS;QAChB,EAAE,EAAE,yBAAyB;QAC7B,MAAM,EAAE,yBAAyB;KAClC;IACD,GAAG,EAAE;QACH,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,SAAS;QAChB,EAAE,EAAE,0BAA0B;QAC9B,MAAM,EAAE,0BAA0B;KACnC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAG1B;IACF,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,SAAS;QAChB,EAAE,EAAE,0BAA0B;QAC9B,MAAM,EAAE,0BAA0B;KACnC;IACD,MAAM,E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,KAAK,EAAE,QAAQ,EAAE;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAmB;IAClD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;IACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAmB;IACpD,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE;IACtC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;CACzC,CAAC"}
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
+
export * from '../cards/TipCard';
|
|
2
|
+
export * from '../display/IconBadge';
|
|
3
|
+
export * from '../display/SourceIcon';
|
|
4
|
+
export * from '../display/StatusBadge';
|
|
5
|
+
export * from '../display/StatusIndicator';
|
|
6
|
+
export * from '../display/Tag';
|
|
7
|
+
export * from '../inputs/FilterDropdown';
|
|
8
|
+
export * from '../inputs/SearchInput';
|
|
9
|
+
export * from '../inputs/ToggleSwitch';
|
|
10
|
+
export * from '../layout/GlassPanel';
|
|
11
|
+
export * from '../layout/ListItem';
|
|
12
|
+
export * from '../layout/SectionHeader';
|
|
1
13
|
export * from './ChatHistorySection';
|
|
2
|
-
export * from './
|
|
14
|
+
export * from './CollapseToggleButton';
|
|
15
|
+
export * from './constants/accessibility';
|
|
16
|
+
export * from './constants/animations';
|
|
17
|
+
export * from './constants/colors';
|
|
18
|
+
export * from './constants/icons';
|
|
19
|
+
export * from './constants/navigation';
|
|
20
|
+
export * from './constants/sizing';
|
|
21
|
+
export * from './constants/styles';
|
|
3
22
|
export * from './DashboardBackground';
|
|
4
|
-
export * from './FilterDropdown';
|
|
5
|
-
export * from './GlassPanel';
|
|
6
23
|
export * from './Header';
|
|
7
|
-
export * from './IconBadge';
|
|
8
|
-
export * from './ListItem';
|
|
9
24
|
export * from './MetricsCard';
|
|
10
25
|
export * from './MobileSidebar';
|
|
11
26
|
export * from './NavMenu';
|
|
27
|
+
export * from './NavTooltip';
|
|
12
28
|
export * from './PatternCard';
|
|
13
|
-
export * from './SearchInput';
|
|
14
|
-
export * from './SectionHeader';
|
|
15
29
|
export * from './SettingsDropup';
|
|
16
30
|
export * from './SettingsModal';
|
|
17
31
|
export * from './Sidebar';
|
|
18
32
|
export * from './SidebarLogo';
|
|
19
33
|
export * from './SidePanel';
|
|
20
|
-
export * from './SourceIcon';
|
|
21
|
-
export * from './StatusBadge';
|
|
22
|
-
export * from './StatusIndicator';
|
|
23
|
-
export * from './Tag';
|
|
24
|
-
export * from './TipCard';
|
|
25
|
-
export * from './ToggleSwitch';
|
|
26
34
|
export * from './types';
|
|
35
|
+
export * from './utils/accessibilityUtils';
|
|
36
|
+
export * from './utils/pathUtils';
|
|
27
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AAEzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
+
export * from '../cards/TipCard';
|
|
2
|
+
export * from '../display/IconBadge';
|
|
3
|
+
export * from '../display/SourceIcon';
|
|
4
|
+
export * from '../display/StatusBadge';
|
|
5
|
+
export * from '../display/StatusIndicator';
|
|
6
|
+
export * from '../display/Tag';
|
|
7
|
+
export * from '../inputs/FilterDropdown';
|
|
8
|
+
export * from '../inputs/SearchInput';
|
|
9
|
+
export * from '../inputs/ToggleSwitch';
|
|
10
|
+
export * from '../layout/GlassPanel';
|
|
11
|
+
export * from '../layout/ListItem';
|
|
12
|
+
export * from '../layout/SectionHeader';
|
|
1
13
|
export * from './ChatHistorySection';
|
|
2
|
-
export * from './
|
|
14
|
+
export * from './CollapseToggleButton';
|
|
15
|
+
export * from './constants/accessibility';
|
|
16
|
+
export * from './constants/animations';
|
|
17
|
+
export * from './constants/colors';
|
|
18
|
+
export * from './constants/icons';
|
|
19
|
+
export * from './constants/navigation';
|
|
20
|
+
export * from './constants/sizing';
|
|
21
|
+
export * from './constants/styles';
|
|
3
22
|
export * from './DashboardBackground';
|
|
4
|
-
export * from './FilterDropdown';
|
|
5
|
-
export * from './GlassPanel';
|
|
6
23
|
export * from './Header';
|
|
7
|
-
export * from './IconBadge';
|
|
8
|
-
export * from './ListItem';
|
|
9
24
|
export * from './MetricsCard';
|
|
10
25
|
export * from './MobileSidebar';
|
|
11
26
|
export * from './NavMenu';
|
|
27
|
+
export * from './NavTooltip';
|
|
12
28
|
export * from './PatternCard';
|
|
13
|
-
export * from './SearchInput';
|
|
14
|
-
export * from './SectionHeader';
|
|
15
29
|
export * from './SettingsDropup';
|
|
16
30
|
export * from './SettingsModal';
|
|
17
31
|
export * from './Sidebar';
|
|
18
32
|
export * from './SidebarLogo';
|
|
19
33
|
export * from './SidePanel';
|
|
20
|
-
export * from './SourceIcon';
|
|
21
|
-
export * from './StatusBadge';
|
|
22
|
-
export * from './StatusIndicator';
|
|
23
|
-
export * from './Tag';
|
|
24
|
-
export * from './TipCard';
|
|
25
|
-
export * from './ToggleSwitch';
|
|
26
34
|
export * from './types';
|
|
35
|
+
export * from './utils/accessibilityUtils';
|
|
36
|
+
export * from './utils/pathUtils';
|
|
27
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AAEzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
|
@@ -20,11 +20,8 @@ export interface HeaderProps {
|
|
|
20
20
|
showNotification?: boolean;
|
|
21
21
|
onNotificationClick?: () => void;
|
|
22
22
|
onAvatarClick?: () => void;
|
|
23
|
-
/** Hide the left section (org name and date picker) - useful for minimal headers */
|
|
24
23
|
minimal?: boolean;
|
|
25
|
-
/** Callback when hamburger menu is clicked (mobile only) */
|
|
26
24
|
onMenuClick?: () => void;
|
|
27
|
-
/** Logo image source for mobile header */
|
|
28
25
|
logoSrc?: string;
|
|
29
26
|
}
|
|
30
27
|
export interface NavItem {
|
|
@@ -44,22 +41,16 @@ export interface SidebarProps {
|
|
|
44
41
|
onLogout?: () => void;
|
|
45
42
|
onNotificationsChange?: (enabled: boolean) => void;
|
|
46
43
|
initialNotifications?: boolean;
|
|
47
|
-
/** Whether to show the chat history section */
|
|
48
44
|
showChatHistory?: boolean;
|
|
49
|
-
/** Chat history items to display (shown only on /ask-crow page) */
|
|
50
45
|
chatHistory?: ChatHistoryItem[];
|
|
51
|
-
/** ID of the currently active chat */
|
|
52
46
|
activeChatId?: string | null;
|
|
53
|
-
/** Whether the chat history list is expanded */
|
|
54
47
|
chatHistoryExpanded?: boolean;
|
|
55
|
-
/** Callback when a chat item is clicked */
|
|
56
48
|
onChatClick?: (id: string) => void;
|
|
57
|
-
/** Callback when chat history expand/collapse is toggled */
|
|
58
49
|
onChatHistoryToggle?: () => void;
|
|
59
|
-
/** Callback when a chat is renamed */
|
|
60
50
|
onChatRename?: (id: string, newTitle: string) => void;
|
|
61
|
-
/** Callback when a chat is deleted */
|
|
62
51
|
onChatDelete?: (id: string) => void;
|
|
52
|
+
isCollapsed?: boolean;
|
|
53
|
+
onToggleCollapse?: () => void;
|
|
63
54
|
}
|
|
64
55
|
export interface GlassPanelProps {
|
|
65
56
|
children: ReactNode;
|
|
@@ -85,31 +76,19 @@ export interface ChatHistoryItem {
|
|
|
85
76
|
title: string;
|
|
86
77
|
}
|
|
87
78
|
export interface ChatHistorySectionProps {
|
|
88
|
-
/** List of chat history items to display */
|
|
89
79
|
items?: ChatHistoryItem[];
|
|
90
|
-
/** ID of the currently active chat item */
|
|
91
80
|
activeItemId?: string | null;
|
|
92
|
-
/** Whether the chat list is expanded */
|
|
93
81
|
isExpanded?: boolean;
|
|
94
|
-
/** Whether the section is visible (for fade in/out animations) */
|
|
95
82
|
isVisible?: boolean;
|
|
96
|
-
/** Callback when a chat item is clicked */
|
|
97
83
|
onItemClick?: (id: string) => void;
|
|
98
|
-
/** Callback when the expand/collapse toggle is clicked */
|
|
99
84
|
onToggleExpanded?: () => void;
|
|
100
|
-
/** Callback when rename is requested */
|
|
101
85
|
onRename?: (id: string, newTitle: string) => void;
|
|
102
|
-
/** Callback when delete is requested */
|
|
103
86
|
onDelete?: (id: string) => void;
|
|
104
|
-
/** Title text for the section header */
|
|
105
87
|
title?: string;
|
|
106
|
-
/** Message to show when there are no chat items */
|
|
107
88
|
emptyMessage?: string;
|
|
108
89
|
}
|
|
109
90
|
export interface MobileSidebarProps extends SidebarProps {
|
|
110
|
-
/** Whether the mobile sidebar is open */
|
|
111
91
|
isOpen: boolean;
|
|
112
|
-
/** Callback when the mobile sidebar should close */
|
|
113
92
|
onClose: () => void;
|
|
114
93
|
}
|
|
115
94
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EA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AC9B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const focusFirstElement: (container: HTMLElement | null) => void;
|
|
2
|
+
export declare const focusLastElement: (container: HTMLElement | null) => void;
|
|
3
|
+
export declare const getAllFocusableElements: (container: HTMLElement | null) => HTMLElement[];
|
|
4
|
+
export declare const lockBodyScroll: () => (() => void);
|
|
5
|
+
export declare const isKeyboardEventOpen: (key: string) => boolean;
|
|
6
|
+
export declare const isKeyboardEventClose: (key: string) => boolean;
|
|
7
|
+
export declare const isKeyboardEventSelect: (key: string) => boolean;
|
|
8
|
+
export declare const calculateNavigationIndex: (currentIndex: number, key: string, totalItems: number, direction: "next" | "previous" | "home" | "end") => number;
|
|
9
|
+
//# sourceMappingURL=accessibilityUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibilityUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/utils/accessibilityUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,WAAW,WAAW,GAAG,IAAI,KAAG,IAQjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,WAAW,GAAG,IAAI,KAAG,IAOhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,WAAW,WAAW,GAAG,IAAI,KAC5B,WAAW,EAGb,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,CAAC,MAAM,IAAI,CAO5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,KAAG,OAMjD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,OAElD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,KAAG,OAEnD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,cAAc,MAAM,EACpB,KAAK,MAAM,EACX,YAAY,MAAM,EAClB,WAAW,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,KAC9C,MAaF,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FOCUSABLE_ELEMENTS, KEYBOARD_KEYS } from '../constants/accessibility';
|
|
2
|
+
export const focusFirstElement = (container) => {
|
|
3
|
+
if (!container)
|
|
4
|
+
return;
|
|
5
|
+
setTimeout(() => {
|
|
6
|
+
const focusable = container.querySelector(FOCUSABLE_ELEMENTS);
|
|
7
|
+
focusable?.focus();
|
|
8
|
+
}, 0);
|
|
9
|
+
};
|
|
10
|
+
export const focusLastElement = (container) => {
|
|
11
|
+
if (!container)
|
|
12
|
+
return;
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
const focusables = container.querySelectorAll(FOCUSABLE_ELEMENTS);
|
|
15
|
+
const lastFocusable = focusables[focusables.length - 1];
|
|
16
|
+
lastFocusable?.focus();
|
|
17
|
+
}, 0);
|
|
18
|
+
};
|
|
19
|
+
export const getAllFocusableElements = (container) => {
|
|
20
|
+
if (!container)
|
|
21
|
+
return [];
|
|
22
|
+
return Array.from(container.querySelectorAll(FOCUSABLE_ELEMENTS));
|
|
23
|
+
};
|
|
24
|
+
export const lockBodyScroll = () => {
|
|
25
|
+
const originalOverflow = document.body.style.overflow;
|
|
26
|
+
document.body.style.overflow = 'hidden';
|
|
27
|
+
return () => {
|
|
28
|
+
document.body.style.overflow = originalOverflow;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export const isKeyboardEventOpen = (key) => {
|
|
32
|
+
return (key === KEYBOARD_KEYS.ENTER ||
|
|
33
|
+
key === KEYBOARD_KEYS.SPACE ||
|
|
34
|
+
key === KEYBOARD_KEYS.ARROW_DOWN);
|
|
35
|
+
};
|
|
36
|
+
export const isKeyboardEventClose = (key) => {
|
|
37
|
+
return key === KEYBOARD_KEYS.ESCAPE;
|
|
38
|
+
};
|
|
39
|
+
export const isKeyboardEventSelect = (key) => {
|
|
40
|
+
return key === KEYBOARD_KEYS.ENTER || key === KEYBOARD_KEYS.SPACE;
|
|
41
|
+
};
|
|
42
|
+
export const calculateNavigationIndex = (currentIndex, key, totalItems, direction) => {
|
|
43
|
+
switch (direction) {
|
|
44
|
+
case 'next':
|
|
45
|
+
return currentIndex < totalItems - 1 ? currentIndex + 1 : 0;
|
|
46
|
+
case 'previous':
|
|
47
|
+
return currentIndex > 0 ? currentIndex - 1 : totalItems - 1;
|
|
48
|
+
case 'home':
|
|
49
|
+
return 0;
|
|
50
|
+
case 'end':
|
|
51
|
+
return totalItems - 1;
|
|
52
|
+
default:
|
|
53
|
+
return currentIndex;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=accessibilityUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibilityUtils.js","sourceRoot":"","sources":["../../../../src/components/dashboard/utils/accessibilityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAA6B,EAAQ,EAAE;IACvE,IAAI,CAAC,SAAS;QAAE,OAAO;IACvB,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,SAAS,GAAG,SAAS,CAAC,aAAa,CACvC,kBAAkB,CACJ,CAAC;QACjB,SAAS,EAAE,KAAK,EAAE,CAAC;IACrB,CAAC,EAAE,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,C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tC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAW,EAAE;IAC5D,OAAO,GAAG,KAAK,aAAa,CAAC,KAAK,IAAI,GAAG,KAAK,aAAa,CAAC,KAAK,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,YAAoB,EACpB,GAAW,EACX,UAAkB,EAClB,SAA+C,EACvC,EAAE;IACV,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,MAAM;YACT,OAAO,YAAY,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9D,KAAK,UAAU;YACb,OAAO,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC;QAC9D,KAAK,MAAM;YACT,OAAO,CAAC,CAAC;QACX,KAAK,KAAK;YACR,OAAO,UAAU,GAAG,CAAC,CAAC;QACxB;YACE,OAAO,YAAY,CAAC;IACxB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const normalizePath: (path: string) => string;
|
|
2
|
+
export declare const isActivePath: (currentPath: string, targetPath: string) => boolean;
|
|
3
|
+
export declare const isActivePathPrefix: (currentPath: string, prefix: string) => boolean;
|
|
4
|
+
//# sourceMappingURL=pathUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pathUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/utils/pathUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAG5C,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,YAAY,MAAM,KACjB,OAIF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,aAAa,MAAM,EACnB,QAAQ,MAAM,KACb,OAIF,CAAC"}
|