@dust-tt/sparkle 0.2.274 → 0.2.276
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 +8245 -8259
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/AssistantPreview.d.ts.map +1 -1
- package/dist/esm/components/AssistantPreview.js +1 -1
- package/dist/esm/components/AssistantPreview.js.map +1 -1
- package/dist/esm/components/Banner.js +1 -1
- package/dist/esm/components/Banner.js.map +1 -1
- package/dist/esm/components/BarHeader.js +5 -5
- package/dist/esm/components/BarHeader.js.map +1 -1
- package/dist/esm/components/Button.d.ts +20 -24
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +76 -117
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Citation.js +1 -1
- package/dist/esm/components/Citation.js.map +1 -1
- package/dist/esm/components/ConversationMessageActions.d.ts.map +1 -1
- package/dist/esm/components/ConversationMessageActions.js +2 -2
- package/dist/esm/components/ConversationMessageActions.js.map +1 -1
- package/dist/esm/components/DataTable.js +2 -2
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/esm/components/Dialog.d.ts +2 -2
- package/dist/esm/components/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog.js +2 -2
- package/dist/esm/components/Dialog.js.map +1 -1
- package/dist/esm/components/FilterChips.d.ts.map +1 -1
- package/dist/esm/components/FilterChips.js +1 -1
- package/dist/esm/components/FilterChips.js.map +1 -1
- package/dist/esm/components/IconButton.d.ts +4 -3
- package/dist/esm/components/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton.js +41 -65
- package/dist/esm/components/IconButton.js.map +1 -1
- package/dist/esm/components/Input.d.ts.map +1 -1
- package/dist/esm/components/Input.js +20 -7
- package/dist/esm/components/Input.js.map +1 -1
- package/dist/esm/components/Label.js +1 -1
- package/dist/esm/components/Label.js.map +1 -1
- package/dist/esm/components/Markdown.d.ts.map +1 -1
- package/dist/esm/components/Markdown.js +2 -2
- package/dist/esm/components/Markdown.js.map +1 -1
- package/dist/esm/components/NavigationList.d.ts +18 -0
- package/dist/esm/components/NavigationList.d.ts.map +1 -0
- package/dist/esm/components/NavigationList.js +70 -0
- package/dist/esm/components/NavigationList.js.map +1 -0
- package/dist/esm/components/NewDropdown.js +2 -2
- package/dist/esm/components/NewDropdown.js.map +1 -1
- package/dist/esm/components/Notification.js +1 -1
- package/dist/esm/components/Notification.js.map +1 -1
- package/dist/esm/components/Pagination.d.ts.map +1 -1
- package/dist/esm/components/Pagination.js +2 -2
- package/dist/esm/components/Pagination.js.map +1 -1
- package/dist/esm/components/Popover.js +1 -1
- package/dist/esm/components/Popup.js +1 -1
- package/dist/esm/components/Popup.js.map +1 -1
- package/dist/esm/components/RadioGroup.d.ts.map +1 -1
- package/dist/esm/components/RadioGroup.js +4 -4
- package/dist/esm/components/RadioGroup.js.map +1 -1
- package/dist/esm/components/Searchbar.js +1 -1
- package/dist/esm/components/Searchbar.js.map +1 -1
- package/dist/esm/components/Spinner.d.ts +6 -2
- package/dist/esm/components/Spinner.d.ts.map +1 -1
- package/dist/esm/components/Spinner.js +34 -47
- package/dist/esm/components/Spinner.js.map +1 -1
- package/dist/esm/components/Tree.d.ts +2 -1
- package/dist/esm/components/Tree.d.ts.map +1 -1
- package/dist/esm/components/Tree.js +9 -9
- package/dist/esm/components/Tree.js.map +1 -1
- package/dist/esm/components/ZoomableImageCitationWrapper.js +1 -1
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/stories/Banner.stories.js +1 -1
- package/dist/esm/stories/Banner.stories.js.map +1 -1
- package/dist/esm/stories/Button.stories.d.ts +3 -16
- package/dist/esm/stories/Button.stories.d.ts.map +1 -1
- package/dist/esm/stories/Button.stories.js +54 -166
- package/dist/esm/stories/Button.stories.js.map +1 -1
- package/dist/esm/stories/CardButton.stories.js +1 -1
- package/dist/esm/stories/CardButton.stories.js.map +1 -1
- package/dist/esm/stories/ContextItem.stories.d.ts.map +1 -1
- package/dist/esm/stories/ContextItem.stories.js +5 -5
- package/dist/esm/stories/ContextItem.stories.js.map +1 -1
- package/dist/esm/stories/Dialog.stories.js +1 -1
- package/dist/esm/stories/Dialog.stories.js.map +1 -1
- package/dist/esm/stories/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/esm/stories/DropdownMenu.stories.js +7 -7
- package/dist/esm/stories/DropdownMenu.stories.js.map +1 -1
- package/dist/esm/stories/IconButton.stories.js +4 -4
- package/dist/esm/stories/IconButton.stories.js.map +1 -1
- package/dist/esm/stories/Input.stories.js +1 -1
- package/dist/esm/stories/Input.stories.js.map +1 -1
- package/dist/esm/stories/Markdown.stories.d.ts +1 -2
- package/dist/esm/stories/Markdown.stories.d.ts.map +1 -1
- package/dist/esm/stories/Modal.stories.d.ts.map +1 -1
- package/dist/esm/stories/Modal.stories.js +1 -2
- package/dist/esm/stories/Modal.stories.js.map +1 -1
- package/dist/esm/stories/NavigationList.stories.d.ts +7 -0
- package/dist/esm/stories/NavigationList.stories.d.ts.map +1 -0
- package/dist/esm/stories/NavigationList.stories.js +140 -0
- package/dist/esm/stories/NavigationList.stories.js.map +1 -0
- package/dist/esm/stories/NewDropdown.stories.js +2 -2
- package/dist/esm/stories/NewDropdown.stories.js.map +1 -1
- package/dist/esm/stories/Page.stories.d.ts.map +1 -1
- package/dist/esm/stories/Page.stories.js +6 -6
- package/dist/esm/stories/Page.stories.js.map +1 -1
- package/dist/esm/stories/Popover.stories.js +1 -1
- package/dist/esm/stories/Popover.stories.js.map +1 -1
- package/dist/esm/stories/Searchbar.stories.js +3 -3
- package/dist/esm/stories/Searchbar.stories.js.map +1 -1
- package/dist/esm/stories/SliderToggle.stories.js +2 -2
- package/dist/esm/stories/SliderToggle.stories.js.map +1 -1
- package/dist/esm/stories/Tree.stories.d.ts.map +1 -1
- package/dist/esm/stories/Tree.stories.js +6 -6
- package/dist/esm/stories/Tree.stories.js.map +1 -1
- package/dist/sparkle.css +186 -281
- package/package.json +1 -1
- package/src/components/AssistantPreview.tsx +1 -5
- package/src/components/Banner.tsx +1 -1
- package/src/components/BarHeader.tsx +8 -11
- package/src/components/Button.tsx +169 -237
- package/src/components/Citation.tsx +1 -1
- package/src/components/ConversationMessageActions.tsx +3 -7
- package/src/components/DataTable.tsx +2 -2
- package/src/components/Dialog.tsx +5 -5
- package/src/components/FilterChips.tsx +1 -2
- package/src/components/IconButton.tsx +56 -87
- package/src/components/Input.tsx +44 -31
- package/src/components/Label.tsx +1 -1
- package/src/components/Markdown.tsx +2 -3
- package/src/components/NavigationList.tsx +137 -0
- package/src/components/NewDropdown.tsx +2 -2
- package/src/components/Notification.tsx +1 -1
- package/src/components/Pagination.tsx +2 -8
- package/src/components/Popover.tsx +1 -1
- package/src/components/Popup.tsx +1 -1
- package/src/components/RadioGroup.tsx +20 -22
- package/src/components/Searchbar.tsx +1 -1
- package/src/components/Spinner.tsx +45 -68
- package/src/components/Tree.tsx +11 -9
- package/src/components/ZoomableImageCitationWrapper.tsx +1 -1
- package/src/components/index.ts +6 -1
- package/src/stories/Banner.stories.tsx +1 -1
- package/src/stories/Button.stories.tsx +62 -607
- package/src/stories/CardButton.stories.tsx +1 -1
- package/src/stories/ContextItem.stories.tsx +6 -11
- package/src/stories/Dialog.stories.tsx +1 -1
- package/src/stories/DropdownMenu.stories.tsx +8 -27
- package/src/stories/IconButton.stories.tsx +4 -4
- package/src/stories/Input.stories.tsx +14 -14
- package/src/stories/Modal.stories.tsx +1 -2
- package/src/stories/NavigationList.stories.tsx +173 -0
- package/src/stories/NewDropdown.stories.tsx +2 -16
- package/src/stories/Page.stories.tsx +6 -9
- package/src/stories/Popover.stories.tsx +1 -1
- package/src/stories/Searchbar.stories.tsx +3 -3
- package/src/stories/SliderToggle.stories.tsx +2 -2
- package/src/stories/Tree.stories.tsx +6 -10
|
@@ -78,20 +78,15 @@ export const ListItemExample = () => (
|
|
|
78
78
|
title="Slack"
|
|
79
79
|
visual={<ContextItem.Visual visual={SlackLogo} />}
|
|
80
80
|
action={
|
|
81
|
-
<
|
|
81
|
+
<div className="s-flex s-gap-1">
|
|
82
|
+
<Button icon={TrashIcon} variant="warning" label="Remove" />
|
|
82
83
|
<Button
|
|
83
|
-
|
|
84
|
-
variant="secondaryWarning"
|
|
85
|
-
label="Remove"
|
|
86
|
-
labelVisible={false}
|
|
87
|
-
/>
|
|
88
|
-
<Button
|
|
89
|
-
variant="secondary"
|
|
84
|
+
variant="outline"
|
|
90
85
|
label="Edit"
|
|
91
86
|
size="sm"
|
|
92
87
|
icon={PencilSquareIcon}
|
|
93
88
|
/>
|
|
94
|
-
</
|
|
89
|
+
</div>
|
|
95
90
|
}
|
|
96
91
|
>
|
|
97
92
|
<ContextItem.Description description="Hello you" />
|
|
@@ -126,7 +121,7 @@ export const ListItemExample = () => (
|
|
|
126
121
|
subElement={<>By: Edouard Wautier, Amira Hadad</>}
|
|
127
122
|
action={
|
|
128
123
|
<Button
|
|
129
|
-
variant="
|
|
124
|
+
variant="outline"
|
|
130
125
|
label="Manage"
|
|
131
126
|
size="sm"
|
|
132
127
|
icon={Cog6ToothIcon}
|
|
@@ -146,7 +141,7 @@ export const ListItemExample = () => (
|
|
|
146
141
|
subElement={<>By: Edouard Wautier, Amira Hadad</>}
|
|
147
142
|
action={
|
|
148
143
|
<Button
|
|
149
|
-
variant="
|
|
144
|
+
variant="outline"
|
|
150
145
|
label="Manage"
|
|
151
146
|
size="sm"
|
|
152
147
|
icon={Cog6ToothIcon}
|
|
@@ -112,12 +112,7 @@ export const DropdownExample = () => {
|
|
|
112
112
|
<div className="s-text-sm">Custom Dropdown:</div>
|
|
113
113
|
<DropdownMenu>
|
|
114
114
|
<DropdownMenu.Button>
|
|
115
|
-
<Button
|
|
116
|
-
label="Advanced settings"
|
|
117
|
-
variant="tertiary"
|
|
118
|
-
size="sm"
|
|
119
|
-
type="select"
|
|
120
|
-
/>
|
|
115
|
+
<Button label="Advanced settings" variant="outline" size="sm" />
|
|
121
116
|
</DropdownMenu.Button>
|
|
122
117
|
<DropdownMenu.Items width={300} overflow="visible">
|
|
123
118
|
<div className="s-flex s-flex-col s-gap-4">
|
|
@@ -127,14 +122,7 @@ export const DropdownExample = () => {
|
|
|
127
122
|
</div>
|
|
128
123
|
<DropdownMenu>
|
|
129
124
|
<DropdownMenu.Button>
|
|
130
|
-
<Button
|
|
131
|
-
type="select"
|
|
132
|
-
labelVisible={true}
|
|
133
|
-
label="GPT4"
|
|
134
|
-
variant="tertiary"
|
|
135
|
-
hasMagnifying={false}
|
|
136
|
-
size="sm"
|
|
137
|
-
/>
|
|
125
|
+
<Button label="GPT4" variant="outline" size="sm" />
|
|
138
126
|
</DropdownMenu.Button>
|
|
139
127
|
<DropdownMenu.Items origin="topRight">
|
|
140
128
|
{["GPT4", "GPT3", "GPT2", "GPT1"].map((item) => (
|
|
@@ -158,14 +146,7 @@ export const DropdownExample = () => {
|
|
|
158
146
|
</div>
|
|
159
147
|
<DropdownMenu>
|
|
160
148
|
<DropdownMenu.Button>
|
|
161
|
-
<Button
|
|
162
|
-
type="select"
|
|
163
|
-
labelVisible={true}
|
|
164
|
-
label="Balanced"
|
|
165
|
-
variant="tertiary"
|
|
166
|
-
hasMagnifying={false}
|
|
167
|
-
size="sm"
|
|
168
|
-
/>
|
|
149
|
+
<Button label="Balanced" variant="outline" size="sm" />
|
|
169
150
|
</DropdownMenu.Button>
|
|
170
151
|
<DropdownMenu.Items origin="topRight">
|
|
171
152
|
{["Deterministic", "Factual", "Balanced", "Creative"].map(
|
|
@@ -215,14 +196,14 @@ export const DropdownExample = () => {
|
|
|
215
196
|
<div className="s-flex s-border-t s-border-structure-50 s-p-2">
|
|
216
197
|
<Button
|
|
217
198
|
label="Manage"
|
|
218
|
-
variant="
|
|
199
|
+
variant="outline"
|
|
219
200
|
size="xs"
|
|
220
201
|
icon={ListIcon}
|
|
221
202
|
/>
|
|
222
203
|
<div className="s-flex-grow" />
|
|
223
204
|
<Button
|
|
224
205
|
label="New"
|
|
225
|
-
variant="
|
|
206
|
+
variant="outline"
|
|
226
207
|
size="xs"
|
|
227
208
|
icon={PlusIcon}
|
|
228
209
|
onClick={close}
|
|
@@ -466,7 +447,7 @@ export const DropdownExample = () => {
|
|
|
466
447
|
<DropdownMenu>
|
|
467
448
|
<DropdownMenu.Button>
|
|
468
449
|
<Button
|
|
469
|
-
variant="
|
|
450
|
+
variant="outline"
|
|
470
451
|
size="xs"
|
|
471
452
|
icon={EyeIcon}
|
|
472
453
|
label="See the error"
|
|
@@ -479,10 +460,10 @@ export const DropdownExample = () => {
|
|
|
479
460
|
</div>
|
|
480
461
|
<div className="self-end">
|
|
481
462
|
<Button
|
|
482
|
-
variant="
|
|
463
|
+
variant="outline"
|
|
483
464
|
size="xs"
|
|
484
465
|
icon={DocumentDuplicateIcon}
|
|
485
|
-
label=
|
|
466
|
+
label="Copy"
|
|
486
467
|
onClick={() =>
|
|
487
468
|
void navigator.clipboard.writeText("Hello error messange!")
|
|
488
469
|
}
|
|
@@ -29,8 +29,8 @@ export const IconButtonWithTooltip: Story = {
|
|
|
29
29
|
|
|
30
30
|
export const IconButtonSecondary: Story = {
|
|
31
31
|
args: {
|
|
32
|
-
variant: "
|
|
33
|
-
tooltip: "This a
|
|
32
|
+
variant: "highlight",
|
|
33
|
+
tooltip: "This a highlight IconButton",
|
|
34
34
|
tooltipPosition: "bottom",
|
|
35
35
|
icon: Cog6ToothIcon,
|
|
36
36
|
},
|
|
@@ -38,8 +38,8 @@ export const IconButtonSecondary: Story = {
|
|
|
38
38
|
|
|
39
39
|
export const IconButtonTertiary: Story = {
|
|
40
40
|
args: {
|
|
41
|
-
variant: "
|
|
42
|
-
tooltip: "This a
|
|
41
|
+
variant: "ghost",
|
|
42
|
+
tooltip: "This a ghost IconButton",
|
|
43
43
|
tooltipPosition: "bottom",
|
|
44
44
|
icon: Cog6ToothIcon,
|
|
45
45
|
},
|
|
@@ -17,27 +17,27 @@ export const InputExample = () => (
|
|
|
17
17
|
<Input
|
|
18
18
|
placeholder="placeholder"
|
|
19
19
|
name="input"
|
|
20
|
-
value=
|
|
21
|
-
error=
|
|
20
|
+
value="value"
|
|
21
|
+
error="errored because it's a very long message"
|
|
22
22
|
showErrorLabel
|
|
23
23
|
/>
|
|
24
24
|
<Input
|
|
25
25
|
placeholder="placeholder"
|
|
26
26
|
name="input"
|
|
27
|
-
value=
|
|
28
|
-
error=
|
|
27
|
+
value="value"
|
|
28
|
+
error="errored"
|
|
29
29
|
/>
|
|
30
30
|
<Input
|
|
31
31
|
placeholder="placeholder"
|
|
32
32
|
name="input"
|
|
33
|
-
value=
|
|
34
|
-
error=
|
|
33
|
+
value="value"
|
|
34
|
+
error="errored because it's a very long message"
|
|
35
35
|
showErrorLabel
|
|
36
36
|
/>
|
|
37
37
|
<Input
|
|
38
38
|
placeholder="placeholder"
|
|
39
39
|
name="input"
|
|
40
|
-
value=
|
|
40
|
+
value="disabled"
|
|
41
41
|
disabled={true}
|
|
42
42
|
showErrorLabel
|
|
43
43
|
/>
|
|
@@ -47,27 +47,27 @@ export const InputExample = () => (
|
|
|
47
47
|
<Input
|
|
48
48
|
placeholder="placeholder"
|
|
49
49
|
name="input"
|
|
50
|
-
value=
|
|
51
|
-
error=
|
|
50
|
+
value="value"
|
|
51
|
+
error="errored because it's a very long message"
|
|
52
52
|
showErrorLabel
|
|
53
53
|
/>
|
|
54
54
|
<Input
|
|
55
55
|
placeholder="placeholder"
|
|
56
56
|
name="input"
|
|
57
|
-
value=
|
|
58
|
-
error=
|
|
57
|
+
value="value"
|
|
58
|
+
error="errored"
|
|
59
59
|
/>
|
|
60
60
|
<Input
|
|
61
61
|
placeholder="placeholder"
|
|
62
62
|
name="input"
|
|
63
|
-
value=
|
|
64
|
-
error=
|
|
63
|
+
value="value"
|
|
64
|
+
error="errored because it's a very long message"
|
|
65
65
|
showErrorLabel
|
|
66
66
|
/>
|
|
67
67
|
<Input
|
|
68
68
|
placeholder="placeholder"
|
|
69
69
|
name="input"
|
|
70
|
-
value=
|
|
70
|
+
value="test"
|
|
71
71
|
showErrorLabel
|
|
72
72
|
/>
|
|
73
73
|
</div>
|
|
@@ -60,9 +60,8 @@ export const ModalExample = () => {
|
|
|
60
60
|
isOpen={isOpenWithActionAndChange}
|
|
61
61
|
onClose={() => setIsOpenWithActionAndChange(false)}
|
|
62
62
|
action={{
|
|
63
|
-
labelVisible: true,
|
|
64
63
|
label: "An action",
|
|
65
|
-
variant: "
|
|
64
|
+
variant: "outline",
|
|
66
65
|
size: "xs",
|
|
67
66
|
}}
|
|
68
67
|
saveLabel="Save (custom name possible)"
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { Meta } from "@storybook/react";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
NavigationList,
|
|
6
|
+
NavigationListItem,
|
|
7
|
+
NavigationListLabel,
|
|
8
|
+
ScrollArea,
|
|
9
|
+
ScrollBar,
|
|
10
|
+
} from "../index_with_tw_base";
|
|
11
|
+
|
|
12
|
+
const meta = {
|
|
13
|
+
title: "Primitives/NavigationList",
|
|
14
|
+
} satisfies Meta;
|
|
15
|
+
|
|
16
|
+
export default meta;
|
|
17
|
+
|
|
18
|
+
const getRandomTitles = (count: number) => {
|
|
19
|
+
const shuffled = fakeTitles.sort(() => 0.5 - Math.random());
|
|
20
|
+
return shuffled.slice(0, count);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const NewNavigationListDemo = () => {
|
|
24
|
+
const [selectedIndex, setSelectedIndex] = useState<number | null>(null);
|
|
25
|
+
const [conversationTitles, setConversationTitles] = useState<
|
|
26
|
+
{ label: string; items: string[] }[]
|
|
27
|
+
>([]);
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
// Generate random titles for each date section only once
|
|
31
|
+
setConversationTitles([
|
|
32
|
+
{ label: "Today", items: getRandomTitles(5) },
|
|
33
|
+
{ label: "Yesterday", items: getRandomTitles(10) },
|
|
34
|
+
]);
|
|
35
|
+
console.log(conversationTitles); // Add this line
|
|
36
|
+
}, []);
|
|
37
|
+
|
|
38
|
+
// Flatten the items array to easily manage indices
|
|
39
|
+
const allItems = conversationTitles.flatMap((section) => section.items);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div className="s-h-[400px] s-w-[200px] s-py-12">
|
|
43
|
+
<ScrollArea>
|
|
44
|
+
<NavigationList className="s-w-full">
|
|
45
|
+
{conversationTitles.map((section, sectionIndex) => (
|
|
46
|
+
<React.Fragment key={sectionIndex}>
|
|
47
|
+
<NavigationListLabel label={section.label} />
|
|
48
|
+
{section.items.map((title, index) => {
|
|
49
|
+
const itemIndex = allItems.indexOf(title); // Calculate the global index
|
|
50
|
+
return (
|
|
51
|
+
<NavigationListItem
|
|
52
|
+
key={index}
|
|
53
|
+
selected={itemIndex === selectedIndex}
|
|
54
|
+
onClick={() => setSelectedIndex(itemIndex)}
|
|
55
|
+
label={title}
|
|
56
|
+
className="s-w-full"
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
})}
|
|
60
|
+
</React.Fragment>
|
|
61
|
+
))}
|
|
62
|
+
</NavigationList>
|
|
63
|
+
<ScrollBar />
|
|
64
|
+
</ScrollArea>
|
|
65
|
+
</div>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const fakeTitles = [
|
|
70
|
+
"Project Kickoff Meeting",
|
|
71
|
+
"Budget Review Discussion",
|
|
72
|
+
"Weekly Sync with Team",
|
|
73
|
+
"AI Bot Training Session",
|
|
74
|
+
"Quarterly Planning Meeting",
|
|
75
|
+
"Feedback on Latest Design",
|
|
76
|
+
"Client Requirements Gathering",
|
|
77
|
+
"Sprint Retrospective",
|
|
78
|
+
"Daily Standup",
|
|
79
|
+
"Marketing Strategy Planning",
|
|
80
|
+
"Code Review Session",
|
|
81
|
+
"Product Launch Preparation",
|
|
82
|
+
"Onboarding New Team Members",
|
|
83
|
+
"Customer Feedback Analysis",
|
|
84
|
+
"Feature Prioritization Discussion",
|
|
85
|
+
"Technical Debt Assessment",
|
|
86
|
+
"Supply Chain Optimization",
|
|
87
|
+
"Sales Performance Review",
|
|
88
|
+
"Cross-Department Collaboration",
|
|
89
|
+
"Innovation Brainstorming",
|
|
90
|
+
"Risk Management Workshop",
|
|
91
|
+
"Holiday Schedule Planning",
|
|
92
|
+
"Compliance and Security Update",
|
|
93
|
+
"UI/UX Design Critique",
|
|
94
|
+
"End-of-Year Wrap Up",
|
|
95
|
+
"Resource Allocation Meeting",
|
|
96
|
+
"Vendor Negotiation Strategy",
|
|
97
|
+
"Crisis Management Scenario",
|
|
98
|
+
"SEO Best Practices Review",
|
|
99
|
+
"New Hire Orientation",
|
|
100
|
+
"Remote Work Policy Update",
|
|
101
|
+
"Company Values Workshop",
|
|
102
|
+
"Leadership Development Session",
|
|
103
|
+
"Diversity and Inclusion Training",
|
|
104
|
+
"Performance Improvement Plan",
|
|
105
|
+
"Customer Success Story Sharing",
|
|
106
|
+
"Community Engagement Strategy",
|
|
107
|
+
"Internal Product Demo",
|
|
108
|
+
"Cost Reduction Initiative",
|
|
109
|
+
"Change Management Planning",
|
|
110
|
+
"Employee Recognition Program",
|
|
111
|
+
"IT Infrastructure Upgrade",
|
|
112
|
+
"Content Marketing Planning",
|
|
113
|
+
"Team Building Activities",
|
|
114
|
+
"Data Privacy Compliance",
|
|
115
|
+
"Board Meeting Preparation",
|
|
116
|
+
"Investor Relations Update",
|
|
117
|
+
"KPI Tracking and Reporting",
|
|
118
|
+
"Industry Trends Analysis",
|
|
119
|
+
"Partnership Opportunities Exploration",
|
|
120
|
+
"Employee Wellness Program",
|
|
121
|
+
"Talent Acquisition Strategy",
|
|
122
|
+
"Brand Positioning Workshop",
|
|
123
|
+
"Social Media Campaign Planning",
|
|
124
|
+
"Competitive Analysis Review",
|
|
125
|
+
"Legal Compliance Training",
|
|
126
|
+
"Cybersecurity Awareness Session",
|
|
127
|
+
"Cultural Exchange Program",
|
|
128
|
+
"Product Roadmap Presentation",
|
|
129
|
+
"Customer Journey Mapping",
|
|
130
|
+
"Financial Forecasting Session",
|
|
131
|
+
"Brand Storytelling Workshop",
|
|
132
|
+
"AI Ethics and Governance Discussion",
|
|
133
|
+
"Operational Efficiency Assessment",
|
|
134
|
+
"Annual Report Drafting",
|
|
135
|
+
"Project Milestone Celebration",
|
|
136
|
+
"Quality Assurance Review",
|
|
137
|
+
"Public Relations Strategy",
|
|
138
|
+
"Team Performance Metrics",
|
|
139
|
+
"Innovation Lab Tour",
|
|
140
|
+
"Digital Transformation Roadmap",
|
|
141
|
+
"Sustainability Initiatives Planning",
|
|
142
|
+
"Internal Communications Strategy",
|
|
143
|
+
"Customer Advisory Board Meeting",
|
|
144
|
+
"Agile Methodology Training",
|
|
145
|
+
"E-commerce Platform Update",
|
|
146
|
+
"Risk Assessment and Mitigation",
|
|
147
|
+
"Employee Satisfaction Survey Results",
|
|
148
|
+
"Sales Funnel Optimization",
|
|
149
|
+
"Cross-Cultural Communication Training",
|
|
150
|
+
"Global Expansion Strategy",
|
|
151
|
+
"Cloud Migration Plan",
|
|
152
|
+
"Crisis Communication Strategy",
|
|
153
|
+
"Webinar Content Creation",
|
|
154
|
+
"Supply Chain Risk Management",
|
|
155
|
+
"Data Analytics and Insights",
|
|
156
|
+
"Customer Onboarding Process",
|
|
157
|
+
"Brand Awareness Campaign",
|
|
158
|
+
"Product Feature Request Review",
|
|
159
|
+
"Annual Budget Allocation",
|
|
160
|
+
"Employee Exit Interview",
|
|
161
|
+
"User Feedback Session",
|
|
162
|
+
"Strategic Partnership Negotiation",
|
|
163
|
+
"Market Entry Strategy",
|
|
164
|
+
"Employee Handbook Update",
|
|
165
|
+
"Stakeholder Engagement Plan",
|
|
166
|
+
"AI Chatbot Development",
|
|
167
|
+
"Customer Retention Strategy",
|
|
168
|
+
"Company Anniversary Celebration",
|
|
169
|
+
"Leadership Team Offsite",
|
|
170
|
+
"Innovation Challenge Kickoff",
|
|
171
|
+
"Employee Benefits Review",
|
|
172
|
+
"Business Continuity Planning",
|
|
173
|
+
];
|
|
@@ -200,14 +200,7 @@ function ModelsDropdownDemo() {
|
|
|
200
200
|
return (
|
|
201
201
|
<NewDropdownMenu>
|
|
202
202
|
<NewDropdownMenuTrigger>
|
|
203
|
-
<Button
|
|
204
|
-
type="select"
|
|
205
|
-
labelVisible={true}
|
|
206
|
-
label={selectedModel}
|
|
207
|
-
variant="secondary"
|
|
208
|
-
hasMagnifying={false}
|
|
209
|
-
size="sm"
|
|
210
|
-
/>
|
|
203
|
+
<Button label={selectedModel} variant="outline" size="sm" />
|
|
211
204
|
</NewDropdownMenuTrigger>
|
|
212
205
|
<NewDropdownMenuContent>
|
|
213
206
|
<NewDropdownMenuLabel label="Best performing models" />
|
|
@@ -255,14 +248,7 @@ function ModelsDropdownRadioGroupDemo() {
|
|
|
255
248
|
return (
|
|
256
249
|
<NewDropdownMenu>
|
|
257
250
|
<NewDropdownMenuTrigger>
|
|
258
|
-
<Button
|
|
259
|
-
type="select"
|
|
260
|
-
labelVisible={true}
|
|
261
|
-
label={selectedModel}
|
|
262
|
-
variant="secondary"
|
|
263
|
-
hasMagnifying={false}
|
|
264
|
-
size="sm"
|
|
265
|
-
/>
|
|
251
|
+
<Button label={selectedModel} variant="ghost" size="sm" />
|
|
266
252
|
</NewDropdownMenuTrigger>
|
|
267
253
|
<NewDropdownMenuContent>
|
|
268
254
|
<NewDropdownMenuRadioGroup
|
|
@@ -229,7 +229,7 @@ export const PageExample = () => {
|
|
|
229
229
|
</ContextItem>
|
|
230
230
|
<ContextItem
|
|
231
231
|
title="@SalesFr"
|
|
232
|
-
action={<Button variant="
|
|
232
|
+
action={<Button variant="outline" label="Manage" size="sm" />}
|
|
233
233
|
visual={
|
|
234
234
|
<Avatar
|
|
235
235
|
visual="https://dust.tt/static/droidavatar/Droid_Indigo_4.jpg"
|
|
@@ -241,7 +241,7 @@ export const PageExample = () => {
|
|
|
241
241
|
</ContextItem>
|
|
242
242
|
<ContextItem
|
|
243
243
|
title="@SupportFr"
|
|
244
|
-
action={<Button variant="
|
|
244
|
+
action={<Button variant="outline" label="Manage" size="sm" />}
|
|
245
245
|
visual={
|
|
246
246
|
<Avatar
|
|
247
247
|
visual="https://dust.tt/static/droidavatar/Droid_Pink_4.jpg"
|
|
@@ -282,7 +282,7 @@ export const AssistantBuilder = () => {
|
|
|
282
282
|
size="xl"
|
|
283
283
|
visual="https://dust.tt/static/droidavatar/Droid_Black_2.jpg/"
|
|
284
284
|
/>
|
|
285
|
-
<Button size="sm" variant="
|
|
285
|
+
<Button size="sm" variant="outline" label="Change" />
|
|
286
286
|
</Page.Layout>
|
|
287
287
|
</Page.Layout>
|
|
288
288
|
<Page.Separator />
|
|
@@ -365,22 +365,19 @@ export const HelpExample = () => {
|
|
|
365
365
|
<Page.SectionHeader title="Frequently asked questions" />
|
|
366
366
|
<Page.Layout direction="fluid" gap="sm">
|
|
367
367
|
<Button
|
|
368
|
-
variant="
|
|
368
|
+
variant="outline"
|
|
369
369
|
label="Hey @helper, how do I use the assistant?"
|
|
370
370
|
icon={ChatBubbleLeftRightIcon}
|
|
371
|
-
hasMagnifying={false}
|
|
372
371
|
/>
|
|
373
372
|
<Button
|
|
374
|
-
variant="
|
|
373
|
+
variant="outline"
|
|
375
374
|
label="Hey @helper, What is assistant not good at?"
|
|
376
375
|
icon={ChatBubbleLeftRightIcon}
|
|
377
|
-
hasMagnifying={false}
|
|
378
376
|
/>
|
|
379
377
|
<Button
|
|
380
|
-
variant="
|
|
378
|
+
variant="outline"
|
|
381
379
|
label="Hey @helper, Anything I should know?"
|
|
382
380
|
icon={ChatBubbleLeftRightIcon}
|
|
383
|
-
hasMagnifying={false}
|
|
384
381
|
/>
|
|
385
382
|
</Page.Layout>
|
|
386
383
|
</Page.Layout>
|
|
@@ -23,7 +23,7 @@ export default meta;
|
|
|
23
23
|
export function SimplePopoverExample() {
|
|
24
24
|
return (
|
|
25
25
|
<Popover
|
|
26
|
-
trigger={<Button label="Popover" variant="
|
|
26
|
+
trigger={<Button label="Popover" variant="outline" />}
|
|
27
27
|
content={
|
|
28
28
|
<div className="s-grid s-gap-2 s-p-2">
|
|
29
29
|
<p>Lorem</p>
|
|
@@ -33,7 +33,7 @@ export const SearchbarExample = () => {
|
|
|
33
33
|
size="md"
|
|
34
34
|
/>
|
|
35
35
|
<div>
|
|
36
|
-
<Button variant="
|
|
36
|
+
<Button variant="outline" size="md" label="Hello" />
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
<Searchbar
|
|
@@ -60,7 +60,7 @@ export const SearchbarExample = () => {
|
|
|
60
60
|
onChange={handleChange}
|
|
61
61
|
/>
|
|
62
62
|
<div>
|
|
63
|
-
<Button variant="
|
|
63
|
+
<Button variant="outline" size="sm" label="Hello" />
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
<Searchbar
|
|
@@ -86,7 +86,7 @@ export const SearchbarExample = () => {
|
|
|
86
86
|
size="xs"
|
|
87
87
|
/>
|
|
88
88
|
<div>
|
|
89
|
-
<Button variant="
|
|
89
|
+
<Button variant="outline" size="xs" label="Hello" />
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
<Searchbar
|
|
@@ -20,14 +20,14 @@ export const SliderToggleBasic: Story = {
|
|
|
20
20
|
export const SliderExample = () => (
|
|
21
21
|
<div className="s-flex s-flex-col s-gap-6">
|
|
22
22
|
<div className="s-flex s-items-center s-gap-2">
|
|
23
|
-
<Button variant="
|
|
23
|
+
<Button variant="outline" size="sm" label="Settings" />
|
|
24
24
|
<SliderToggle size="sm" />
|
|
25
25
|
<SliderToggle size="sm" selected />
|
|
26
26
|
<SliderToggle size="sm" disabled />
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<div className="s-flex s-items-center s-gap-2">
|
|
30
|
-
<Button variant="
|
|
30
|
+
<Button variant="outline" size="xs" label="Settings" />
|
|
31
31
|
<SliderToggle size="xs" />
|
|
32
32
|
<SliderToggle size="xs" selected />
|
|
33
33
|
<SliderToggle size="xs" disabled />
|
|
@@ -118,7 +118,7 @@ export const TreeExample = () => {
|
|
|
118
118
|
<IconButton
|
|
119
119
|
size="xs"
|
|
120
120
|
icon={EyeIcon}
|
|
121
|
-
variant="
|
|
121
|
+
variant="outline"
|
|
122
122
|
/>
|
|
123
123
|
</>
|
|
124
124
|
}
|
|
@@ -645,9 +645,8 @@ export const SelectDataSourceExample = () => {
|
|
|
645
645
|
<Button
|
|
646
646
|
label="Manage"
|
|
647
647
|
icon={Cog6ToothIcon}
|
|
648
|
-
variant="
|
|
648
|
+
variant="outline"
|
|
649
649
|
size="sm"
|
|
650
|
-
hasMagnifying={false}
|
|
651
650
|
/>
|
|
652
651
|
</div>
|
|
653
652
|
}
|
|
@@ -666,9 +665,8 @@ export const SelectDataSourceExample = () => {
|
|
|
666
665
|
<Button
|
|
667
666
|
label="Manage"
|
|
668
667
|
icon={Cog6ToothIcon}
|
|
669
|
-
variant="
|
|
668
|
+
variant="outline"
|
|
670
669
|
size="sm"
|
|
671
|
-
hasMagnifying={false}
|
|
672
670
|
/>
|
|
673
671
|
</div>
|
|
674
672
|
}
|
|
@@ -686,9 +684,8 @@ export const SelectDataSourceExample = () => {
|
|
|
686
684
|
<Button
|
|
687
685
|
label="Manage"
|
|
688
686
|
icon={Cog6ToothIcon}
|
|
689
|
-
variant="
|
|
687
|
+
variant="outline"
|
|
690
688
|
size="sm"
|
|
691
|
-
hasMagnifying={false}
|
|
692
689
|
/>
|
|
693
690
|
</div>
|
|
694
691
|
}
|
|
@@ -715,9 +712,8 @@ export const SelectDataSourceExample = () => {
|
|
|
715
712
|
<Button
|
|
716
713
|
label="Manage"
|
|
717
714
|
icon={Cog6ToothIcon}
|
|
718
|
-
variant="
|
|
715
|
+
variant="outline"
|
|
719
716
|
size="sm"
|
|
720
|
-
hasMagnifying={false}
|
|
721
717
|
/>
|
|
722
718
|
</div>
|
|
723
719
|
}
|
|
@@ -838,7 +834,7 @@ const TreeItem = ({
|
|
|
838
834
|
<span className="s-text-xs s-text-element-700">
|
|
839
835
|
last updated Jan 6
|
|
840
836
|
</span>
|
|
841
|
-
<IconButton icon={CloudArrowDownIcon} size="xs" variant="
|
|
837
|
+
<IconButton icon={CloudArrowDownIcon} size="xs" variant="outline" />
|
|
842
838
|
<IconButton icon={PlusCircleIcon} size="xs" />
|
|
843
839
|
</div>
|
|
844
840
|
}
|