@powered-by-array/ui 1.42.0 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SemanticBarChart/BarChartLinearGradientDefs.d.ts +6 -0
- package/dist/components/SemanticBarChart/BarChartLinearGradientDefs.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/BarChartLinearGradientDefs.js +10 -0
- package/dist/components/SemanticBarChart/BarChartLinearGradientDefs.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.d.ts +21 -0
- package/dist/components/SemanticBarChart/Chart/Chart.d.ts.map +1 -0
- package/dist/components/{chart.js → SemanticBarChart/Chart/Chart.js} +16 -37
- package/dist/components/SemanticBarChart/Chart/Chart.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.types.d.ts +45 -0
- package/dist/components/SemanticBarChart/Chart/Chart.types.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.types.js +3 -0
- package/dist/components/SemanticBarChart/Chart/Chart.types.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.utils.d.ts +13 -0
- package/dist/components/SemanticBarChart/Chart/Chart.utils.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.utils.js +20 -0
- package/dist/components/SemanticBarChart/Chart/Chart.utils.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.variants.d.ts +7 -0
- package/dist/components/SemanticBarChart/Chart/Chart.variants.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/Chart/Chart.variants.js +30 -0
- package/dist/components/SemanticBarChart/Chart/Chart.variants.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/hooks/useChart.d.ts +9 -0
- package/dist/components/SemanticBarChart/Chart/hooks/useChart.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/Chart/hooks/useChart.js +11 -0
- package/dist/components/SemanticBarChart/Chart/hooks/useChart.js.map +1 -0
- package/dist/components/SemanticBarChart/Chart/index.d.ts +10 -0
- package/dist/components/SemanticBarChart/Chart/index.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/Chart/index.js +2 -0
- package/dist/components/SemanticBarChart/Chart/index.js.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.d.ts +7 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.js +30 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.js.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.types.d.ts +51 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.types.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.types.js +2 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.types.js.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.variants.d.ts +20 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.variants.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.variants.js +30 -0
- package/dist/components/SemanticBarChart/SemanticBarChart.variants.js.map +1 -0
- package/dist/components/SemanticBarChart/index.d.ts +5 -0
- package/dist/components/SemanticBarChart/index.d.ts.map +1 -0
- package/dist/components/SemanticBarChart/index.js +4 -0
- package/dist/components/SemanticBarChart/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.js +8 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.types.d.ts +6 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.variants.d.ts +6 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.variants.js +19 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChat.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.js +6 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.d.ts +6 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.d.ts +8 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.js +9 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/index.d.ts +4 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/index.js +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.js +8 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.d.ts +8 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.d.ts +7 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.js +21 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.d.ts +4 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.js +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.js +8 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.d.ts +5 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.d.ts +6 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.js +16 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/index.d.ts +4 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/index.js +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.js +17 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.d.ts +14 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.d.ts +14 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.js +51 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.d.ts +4 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.js +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.d.ts +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.js +7 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.d.ts +5 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.js +2 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.variants.d.ts +5 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.variants.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.variants.js +11 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.variants.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/index.d.ts +4 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/index.js +3 -0
- package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/index.js.map +1 -0
- package/dist/components/Sidebar/SidebarChat/index.d.ts +14 -0
- package/dist/components/Sidebar/SidebarChat/index.d.ts.map +1 -0
- package/dist/components/Sidebar/SidebarChat/index.js +8 -0
- package/dist/components/Sidebar/SidebarChat/index.js.map +1 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -0
- package/dist/components/Sidebar/index.js.map +1 -1
- package/dist/index.d.ts +44 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/chart.d.ts +0 -57
- package/dist/components/chart.d.ts.map +0 -1
- package/dist/components/chart.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChat.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/SidebarChat/SidebarChat.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EACL,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,UAAU,WAAW,CAAC,EAC1B,MAAM,EACN,QAAQ,EACR,GAAG,KAAK,EACS;IACjB,OAAO,CACL,4BACY,cAAc,EACxB,SAAS,EAAE,mBAAmB,EAAE,KAC5B,KAAK,aAET,KAAC,cAAc,KAAG,EAClB,2BACY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,YAE5C,MAAM,GACH,EACN,2BACY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,YAE5C,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChat.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/SidebarChat/SidebarChat.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,KAAK,CAAC,EACrB,WAAW,GAAG,OAAO,CACtB,GAAG;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChat.types.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/SidebarChat/SidebarChat.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const sidebarChatVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const sidebarChatSlotVariants: {
|
|
3
|
+
readonly header: "flex shrink-0 flex-col";
|
|
4
|
+
readonly scroll: readonly ["flex-1 min-h-0 overflow-y-auto", "[scrollbar-width:thin]", "[scrollbar-color:var(--sidebar-scrollbar-thumb)_transparent]", "[&::-webkit-scrollbar]:w-[5px]", "[&::-webkit-scrollbar-track]:bg-transparent", "[&::-webkit-scrollbar-thumb]:rounded-full", "[&::-webkit-scrollbar-thumb]:bg-[var(--sidebar-scrollbar-thumb)]", "hover:[&::-webkit-scrollbar-thumb]:bg-[var(--sidebar-scrollbar-thumb-hover)]"];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=SidebarChat.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChat.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/SidebarChat/SidebarChat.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,oFAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;CAY1B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const sidebarChatVariants = cva([
|
|
3
|
+
"flex h-full min-h-0 w-full flex-col",
|
|
4
|
+
"group-data-[collapsible=icon]:hidden",
|
|
5
|
+
]);
|
|
6
|
+
export const sidebarChatSlotVariants = {
|
|
7
|
+
header: "flex shrink-0 flex-col",
|
|
8
|
+
scroll: [
|
|
9
|
+
"flex-1 min-h-0 overflow-y-auto",
|
|
10
|
+
"[scrollbar-width:thin]",
|
|
11
|
+
"[scrollbar-color:var(--sidebar-scrollbar-thumb)_transparent]",
|
|
12
|
+
"[&::-webkit-scrollbar]:w-[5px]",
|
|
13
|
+
"[&::-webkit-scrollbar-track]:bg-transparent",
|
|
14
|
+
"[&::-webkit-scrollbar-thumb]:rounded-full",
|
|
15
|
+
"[&::-webkit-scrollbar-thumb]:bg-[var(--sidebar-scrollbar-thumb)]",
|
|
16
|
+
"hover:[&::-webkit-scrollbar-thumb]:bg-[var(--sidebar-scrollbar-thumb-hover)]",
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=SidebarChat.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChat.variants.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/SidebarChat/SidebarChat.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;IACrC,qCAAqC;IACrC,sCAAsC;CACvC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE;QACN,gCAAgC;QAChC,wBAAwB;QACxB,8DAA8D;QAC9D,gCAAgC;QAChC,6CAA6C;QAC7C,2CAA2C;QAC3C,kEAAkE;QAClE,8EAA8E;KAC/E;CACO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,qBAAqB,2CA+BvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { sidebarChatGroupSlotVariants, sidebarChatGroupVariants, } from "./SidebarChatGroup.variants.js";
|
|
3
|
+
export function SidebarChatGroup({ label, children, ...props }) {
|
|
4
|
+
return (_jsxs("div", { "data-slot": "sidebar-chat-group", className: sidebarChatGroupVariants(), ...props, children: [_jsxs("div", { "data-slot": "sidebar-chat-group-header", className: sidebarChatGroupSlotVariants.header, children: [_jsx("span", { "data-slot": "sidebar-chat-group-label", className: sidebarChatGroupSlotVariants.label, children: label }), _jsx("span", { "aria-hidden": true, "data-slot": "sidebar-chat-group-divider", className: sidebarChatGroupSlotVariants.divider })] }), _jsx("div", { "data-slot": "sidebar-chat-group-list", className: sidebarChatGroupSlotVariants.list, children: children })] }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=SidebarChatGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAGxC,MAAM,UAAU,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACc;IACtB,OAAO,CACL,4BACY,oBAAoB,EAC9B,SAAS,EAAE,wBAAwB,EAAE,KACjC,KAAK,aAET,4BACY,2BAA2B,EACrC,SAAS,EAAE,4BAA4B,CAAC,MAAM,aAE9C,4BACY,0BAA0B,EACpC,SAAS,EAAE,4BAA4B,CAAC,KAAK,YAE5C,KAAK,GACD,EACP,iDAEY,4BAA4B,EACtC,SAAS,EAAE,4BAA4B,CAAC,OAAO,GAC/C,IACE,EACN,2BACY,yBAAyB,EACnC,SAAS,EAAE,4BAA4B,CAAC,IAAI,YAE3C,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,cAAc,CAAC,KAAK,CAAC,EACrB,WAAW,GAAG,OAAO,CACtB,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.types.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const sidebarChatGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const sidebarChatGroupSlotVariants: {
|
|
3
|
+
readonly header: "flex h-9 items-center gap-[8px] pl-[9px]";
|
|
4
|
+
readonly label: "shrink-0 text-xs leading-none text-[var(--color-semantic-sidebar-chat-group-label-fg)]";
|
|
5
|
+
readonly divider: "h-px flex-1 bg-[var(--color-semantic-sidebar-chat-divider)]";
|
|
6
|
+
readonly list: "flex flex-col";
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=SidebarChatGroup.variants.d.ts.map
|
package/dist/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,oFAAyB,CAAC;AAE/D,eAAO,MAAM,4BAA4B;;;;;CAO/B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const sidebarChatGroupVariants = cva(["flex flex-col"]);
|
|
3
|
+
export const sidebarChatGroupSlotVariants = {
|
|
4
|
+
header: "flex h-9 items-center gap-[8px] pl-[9px]",
|
|
5
|
+
label: "shrink-0 text-xs leading-none text-[var(--color-semantic-sidebar-chat-group-label-fg)]",
|
|
6
|
+
divider: "h-px flex-1 bg-[var(--color-semantic-sidebar-chat-divider)]",
|
|
7
|
+
list: "flex flex-col",
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=SidebarChatGroup.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatGroup.variants.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/SidebarChatGroup.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,MAAM,EAAE,0CAA0C;IAClD,KAAK,EACH,wFAAwF;IAC1F,OAAO,EACL,6DAA6D;IAC/D,IAAI,EAAE,eAAe;CACb,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SidebarChatGroup } from "./SidebarChatGroup.js";
|
|
2
|
+
export { sidebarChatGroupSlotVariants, sidebarChatGroupVariants, } from "./SidebarChatGroup.variants.js";
|
|
3
|
+
export type { SidebarChatGroupProps } from "./SidebarChatGroup.types.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SidebarChatHistoryToggleProps } from "./SidebarChatHistoryToggle.types.js";
|
|
2
|
+
export declare function SidebarChatHistoryToggle({ label, open, onOpenChange, controls, "aria-label": ariaLabel, ...props }: SidebarChatHistoryToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=SidebarChatHistoryToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEzF,wBAAgB,wBAAwB,CAAC,EACvC,KAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,6BAA6B,2CA+B/B"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../../lib/cn.js";
|
|
4
|
+
import { sidebarChatHistoryToggleSlotVariants, sidebarChatHistoryToggleVariants, } from "./SidebarChatHistoryToggle.variants.js";
|
|
5
|
+
export function SidebarChatHistoryToggle({ label = "History", open, onOpenChange, controls, "aria-label": ariaLabel, ...props }) {
|
|
6
|
+
return (_jsx("button", { "data-slot": "sidebar-chat-history-toggle", "data-state": open ? "open" : "closed", type: "button", "aria-label": ariaLabel ?? label, "aria-expanded": open, "aria-controls": controls, onClick: () => onOpenChange(!open), className: sidebarChatHistoryToggleVariants(), ...props, children: _jsxs("span", { "data-slot": "sidebar-chat-history-toggle-inner", className: cn(sidebarChatHistoryToggleSlotVariants.inner), children: [_jsx("span", { "data-slot": "sidebar-chat-history-toggle-label", className: cn(sidebarChatHistoryToggleSlotVariants.label), children: label }), _jsx(ChevronDown, { "aria-hidden": true, "data-slot": "sidebar-chat-history-toggle-chevron", className: cn(sidebarChatHistoryToggleSlotVariants.chevron) })] }) }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=SidebarChatHistoryToggle.js.map
|
package/dist/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EACL,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,wCAAwC,CAAC;AAGhD,MAAM,UAAU,wBAAwB,CAAC,EACvC,KAAK,GAAG,SAAS,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACsB;IAC9B,OAAO,CACL,8BACY,6BAA6B,gBAC3B,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EACpC,IAAI,EAAC,QAAQ,gBACD,SAAS,IAAI,KAAK,mBACf,IAAI,mBACJ,QAAQ,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,EAClC,SAAS,EAAE,gCAAgC,EAAE,KACzC,KAAK,YAET,6BACY,mCAAmC,EAC7C,SAAS,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,aAEzD,4BACY,mCAAmC,EAC7C,SAAS,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,YAExD,KAAK,GACD,EACP,KAAC,WAAW,sCAEA,qCAAqC,EAC/C,SAAS,EAAE,EAAE,CAAC,oCAAoC,CAAC,OAAO,CAAC,GAC3D,IACG,GACA,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type SidebarChatHistoryToggleProps = Omit<ComponentProps<"button">, "children" | "onClick" | "className" | "style"> & {
|
|
3
|
+
label?: string;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
controls?: string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=SidebarChatHistoryToggle.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,cAAc,CAAC,QAAQ,CAAC,EACxB,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAC/C,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.types.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const sidebarChatHistoryToggleVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const sidebarChatHistoryToggleSlotVariants: {
|
|
3
|
+
readonly inner: "flex items-center gap-[8px]";
|
|
4
|
+
readonly label: readonly ["truncate text-sm leading-none", "transition-colors duration-200 ease-out", "group-hover/sidebar-chat-history-toggle:text-[var(--color-semantic-sidebar-chat-fg-muted)]"];
|
|
5
|
+
readonly chevron: readonly ["size-[14px] shrink-0", "transition-[transform,color] duration-200 ease-out", "group-hover/sidebar-chat-history-toggle:text-[var(--color-semantic-sidebar-chat-fg-muted)]", "group-data-[state=closed]/sidebar-chat-history-toggle:-rotate-90"];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=SidebarChatHistoryToggle.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,oFAI3C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;CAavC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const sidebarChatHistoryToggleVariants = cva([
|
|
3
|
+
"group/sidebar-chat-history-toggle relative flex h-12 w-full items-center p-[12px] bg-transparent text-left outline-none",
|
|
4
|
+
"transition-colors duration-200 ease-out",
|
|
5
|
+
"text-[var(--color-semantic-sidebar-chat-fg-muted)]",
|
|
6
|
+
]);
|
|
7
|
+
export const sidebarChatHistoryToggleSlotVariants = {
|
|
8
|
+
inner: "flex items-center gap-[8px]",
|
|
9
|
+
label: [
|
|
10
|
+
"truncate text-sm leading-none",
|
|
11
|
+
"transition-colors duration-200 ease-out",
|
|
12
|
+
"group-hover/sidebar-chat-history-toggle:text-[var(--color-semantic-sidebar-chat-fg-muted)]",
|
|
13
|
+
],
|
|
14
|
+
chevron: [
|
|
15
|
+
"size-[14px] shrink-0",
|
|
16
|
+
"transition-[transform,color] duration-200 ease-out",
|
|
17
|
+
"group-hover/sidebar-chat-history-toggle:text-[var(--color-semantic-sidebar-chat-fg-muted)]",
|
|
18
|
+
"group-data-[state=closed]/sidebar-chat-history-toggle:-rotate-90",
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=SidebarChatHistoryToggle.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatHistoryToggle.variants.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/SidebarChatHistoryToggle.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;IAClD,yHAAyH;IACzH,yCAAyC;IACzC,oDAAoD;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,KAAK,EAAE,6BAA6B;IACpC,KAAK,EAAE;QACL,+BAA+B;QAC/B,yCAAyC;QACzC,4FAA4F;KAC7F;IACD,OAAO,EAAE;QACP,sBAAsB;QACtB,oDAAoD;QACpD,4FAA4F;QAC5F,kEAAkE;KACnE;CACO,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SidebarChatHistoryToggle } from "./SidebarChatHistoryToggle.js";
|
|
2
|
+
export { sidebarChatHistoryToggleSlotVariants, sidebarChatHistoryToggleVariants, } from "./SidebarChatHistoryToggle.variants.js";
|
|
3
|
+
export type { SidebarChatHistoryToggleProps } from "./SidebarChatHistoryToggle.types.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,wCAAwC,CAAC;AAChD,YAAY,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatHistoryToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SidebarChatNewButtonProps } from "./SidebarChatNewButton.types.js";
|
|
2
|
+
export declare function SidebarChatNewButton({ label, "aria-label": ariaLabel, ...props }: SidebarChatNewButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=SidebarChatNewButton.d.ts.map
|
package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAMjF,wBAAgB,oBAAoB,CAAC,EACnC,KAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAwB3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SquarePen } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../../lib/cn.js";
|
|
4
|
+
import { sidebarChatNewButtonSlotVariants, sidebarChatNewButtonVariants, } from "./SidebarChatNewButton.variants.js";
|
|
5
|
+
export function SidebarChatNewButton({ label = "New Chat", "aria-label": ariaLabel, ...props }) {
|
|
6
|
+
return (_jsxs("button", { "data-slot": "sidebar-chat-new-button", type: "button", "aria-label": ariaLabel ?? label, className: sidebarChatNewButtonVariants(), ...props, children: [_jsx("span", { "data-slot": "sidebar-chat-new-button-icon", "aria-hidden": "true", className: cn(sidebarChatNewButtonSlotVariants.iconWrap), children: _jsx(SquarePen, {}) }), _jsx("span", { "data-slot": "sidebar-chat-new-button-label", className: cn(sidebarChatNewButtonSlotVariants.label), children: label })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=SidebarChatNewButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,UAAU,oBAAoB,CAAC,EACnC,KAAK,GAAG,UAAU,EAClB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACkB;IAC1B,OAAO,CACL,+BACY,yBAAyB,EACnC,IAAI,EAAC,QAAQ,gBACD,SAAS,IAAI,KAAK,EAC9B,SAAS,EAAE,4BAA4B,EAAE,KACrC,KAAK,aAET,4BACY,8BAA8B,iBAC5B,MAAM,EAClB,SAAS,EAAE,EAAE,CAAC,gCAAgC,CAAC,QAAQ,CAAC,YAExD,KAAC,SAAS,KAAG,GACR,EACP,4BACY,+BAA+B,EACzC,SAAS,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,YAEpD,KAAK,GACD,IACA,CACV,CAAC;AACJ,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,cAAc,CAAC,QAAQ,CAAC,EACxB,UAAU,GAAG,WAAW,GAAG,OAAO,CACnC,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.types.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.types.ts"],"names":[],"mappings":""}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const sidebarChatNewButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const sidebarChatNewButtonSlotVariants: {
|
|
3
|
+
readonly iconWrap: readonly ["flex size-9 shrink-0 items-center justify-center rounded-xl", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[14px] [&_svg]:shrink-0"];
|
|
4
|
+
readonly label: "min-w-0 flex-1 truncate text-sm leading-none";
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=SidebarChatNewButton.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,oFAMvC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;CAMnC,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const sidebarChatNewButtonVariants = cva([
|
|
3
|
+
"group/sidebar-chat-new-button relative flex w-full items-center py-[12px] gap-[6px] bg-transparent text-left cursor-pointer",
|
|
4
|
+
"transition-[background] duration-200 ease-out",
|
|
5
|
+
"text-[var(--color-semantic-sidebar-chat-fg-muted)]",
|
|
6
|
+
"hover:text-[var(--color-semantic-sidebar-chat-fg)]",
|
|
7
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
8
|
+
]);
|
|
9
|
+
export const sidebarChatNewButtonSlotVariants = {
|
|
10
|
+
iconWrap: [
|
|
11
|
+
"flex size-9 shrink-0 items-center justify-center rounded-xl",
|
|
12
|
+
"[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[14px] [&_svg]:shrink-0",
|
|
13
|
+
],
|
|
14
|
+
label: "min-w-0 flex-1 truncate text-sm leading-none",
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=SidebarChatNewButton.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatNewButton.variants.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/SidebarChatNewButton.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;IAC9C,6HAA6H;IAC7H,+CAA+C;IAC/C,oDAAoD;IACpD,oDAAoD;IACpD,kDAAkD;CACnD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE;QACR,6DAA6D;QAC7D,wFAAwF;KACzF;IACD,KAAK,EAAE,8CAA8C;CAC7C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SidebarChatNewButton } from "./SidebarChatNewButton.js";
|
|
2
|
+
export { sidebarChatNewButtonSlotVariants, sidebarChatNewButtonVariants, } from "./SidebarChatNewButton.variants.js";
|
|
3
|
+
export type { SidebarChatNewButtonProps } from "./SidebarChatNewButton.types.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatNewButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SidebarChatThreadItemProps } from "./SidebarChatThreadItem.types.js";
|
|
2
|
+
export declare function SidebarChatThreadItem({ title, icon: IconComponent, state, isSelected, isActive, type, "aria-label": ariaLabel, ...props }: SidebarChatThreadItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=SidebarChatThreadItem.d.ts.map
|
package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,kCAAkC,CAAC;AA2B1C,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,IAAI,EAAE,aAAa,EACnB,KAAK,EACL,UAAkB,EAClB,QAAgB,EAChB,IAAe,EACf,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,0BAA0B,2CA2C5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Loader } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../../lib/cn.js";
|
|
4
|
+
import { sidebarChatThreadItemSlotVariants, sidebarChatThreadItemVariants, } from "./SidebarChatThreadItem.variants.js";
|
|
5
|
+
function renderStateIndicator(state) {
|
|
6
|
+
if (state === "working") {
|
|
7
|
+
return (_jsx(Loader, { "data-slot": "sidebar-chat-thread-item-indicator-loader", "aria-hidden": "true", className: cn(sidebarChatThreadItemSlotVariants.indicatorLoader), strokeWidth: 1.75 }));
|
|
8
|
+
}
|
|
9
|
+
const dotColor = state === "success"
|
|
10
|
+
? sidebarChatThreadItemSlotVariants.indicatorDotSuccess
|
|
11
|
+
: sidebarChatThreadItemSlotVariants.indicatorDotPending;
|
|
12
|
+
return (_jsx("span", { "data-slot": "sidebar-chat-thread-item-indicator-dot", "data-state": state, "aria-hidden": "true", className: cn(sidebarChatThreadItemSlotVariants.indicatorDot, dotColor) }));
|
|
13
|
+
}
|
|
14
|
+
export function SidebarChatThreadItem({ title, icon: IconComponent, state, isSelected = false, isActive = false, type = "button", "aria-label": ariaLabel, ...props }) {
|
|
15
|
+
return (_jsxs("button", { "data-slot": "sidebar-chat-thread-item", "data-active": isActive, "data-selected": isSelected, "data-state": state, type: type, "aria-label": ariaLabel ?? title, "aria-current": isActive ? "page" : undefined, className: sidebarChatThreadItemVariants(), ...props, children: [IconComponent != null && (_jsx("span", { "data-slot": "sidebar-chat-thread-item-icon-wrap", "aria-hidden": "true", className: cn(sidebarChatThreadItemSlotVariants.iconWrap), children: _jsx("span", { "data-slot": "sidebar-chat-thread-item-icon", className: cn(sidebarChatThreadItemSlotVariants.icon), children: _jsx(IconComponent, {}) }) })), _jsx("span", { "data-slot": "sidebar-chat-thread-item-label", className: cn(sidebarChatThreadItemSlotVariants.label), children: title }), state != null && (_jsx("span", { "data-slot": "sidebar-chat-thread-item-indicator", className: cn(sidebarChatThreadItemSlotVariants.indicator), children: renderStateIndicator(state) }))] }));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=SidebarChatThreadItem.js.map
|
package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC;AAM7C,SAAS,oBAAoB,CAAC,KAAiC;IAC7D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,CACL,KAAC,MAAM,iBACK,2CAA2C,iBACzC,MAAM,EAClB,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,eAAe,CAAC,EAChE,WAAW,EAAE,IAAI,GACjB,CACH,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GACZ,KAAK,KAAK,SAAS;QACjB,CAAC,CAAC,iCAAiC,CAAC,mBAAmB;QACvD,CAAC,CAAC,iCAAiC,CAAC,mBAAmB,CAAC;IAC5D,OAAO,CACL,4BACY,wCAAwC,gBACtC,KAAK,iBACL,MAAM,EAClB,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,YAAY,EAAE,QAAQ,CAAC,GACvE,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EACpC,KAAK,EACL,IAAI,EAAE,aAAa,EACnB,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,QAAQ,EACf,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACmB;IAC3B,OAAO,CACL,+BACY,0BAA0B,iBACvB,QAAQ,mBACN,UAAU,gBACb,KAAK,EACjB,IAAI,EAAE,IAAI,gBACE,SAAS,IAAI,KAAK,kBAChB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC3C,SAAS,EAAE,6BAA6B,EAAE,KACtC,KAAK,aAER,aAAa,IAAI,IAAI,IAAI,CACxB,4BACY,oCAAoC,iBAClC,MAAM,EAClB,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,QAAQ,CAAC,YAEzD,4BACY,+BAA+B,EACzC,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,IAAI,CAAC,YAErD,KAAC,aAAa,KAAG,GACZ,GACF,CACR,EACD,4BACY,gCAAgC,EAC1C,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,YAErD,KAAK,GACD,EACN,KAAK,IAAI,IAAI,IAAI,CAChB,4BACY,oCAAoC,EAC9C,SAAS,EAAE,EAAE,CAAC,iCAAiC,CAAC,SAAS,CAAC,YAEzD,oBAAoB,CAAC,KAAK,CAAC,GACvB,CACR,IACM,CACV,CAAC;AACJ,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import type { SidebarChatThreadItemVariants } from "./SidebarChatThreadItem.variants.js";
|
|
4
|
+
export type SidebarChatThreadItemState = "success" | "working" | "pending";
|
|
5
|
+
export type SidebarChatThreadItemProps = Omit<ComponentProps<"button">, "children" | "className" | "style"> & SidebarChatThreadItemVariants & {
|
|
6
|
+
title: string;
|
|
7
|
+
icon?: LucideIcon;
|
|
8
|
+
state?: SidebarChatThreadItemState;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
/** Currently-viewed state. `true` wraps the icon in a 24×24 Icy-gradient avatar, paints title and icon in white, hides the state indicator, and emits `aria-current="page"`. Overrides `isSelected` visually. */
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type { SidebarChatThreadItemVariants };
|
|
14
|
+
//# sourceMappingURL=SidebarChatThreadItem.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,cAAc,CAAC,QAAQ,CAAC,EACxB,UAAU,GAAG,WAAW,GAAG,OAAO,CACnC,GACC,6BAA6B,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iNAAiN;IACjN,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEJ,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.types.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
export declare const sidebarChatThreadItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const sidebarChatThreadItemSlotVariants: {
|
|
4
|
+
readonly iconWrap: readonly ["shrink-0 inline-flex items-center justify-center", "size-3.5", "group-data-[active=true]/sidebar-chat-thread-item:size-6", "group-data-[active=true]/sidebar-chat-thread-item:rounded-full", "group-data-[active=true]/sidebar-chat-thread-item:bg-[image:var(--color-semantic-sidebar-product-avatar-bg-active)]"];
|
|
5
|
+
readonly icon: readonly ["inline-flex items-center justify-center", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:shrink-0", "text-[var(--color-semantic-sidebar-chat-thread-fg)]", "group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]", "group-data-[active=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]", "group-data-[active=true]/sidebar-chat-thread-item:group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]"];
|
|
6
|
+
readonly label: readonly ["min-w-0 flex-1 truncate text-sm", "text-[var(--color-semantic-sidebar-chat-thread-fg)]", "group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]", "group-data-[active=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]", "group-data-[active=true]/sidebar-chat-thread-item:group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]"];
|
|
7
|
+
readonly indicator: readonly ["size-3.5 shrink-0 inline-flex items-center justify-center h-[14px] w-[14px]", "group-data-[active=true]/sidebar-chat-thread-item:hidden"];
|
|
8
|
+
readonly indicatorDot: "block size-2 rounded-full w-[6px] h-[6px]";
|
|
9
|
+
readonly indicatorDotSuccess: "bg-[var(--color-semantic-status-success)]";
|
|
10
|
+
readonly indicatorDotPending: "bg-[var(--color-semantic-status-pending)]";
|
|
11
|
+
readonly indicatorLoader: readonly ["size-3.5 shrink-0 animate-spin w-[10px] h-[10px]", "text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]"];
|
|
12
|
+
};
|
|
13
|
+
export type SidebarChatThreadItemVariants = VariantProps<typeof sidebarChatThreadItemVariants>;
|
|
14
|
+
//# sourceMappingURL=SidebarChatThreadItem.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,6BAA6B,oFAOxC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;CAwCpC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,YAAY,CACtD,OAAO,6BAA6B,CACrC,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const sidebarChatThreadItemVariants = cva([
|
|
3
|
+
"group/sidebar-chat-thread-item relative flex h-[40px] w-full items-center bg-transparent text-left outline-none rounded-xl cursor-pointer",
|
|
4
|
+
"transition-colors duration-200 ease-out",
|
|
5
|
+
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-semantic-sidebar-product-focus)]",
|
|
6
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
7
|
+
"pl-[9px] gap-[12px]",
|
|
8
|
+
"data-[active=true]:pl-[4px] data-[active=true]:gap-[7px]",
|
|
9
|
+
]);
|
|
10
|
+
export const sidebarChatThreadItemSlotVariants = {
|
|
11
|
+
iconWrap: [
|
|
12
|
+
"shrink-0 inline-flex items-center justify-center",
|
|
13
|
+
"size-3.5",
|
|
14
|
+
"group-data-[active=true]/sidebar-chat-thread-item:size-6",
|
|
15
|
+
"group-data-[active=true]/sidebar-chat-thread-item:rounded-full",
|
|
16
|
+
"group-data-[active=true]/sidebar-chat-thread-item:bg-[image:var(--color-semantic-sidebar-product-avatar-bg-active)]",
|
|
17
|
+
],
|
|
18
|
+
icon: [
|
|
19
|
+
"inline-flex items-center justify-center",
|
|
20
|
+
"[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:shrink-0",
|
|
21
|
+
// Default — muted neutral
|
|
22
|
+
"text-[var(--color-semantic-sidebar-chat-thread-fg)]",
|
|
23
|
+
// Selected OR Active alone — accent purple
|
|
24
|
+
"group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]",
|
|
25
|
+
"group-data-[active=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]",
|
|
26
|
+
// Active AND Selected — white (compound wins via Tailwind variant ordering)
|
|
27
|
+
"group-data-[active=true]/sidebar-chat-thread-item:group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]",
|
|
28
|
+
],
|
|
29
|
+
label: [
|
|
30
|
+
"min-w-0 flex-1 truncate text-sm",
|
|
31
|
+
// Default
|
|
32
|
+
"text-[var(--color-semantic-sidebar-chat-thread-fg)]",
|
|
33
|
+
// Selected OR Active alone — accent purple
|
|
34
|
+
"group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]",
|
|
35
|
+
"group-data-[active=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]",
|
|
36
|
+
// Active AND Selected — white
|
|
37
|
+
"group-data-[active=true]/sidebar-chat-thread-item:group-data-[selected=true]/sidebar-chat-thread-item:text-[var(--color-semantic-sidebar-chat-thread-active-fg)]",
|
|
38
|
+
],
|
|
39
|
+
indicator: [
|
|
40
|
+
"size-3.5 shrink-0 inline-flex items-center justify-center h-[14px] w-[14px]",
|
|
41
|
+
"group-data-[active=true]/sidebar-chat-thread-item:hidden",
|
|
42
|
+
],
|
|
43
|
+
indicatorDot: "block size-2 rounded-full w-[6px] h-[6px]",
|
|
44
|
+
indicatorDotSuccess: "bg-[var(--color-semantic-status-success)]",
|
|
45
|
+
indicatorDotPending: "bg-[var(--color-semantic-status-pending)]",
|
|
46
|
+
indicatorLoader: [
|
|
47
|
+
"size-3.5 shrink-0 animate-spin w-[10px] h-[10px]",
|
|
48
|
+
"text-[var(--color-semantic-sidebar-chat-thread-accent-fg)]",
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=SidebarChatThreadItem.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatThreadItem.variants.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/SidebarChatThreadItem.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC;IAC/C,2IAA2I;IAC3I,yCAAyC;IACzC,gHAAgH;IAChH,kDAAkD;IAClD,qBAAqB;IACrB,0DAA0D;CAC3D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,QAAQ,EAAE;QACR,kDAAkD;QAClD,UAAU;QACV,0DAA0D;QAC1D,gEAAgE;QAChE,qHAAqH;KACtH;IACD,IAAI,EAAE;QACJ,yCAAyC;QACzC,qFAAqF;QACrF,0BAA0B;QAC1B,qDAAqD;QACrD,2CAA2C;QAC3C,gHAAgH;QAChH,8GAA8G;QAC9G,4EAA4E;QAC5E,kKAAkK;KACnK;IACD,KAAK,EAAE;QACL,iCAAiC;QACjC,UAAU;QACV,qDAAqD;QACrD,2CAA2C;QAC3C,gHAAgH;QAChH,8GAA8G;QAC9G,8BAA8B;QAC9B,kKAAkK;KACnK;IACD,SAAS,EAAE;QACT,6EAA6E;QAC7E,0DAA0D;KAC3D;IACD,YAAY,EAAE,2CAA2C;IACzD,mBAAmB,EAAE,2CAA2C;IAChE,mBAAmB,EAAE,2CAA2C;IAChE,eAAe,EAAE;QACf,kDAAkD;QAClD,4DAA4D;KAC7D;CACO,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SidebarChatThreadItem } from "./SidebarChatThreadItem.js";
|
|
2
|
+
export { sidebarChatThreadItemSlotVariants, sidebarChatThreadItemVariants, } from "./SidebarChatThreadItem.variants.js";
|
|
3
|
+
export type { SidebarChatThreadItemProps, SidebarChatThreadItemVariants, } from "./SidebarChatThreadItem.types.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatThreadItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SidebarChatViewAllProps } from "./SidebarChatViewAll.types.js";
|
|
2
|
+
export declare function SidebarChatViewAll({ label, "aria-label": ariaLabel, ...props }: SidebarChatViewAllProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=SidebarChatViewAll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatViewAll.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,wBAAgB,kBAAkB,CAAC,EACjC,KAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAiBzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../../lib/cn.js";
|
|
3
|
+
import { sidebarChatViewAllSlotVariants, sidebarChatViewAllVariants, } from "./SidebarChatViewAll.variants.js";
|
|
4
|
+
export function SidebarChatViewAll({ label = "View all", "aria-label": ariaLabel, ...props }) {
|
|
5
|
+
return (_jsx("button", { "data-slot": "sidebar-chat-view-all", type: "button", "aria-label": ariaLabel ?? label, className: sidebarChatViewAllVariants(), ...props, children: _jsx("span", { "data-slot": "sidebar-chat-view-all-label", className: cn(sidebarChatViewAllSlotVariants.label), children: label }) }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SidebarChatViewAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatViewAll.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,kCAAkC,CAAC;AAG1C,MAAM,UAAU,kBAAkB,CAAC,EACjC,KAAK,GAAG,UAAU,EAClB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACgB;IACxB,OAAO,CACL,8BACY,uBAAuB,EACjC,IAAI,EAAC,QAAQ,gBACD,SAAS,IAAI,KAAK,EAC9B,SAAS,EAAE,0BAA0B,EAAE,KACnC,KAAK,YAET,4BACY,6BAA6B,EACvC,SAAS,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,YAElD,KAAK,GACD,GACA,CACV,CAAC;AACJ,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatViewAll.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,cAAc,CAAC,QAAQ,CAAC,EACxB,UAAU,GAAG,WAAW,GAAG,OAAO,CACnC,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
package/dist/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarChatViewAll.types.js","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarChat/SidebarChatViewAll/SidebarChatViewAll.types.ts"],"names":[],"mappings":""}
|