@dust-tt/sparkle 0.2.538 → 0.2.539-rc-2
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/cjs/index.js +1 -1
- package/dist/esm/components/Bar.d.ts +67 -0
- package/dist/esm/components/Bar.d.ts.map +1 -0
- package/dist/esm/components/{BarHeader.js → Bar.js} +36 -8
- package/dist/esm/components/Bar.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/stories/Bar.stories.d.ts +16 -0
- package/dist/esm/stories/Bar.stories.d.ts.map +1 -0
- package/dist/esm/stories/Bar.stories.js +103 -0
- package/dist/esm/stories/Bar.stories.js.map +1 -0
- package/package.json +1 -1
- package/src/components/{BarHeader.tsx → Bar.tsx} +113 -30
- package/src/components/index.ts +1 -1
- package/src/stories/Bar.stories.tsx +280 -0
- package/dist/esm/components/BarHeader.d.ts +0 -42
- package/dist/esm/components/BarHeader.d.ts.map +0 -1
- package/dist/esm/components/BarHeader.js.map +0 -1
- package/dist/esm/stories/BarHeader.stories.d.ts +0 -19
- package/dist/esm/stories/BarHeader.stories.d.ts.map +0 -1
- package/dist/esm/stories/BarHeader.stories.js +0 -120
- package/dist/esm/stories/BarHeader.stories.js.map +0 -1
- package/src/stories/BarHeader.stories.tsx +0 -264
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { ChatBubbleBottomCenterTextIcon } from "@sparkle/icons/app";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
Bar,
|
|
8
|
+
Page,
|
|
9
|
+
ResizableHandle,
|
|
10
|
+
ResizablePanel,
|
|
11
|
+
ResizablePanelGroup,
|
|
12
|
+
} from "../index_with_tw_base";
|
|
13
|
+
|
|
14
|
+
const meta = {
|
|
15
|
+
title: "Modules/Bar",
|
|
16
|
+
component: Bar,
|
|
17
|
+
} satisfies Meta<typeof Bar>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const BasicBarHeader: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
position: "top",
|
|
25
|
+
title: "Knowledge Base",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const BasicBarFooter: Story = {
|
|
30
|
+
args: {
|
|
31
|
+
position: "bottom",
|
|
32
|
+
rightActions: <span>Right Actions</span>,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const BasicBarHeaderValidate = () => {
|
|
37
|
+
const [isSaving, setIsSaving] = React.useState(false);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<div className="s-h-full s-w-full">
|
|
41
|
+
<Bar
|
|
42
|
+
position="top"
|
|
43
|
+
title="Knowledge Base"
|
|
44
|
+
rightActions={
|
|
45
|
+
<Bar.ButtonBar
|
|
46
|
+
variant="validate"
|
|
47
|
+
isSaving={isSaving}
|
|
48
|
+
onSave={() => {
|
|
49
|
+
setIsSaving(true);
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
setIsSaving(false);
|
|
52
|
+
alert("Save !");
|
|
53
|
+
}, 2000);
|
|
54
|
+
}}
|
|
55
|
+
/>
|
|
56
|
+
}
|
|
57
|
+
/>
|
|
58
|
+
<div className="s-mt-16 s-h-full s-w-full s-overflow-y-auto">
|
|
59
|
+
<Page.Header title="Page Title" icon={ChatBubbleBottomCenterTextIcon} />
|
|
60
|
+
<div className="s-flex s-flex-col s-gap-y-96">
|
|
61
|
+
<img
|
|
62
|
+
src="/static/landing/mainVisual/MainVisual1.png"
|
|
63
|
+
alt="Main Visual 1"
|
|
64
|
+
/>
|
|
65
|
+
<img
|
|
66
|
+
src="/static/landing/mainVisual/MainVisual2.png"
|
|
67
|
+
alt="Main Visual 2"
|
|
68
|
+
/>
|
|
69
|
+
<img
|
|
70
|
+
src="/static/landing/mainVisual/MainVisual3.png"
|
|
71
|
+
alt="Main Visual 3"
|
|
72
|
+
/>
|
|
73
|
+
<img
|
|
74
|
+
src="/static/landing/mainVisual/MainVisual4.png"
|
|
75
|
+
alt="Main Visual 4"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const BasicBarFooterValidate = () => {
|
|
84
|
+
const [isSaving, setIsSaving] = React.useState(false);
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<div className="s-flex s-h-full s-w-full s-flex-col">
|
|
88
|
+
<div className="s-flex-1 s-overflow-y-auto s-p-4">
|
|
89
|
+
<Page.Header title="Page Title" icon={ChatBubbleBottomCenterTextIcon} />
|
|
90
|
+
<div className="s-flex s-flex-col s-gap-y-96">
|
|
91
|
+
<img
|
|
92
|
+
src="/static/landing/mainVisual/MainVisual1.png"
|
|
93
|
+
alt="Main Visual 1"
|
|
94
|
+
/>
|
|
95
|
+
<img
|
|
96
|
+
src="/static/landing/mainVisual/MainVisual2.png"
|
|
97
|
+
alt="Main Visual 2"
|
|
98
|
+
/>
|
|
99
|
+
<img
|
|
100
|
+
src="/static/landing/mainVisual/MainVisual3.png"
|
|
101
|
+
alt="Main Visual 3"
|
|
102
|
+
/>
|
|
103
|
+
<img
|
|
104
|
+
src="/static/landing/mainVisual/MainVisual4.png"
|
|
105
|
+
alt="Main Visual 4"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<Bar
|
|
110
|
+
position="bottom"
|
|
111
|
+
rightActions={
|
|
112
|
+
<Bar.ButtonBar
|
|
113
|
+
variant="validate"
|
|
114
|
+
isSaving={isSaving}
|
|
115
|
+
onCancel={() => alert("Cancelled!")}
|
|
116
|
+
onSave={() => {
|
|
117
|
+
setIsSaving(true);
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
setIsSaving(false);
|
|
120
|
+
alert("Saved!");
|
|
121
|
+
}, 2000);
|
|
122
|
+
}}
|
|
123
|
+
/>
|
|
124
|
+
}
|
|
125
|
+
/>
|
|
126
|
+
</div>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export const HeaderAndFooterCombined = () => {
|
|
131
|
+
const [isSaving, setIsSaving] = React.useState(false);
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<div className="s-flex s-h-full s-w-full s-flex-col">
|
|
135
|
+
<Bar
|
|
136
|
+
position="top"
|
|
137
|
+
title="Agent Builder"
|
|
138
|
+
rightActions={
|
|
139
|
+
<Bar.ButtonBar variant="close" onClose={() => alert("Closed!")} />
|
|
140
|
+
}
|
|
141
|
+
/>
|
|
142
|
+
<div className="s-flex-1 s-overflow-y-auto s-p-4">
|
|
143
|
+
<Page.Header
|
|
144
|
+
title="Page Content"
|
|
145
|
+
icon={ChatBubbleBottomCenterTextIcon}
|
|
146
|
+
/>
|
|
147
|
+
<div className="s-flex s-flex-col s-gap-y-96">
|
|
148
|
+
<img
|
|
149
|
+
src="/static/landing/mainVisual/MainVisual1.png"
|
|
150
|
+
alt="Main Visual 1"
|
|
151
|
+
/>
|
|
152
|
+
<img
|
|
153
|
+
src="/static/landing/mainVisual/MainVisual2.png"
|
|
154
|
+
alt="Main Visual 2"
|
|
155
|
+
/>
|
|
156
|
+
<img
|
|
157
|
+
src="/static/landing/mainVisual/MainVisual3.png"
|
|
158
|
+
alt="Main Visual 3"
|
|
159
|
+
/>
|
|
160
|
+
<img
|
|
161
|
+
src="/static/landing/mainVisual/MainVisual4.png"
|
|
162
|
+
alt="Main Visual 4"
|
|
163
|
+
/>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
<Bar
|
|
167
|
+
position="bottom"
|
|
168
|
+
rightActions={
|
|
169
|
+
<Bar.ButtonBar
|
|
170
|
+
variant="validate"
|
|
171
|
+
isSaving={isSaving}
|
|
172
|
+
onCancel={() => alert("Cancelled!")}
|
|
173
|
+
onSave={() => {
|
|
174
|
+
setIsSaving(true);
|
|
175
|
+
setTimeout(() => {
|
|
176
|
+
setIsSaving(false);
|
|
177
|
+
alert("Saved!");
|
|
178
|
+
}, 2000);
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
181
|
+
}
|
|
182
|
+
/>
|
|
183
|
+
</div>
|
|
184
|
+
);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export const DefaultVariantInPanel = () => {
|
|
188
|
+
const [isSaving, setIsSaving] = React.useState(false);
|
|
189
|
+
|
|
190
|
+
return (
|
|
191
|
+
<div className="s-h-full s-w-full">
|
|
192
|
+
<ResizablePanelGroup direction="horizontal" className="s-h-full s-w-full">
|
|
193
|
+
<ResizablePanel defaultSize={70} minSize={30}>
|
|
194
|
+
<div className="s-flex s-h-full s-flex-col s-bg-white s-shadow-sm">
|
|
195
|
+
<Bar
|
|
196
|
+
position="top"
|
|
197
|
+
variant="default"
|
|
198
|
+
title="Agent Builder"
|
|
199
|
+
rightActions={
|
|
200
|
+
<Bar.ButtonBar
|
|
201
|
+
variant="close"
|
|
202
|
+
onClose={() => alert("Closed!")}
|
|
203
|
+
/>
|
|
204
|
+
}
|
|
205
|
+
/>
|
|
206
|
+
<div className="s-flex-1 s-overflow-y-auto s-p-4">
|
|
207
|
+
<Page.Header
|
|
208
|
+
title="Left Panel Content"
|
|
209
|
+
icon={ChatBubbleBottomCenterTextIcon}
|
|
210
|
+
/>
|
|
211
|
+
<p className="s-text-sm s-text-gray-600">
|
|
212
|
+
This demonstrates the "default" variant of Bar that is contained
|
|
213
|
+
within its parent container, perfect for panels and sidebars.
|
|
214
|
+
This panel uses ResizablePanelGroup like AgentBuilderLayout.
|
|
215
|
+
</p>
|
|
216
|
+
</div>
|
|
217
|
+
<Bar
|
|
218
|
+
position="bottom"
|
|
219
|
+
variant="default"
|
|
220
|
+
rightActions={
|
|
221
|
+
<Bar.ButtonBar
|
|
222
|
+
variant="validate"
|
|
223
|
+
isSaving={isSaving}
|
|
224
|
+
onCancel={() => alert("Cancelled!")}
|
|
225
|
+
onSave={() => {
|
|
226
|
+
setIsSaving(true);
|
|
227
|
+
setTimeout(() => {
|
|
228
|
+
setIsSaving(false);
|
|
229
|
+
alert("Saved!");
|
|
230
|
+
}, 2000);
|
|
231
|
+
}}
|
|
232
|
+
/>
|
|
233
|
+
}
|
|
234
|
+
/>
|
|
235
|
+
</div>
|
|
236
|
+
</ResizablePanel>
|
|
237
|
+
|
|
238
|
+
<ResizableHandle />
|
|
239
|
+
|
|
240
|
+
<ResizablePanel defaultSize={30} minSize={20}>
|
|
241
|
+
<div className="s-flex s-h-full s-flex-col s-bg-white s-shadow-sm">
|
|
242
|
+
<Bar
|
|
243
|
+
position="top"
|
|
244
|
+
variant="default"
|
|
245
|
+
title="Preview Panel"
|
|
246
|
+
rightActions={
|
|
247
|
+
<Bar.ButtonBar
|
|
248
|
+
variant="close"
|
|
249
|
+
onClose={() => alert("Closed!")}
|
|
250
|
+
/>
|
|
251
|
+
}
|
|
252
|
+
/>
|
|
253
|
+
<div className="s-flex-1 s-overflow-y-auto s-p-4">
|
|
254
|
+
<Page.Header
|
|
255
|
+
title="Right Panel Content"
|
|
256
|
+
icon={ChatBubbleBottomCenterTextIcon}
|
|
257
|
+
/>
|
|
258
|
+
<p className="s-text-sm s-text-gray-600">
|
|
259
|
+
Notice how each Bar is scoped to its own panel width, unlike the
|
|
260
|
+
"full" variant which would span the entire viewport width. You
|
|
261
|
+
can resize this panel!
|
|
262
|
+
</p>
|
|
263
|
+
</div>
|
|
264
|
+
<Bar
|
|
265
|
+
position="bottom"
|
|
266
|
+
variant="default"
|
|
267
|
+
rightActions={
|
|
268
|
+
<Bar.ButtonBar
|
|
269
|
+
variant="validate"
|
|
270
|
+
onCancel={() => alert("Cancelled!")}
|
|
271
|
+
onSave={() => alert("Saved!")}
|
|
272
|
+
/>
|
|
273
|
+
}
|
|
274
|
+
/>
|
|
275
|
+
</div>
|
|
276
|
+
</ResizablePanel>
|
|
277
|
+
</ResizablePanelGroup>
|
|
278
|
+
</div>
|
|
279
|
+
);
|
|
280
|
+
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare const barHeaderVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "full" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
-
interface BarHeaderProps extends VariantProps<typeof barHeaderVariants> {
|
|
7
|
-
title: string;
|
|
8
|
-
tooltip?: string;
|
|
9
|
-
leftActions?: React.ReactNode;
|
|
10
|
-
rightActions?: React.ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function BarHeader({ title, tooltip, leftActions, rightActions, className, variant, }: BarHeaderProps): React.JSX.Element;
|
|
14
|
-
export declare namespace BarHeader {
|
|
15
|
-
var ButtonBar: (props: BarHeaderButtonBarProps) => React.JSX.Element | null;
|
|
16
|
-
}
|
|
17
|
-
type BarHeaderButtonBarCloseProps = {
|
|
18
|
-
variant: "close";
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
};
|
|
21
|
-
type BarHeaderButtonBarBackProps = {
|
|
22
|
-
variant: "back";
|
|
23
|
-
onBack?: () => void;
|
|
24
|
-
};
|
|
25
|
-
type BarHeaderButtonBarValidateProps = {
|
|
26
|
-
variant: "validate";
|
|
27
|
-
onCancel?: () => void;
|
|
28
|
-
onSave?: () => void;
|
|
29
|
-
saveLabel?: string;
|
|
30
|
-
isSaving?: boolean;
|
|
31
|
-
isDisabled?: boolean;
|
|
32
|
-
savingLabel?: string;
|
|
33
|
-
saveTooltip?: string;
|
|
34
|
-
};
|
|
35
|
-
type BarHeaderButtonBarConversationProps = {
|
|
36
|
-
variant: "conversation";
|
|
37
|
-
onDelete?: () => void;
|
|
38
|
-
onShare?: () => void;
|
|
39
|
-
};
|
|
40
|
-
export type BarHeaderButtonBarProps = BarHeaderButtonBarCloseProps | BarHeaderButtonBarBackProps | BarHeaderButtonBarValidateProps | BarHeaderButtonBarConversationProps;
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=BarHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarHeader.d.ts","sourceRoot":"","sources":["../../../src/components/BarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,QAAA,MAAM,iBAAiB;;mFActB,CAAC;AAEF,UAAU,cAAe,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,OAAO,GACR,EAAE,cAAc,qBAuBhB;yBA9Be,SAAS;;;AAgCzB,KAAK,4BAA4B,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,I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C;QACtB,KAAK,MAAM;YACT,OAAO,CACL,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,eAAe,EACrB,OAAO,EAAC,OAAO,EACf,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,KAAK,CAAC,MAAM,GACrB,CACH,CAAC;QACJ,KAAK,OAAO;YACV,OAAO,CACL,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,SAAS,EACf,OAAO,EAAC,OAAO,EACf,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,KAAK,CAAC,OAAO,GACtB,CACH,CAAC;QACJ,KAAK,UAAU;YACb,OAAO,CACL;gBACE,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,KAAK,CAAC,QAAQ,EACvB,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,UAAU,GAC/D;gBACF,oBAAC,kBAAkB,eAAK,KAAK,EAAI,CAChC,CACJ,CAAC;QACJ,KAAK,cAAc;YACjB,OAAO,CACL;gBACE,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,SAAS,EACf,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,KAAK,CAAC,QAAQ,GACvB;gBACF,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,OAAO,EACb,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,KAAK,CAAC,OAAO,GACtB,CACD,CACJ,CAAC;QACJ;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { BarHeader } from "../index_with_tw_base";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof BarHeader;
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof meta>;
|
|
10
|
-
export declare const BasicBarHeader: Story;
|
|
11
|
-
export declare const BasicBarHeaderValidate: () => React.JSX.Element;
|
|
12
|
-
export declare const BasicBarHeaderValidateCustomLabel: () => React.JSX.Element;
|
|
13
|
-
export declare const BasicBarHeaderValidateSaveDisabled: () => React.JSX.Element;
|
|
14
|
-
export declare const BasicBarHeaderBack: () => React.JSX.Element;
|
|
15
|
-
export declare const BasicBarHeaderClose: () => React.JSX.Element;
|
|
16
|
-
export declare const BasicBarHeaderConversation: () => React.JSX.Element;
|
|
17
|
-
export declare const BasicBarHeaderValidateSaveDisabledWithTooltip: () => React.JSX.Element;
|
|
18
|
-
export declare const DefaultVariantInPanel: () => React.JSX.Element;
|
|
19
|
-
//# sourceMappingURL=BarHeader.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/BarHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,SAAS,EAKV,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,IAAI;;;CAGwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,cAAc,EAAE,KAI5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAgClC,CAAC;AAEF,eAAO,MAAM,iCAAiC,yBAiC7C,CAAC;AAEF,eAAO,MAAM,kCAAkC,yBAgB9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAgB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,yBAgB/B,CAAC;AAEF,eAAO,MAAM,0BAA0B,yBAiBtC,CAAC;AAEF,eAAO,MAAM,6CAA6C,yBAqBzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAuEjC,CAAC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ChatBubbleBottomCenterTextIcon } from "../icons/app";
|
|
4
|
-
import { BarHeader, Page, ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "../index_with_tw_base";
|
|
5
|
-
var meta = {
|
|
6
|
-
title: "Modules/BarHeader",
|
|
7
|
-
component: BarHeader,
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
export var BasicBarHeader = {
|
|
11
|
-
args: {
|
|
12
|
-
title: "Knowledge Base",
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
export var BasicBarHeaderValidate = function () {
|
|
16
|
-
var _a = __read(React.useState(false), 2), isSaving = _a[0], setIsSaving = _a[1];
|
|
17
|
-
return (React.createElement("div", { className: "s-h-full s-w-full" },
|
|
18
|
-
React.createElement(BarHeader, { title: "Knowledge Base", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "validate", isSaving: isSaving, onSave: function () {
|
|
19
|
-
setIsSaving(true);
|
|
20
|
-
setTimeout(function () {
|
|
21
|
-
setIsSaving(false);
|
|
22
|
-
alert("Save !");
|
|
23
|
-
}, 2000);
|
|
24
|
-
} }) }),
|
|
25
|
-
React.createElement("div", { className: "s-mt-16 s-h-full s-w-full s-overflow-y-auto" },
|
|
26
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
27
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
28
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
29
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
30
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
31
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" })))));
|
|
32
|
-
};
|
|
33
|
-
export var BasicBarHeaderValidateCustomLabel = function () {
|
|
34
|
-
var _a = __read(React.useState(false), 2), isSaving = _a[0], setIsSaving = _a[1];
|
|
35
|
-
return (React.createElement("div", { className: "s-h-full s-w-full" },
|
|
36
|
-
React.createElement(BarHeader, { title: "Knowledge Base", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "validate", isSaving: isSaving, saveLabel: "Soupinou", onSave: function () {
|
|
37
|
-
setIsSaving(true);
|
|
38
|
-
setTimeout(function () {
|
|
39
|
-
setIsSaving(false);
|
|
40
|
-
alert("Save !");
|
|
41
|
-
}, 2000);
|
|
42
|
-
} }) }),
|
|
43
|
-
React.createElement("div", { className: "s-mt-16 s-h-full s-w-full s-overflow-y-auto" },
|
|
44
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
45
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
46
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
47
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
48
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
49
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" })))));
|
|
50
|
-
};
|
|
51
|
-
export var BasicBarHeaderValidateSaveDisabled = function () { return (React.createElement("div", { className: "s-mt-16 s-h-full s-w-full" },
|
|
52
|
-
React.createElement(BarHeader, { title: "Knowledge Base", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "validate" }) }),
|
|
53
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-16 s-overflow-auto" },
|
|
54
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
55
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
56
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
57
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
58
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
59
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }))))); };
|
|
60
|
-
export var BasicBarHeaderBack = function () { return (React.createElement("div", { className: "s-mt-16 s-h-full s-w-full" },
|
|
61
|
-
React.createElement(BarHeader, { title: "Knowledge Base", leftActions: React.createElement(BarHeader.ButtonBar, { variant: "back" }) }),
|
|
62
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-16 s-overflow-auto" },
|
|
63
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
64
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
65
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
66
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
67
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
68
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }))))); };
|
|
69
|
-
export var BasicBarHeaderClose = function () { return (React.createElement("div", { className: "s-mt-16 s-h-full s-w-full" },
|
|
70
|
-
React.createElement(BarHeader, { title: "Knowledge Base", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "close" }) }),
|
|
71
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-16 s-overflow-auto" },
|
|
72
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
73
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
74
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
75
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
76
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
77
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }))))); };
|
|
78
|
-
export var BasicBarHeaderConversation = function () { return (React.createElement("div", { className: "s-mt-16 s-h-full s-w-full" },
|
|
79
|
-
React.createElement(BarHeader, { title: "Knowledge Base", tooltip: "This is a tooltip", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "conversation" }) }),
|
|
80
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-16 s-overflow-auto" },
|
|
81
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
82
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
83
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
84
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
85
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
86
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }))))); };
|
|
87
|
-
export var BasicBarHeaderValidateSaveDisabledWithTooltip = function () { return (React.createElement("div", { className: "s-mt-16 s-h-full s-w-full" },
|
|
88
|
-
React.createElement(BarHeader, { title: "Knowledge Base", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "validate", saveTooltip: "Saving agents is temporarily disabled and will be re-enabled shortly" }) }),
|
|
89
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-16 s-overflow-auto" },
|
|
90
|
-
React.createElement(Page.Header, { title: "Page Title", icon: ChatBubbleBottomCenterTextIcon }),
|
|
91
|
-
React.createElement("div", { className: "s-flex s-flex-col s-gap-y-96" },
|
|
92
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
93
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
94
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }),
|
|
95
|
-
React.createElement("img", { src: "https://source.unsplash.com/random" }))))); };
|
|
96
|
-
export var DefaultVariantInPanel = function () {
|
|
97
|
-
var _a = __read(React.useState(false), 2), isSaving = _a[0], setIsSaving = _a[1];
|
|
98
|
-
return (React.createElement("div", { className: "s-h-full s-w-full" },
|
|
99
|
-
React.createElement(ResizablePanelGroup, { direction: "horizontal", className: "s-h-full s-w-full" },
|
|
100
|
-
React.createElement(ResizablePanel, { defaultSize: 70, minSize: 30 },
|
|
101
|
-
React.createElement("div", { className: "s-flex s-h-full s-flex-col s-bg-white s-shadow-sm" },
|
|
102
|
-
React.createElement(BarHeader, { variant: "default", title: "Agent Builder", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "validate", isSaving: isSaving, onCancel: function () { return alert("Cancelled!"); }, onSave: function () {
|
|
103
|
-
setIsSaving(true);
|
|
104
|
-
setTimeout(function () {
|
|
105
|
-
setIsSaving(false);
|
|
106
|
-
alert("Saved!");
|
|
107
|
-
}, 2000);
|
|
108
|
-
} }) }),
|
|
109
|
-
React.createElement("div", { className: "s-flex-1 s-overflow-y-auto s-p-4" },
|
|
110
|
-
React.createElement(Page.Header, { title: "Left Panel Content", icon: ChatBubbleBottomCenterTextIcon }),
|
|
111
|
-
React.createElement("p", { className: "s-text-sm s-text-gray-600" }, "This demonstrates the \"default\" variant of BarHeader that is contained within its parent container, perfect for panels and sidebars. This panel uses ResizablePanelGroup like AgentBuilderLayout.")))),
|
|
112
|
-
React.createElement(ResizableHandle, null),
|
|
113
|
-
React.createElement(ResizablePanel, { defaultSize: 30, minSize: 20 },
|
|
114
|
-
React.createElement("div", { className: "s-flex s-h-full s-flex-col s-bg-white s-shadow-sm" },
|
|
115
|
-
React.createElement(BarHeader, { variant: "default", title: "Preview Panel", rightActions: React.createElement(BarHeader.ButtonBar, { variant: "close", onClose: function () { return alert("Closed!"); } }) }),
|
|
116
|
-
React.createElement("div", { className: "s-flex-1 s-overflow-y-auto s-p-4" },
|
|
117
|
-
React.createElement(Page.Header, { title: "Right Panel Content", icon: ChatBubbleBottomCenterTextIcon }),
|
|
118
|
-
React.createElement("p", { className: "s-text-sm s-text-gray-600" }, "Notice how each BarHeader is scoped to its own panel width, unlike the \"full\" variant which would span the entire viewport width. You can resize this panel!")))))));
|
|
119
|
-
};
|
|
120
|
-
//# sourceMappingURL=BarHeader.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarHeader.stories.js","sourceRoot":"","sources":["../../../src/stories/BarHeader.stories.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,EACL,SAAS,EACT,IAAI,EACJ,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,SAAS;CACY,CAAC;AAEnC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,KAAK,EAAE,gBAAgB;KACxB;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAAG;IAC9B,IAAA,KAAA,OAA0B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAA,EAA9C,QAAQ,QAAA,EAAE,WAAW,QAAyB,CAAC;IAEtD,OAAO,CACL,6BAAK,SAAS,EAAC,mBAAmB;QAChC,oBAAC,SAAS,IACR,KAAK,EAAC,gBAAgB,EACtB,YAAY,EACV,oBAAC,SAAS,CAAC,SAAS,IAClB,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE;oBACN,WAAW,CAAC,IAAI,CAAC,CAAC;oBAClB,UAAU,CAAC;wBACT,WAAW,CAAC,KAAK,CAAC,CAAC;wBACnB,KAAK,CAAC,QAAQ,CAAC,CAAC;oBAClB,CAAC,EAAE,IAAI,CAAC,CAAC;gBACX,CAAC,GACD,GAEJ;QACF,6BAAK,SAAS,EAAC,6CAA6C;YAC1D,oBAAC,IAAI,CAAC,MAAM,IAAC,KAAK,EAAC,YAAY,EAAC,IAAI,EAAE,8BAA8B,GAAI;YACxE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