@dust-tt/sparkle 0.2.271 → 0.2.272-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 +8186 -8284
- 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 +72 -117
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Checkbox.js +2 -2
- package/dist/esm/components/Checkbox.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/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 +37 -65
- package/dist/esm/components/IconButton.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/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/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 +14 -6
- 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 +1 -2
- package/dist/esm/components/Tree.d.ts.map +1 -1
- package/dist/esm/components/Tree.js +16 -24
- package/dist/esm/components/Tree.js.map +1 -1
- package/dist/esm/components/ZoomableImageCitationWrapper.js +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 +53 -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/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/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/RadioGroup.stories.d.ts.map +1 -1
- package/dist/esm/stories/RadioGroup.stories.js +4 -4
- package/dist/esm/stories/RadioGroup.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 +17 -17
- package/dist/esm/stories/Tree.stories.js.map +1 -1
- package/dist/sparkle.css +148 -235
- 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 +164 -237
- package/src/components/Checkbox.tsx +3 -3
- package/src/components/Citation.tsx +1 -1
- 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 +51 -87
- package/src/components/Markdown.tsx +2 -3
- package/src/components/Notification.tsx +1 -1
- package/src/components/Pagination.tsx +2 -8
- package/src/components/Popup.tsx +1 -1
- package/src/components/RadioGroup.tsx +22 -18
- package/src/components/Searchbar.tsx +1 -1
- package/src/components/Spinner.tsx +45 -68
- package/src/components/Tree.tsx +18 -37
- package/src/components/ZoomableImageCitationWrapper.tsx +1 -1
- package/src/stories/Banner.stories.tsx +1 -1
- package/src/stories/Button.stories.tsx +60 -606
- 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/Modal.stories.tsx +1 -2
- 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/RadioGroup.stories.tsx +5 -8
- package/src/stories/Searchbar.stories.tsx +3 -3
- package/src/stories/SliderToggle.stories.tsx +2 -2
- package/src/stories/Tree.stories.tsx +9 -22
|
@@ -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
|
},
|
|
@@ -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)"
|
|
@@ -196,14 +196,7 @@ function ModelsDropdownDemo() {
|
|
|
196
196
|
return (
|
|
197
197
|
<NewDropdownMenu>
|
|
198
198
|
<NewDropdownMenuTrigger>
|
|
199
|
-
<Button
|
|
200
|
-
type="select"
|
|
201
|
-
labelVisible={true}
|
|
202
|
-
label={selectedModel}
|
|
203
|
-
variant="secondary"
|
|
204
|
-
hasMagnifying={false}
|
|
205
|
-
size="sm"
|
|
206
|
-
/>
|
|
199
|
+
<Button label={selectedModel} variant="outline" size="sm" />
|
|
207
200
|
</NewDropdownMenuTrigger>
|
|
208
201
|
<NewDropdownMenuContent>
|
|
209
202
|
<NewDropdownMenuLabel label="Best performing models" />
|
|
@@ -251,14 +244,7 @@ function ModelsDropdownRadioGroupDemo() {
|
|
|
251
244
|
return (
|
|
252
245
|
<NewDropdownMenu>
|
|
253
246
|
<NewDropdownMenuTrigger>
|
|
254
|
-
<Button
|
|
255
|
-
type="select"
|
|
256
|
-
labelVisible={true}
|
|
257
|
-
label={selectedModel}
|
|
258
|
-
variant="secondary"
|
|
259
|
-
hasMagnifying={false}
|
|
260
|
-
size="sm"
|
|
261
|
-
/>
|
|
247
|
+
<Button label={selectedModel} variant="ghost" size="sm" />
|
|
262
248
|
</NewDropdownMenuTrigger>
|
|
263
249
|
<NewDropdownMenuContent>
|
|
264
250
|
<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>
|
|
@@ -37,27 +37,24 @@ export const RadioGroupExample = () => {
|
|
|
37
37
|
<div className="s-flex s-items-center s-space-x-2">
|
|
38
38
|
<RadioGroupItem
|
|
39
39
|
value="option-one"
|
|
40
|
-
id="option-
|
|
40
|
+
id="option-four"
|
|
41
41
|
size="sm"
|
|
42
42
|
tooltipMessage="This is a nice tooltip message"
|
|
43
|
-
disabled
|
|
44
|
-
tooltipAsChild
|
|
45
43
|
/>
|
|
46
44
|
<Label htmlFor="option-one">Option One</Label>
|
|
47
45
|
</div>
|
|
48
46
|
<div className="s-flex s-items-center s-space-x-2">
|
|
49
47
|
<RadioGroupItem
|
|
50
48
|
value="option-two"
|
|
51
|
-
id="option-
|
|
49
|
+
id="option-five"
|
|
52
50
|
size="sm"
|
|
53
|
-
disabled
|
|
54
|
-
checked
|
|
51
|
+
disabled
|
|
55
52
|
/>
|
|
56
53
|
<Label htmlFor="option-two">Option Two</Label>
|
|
57
54
|
</div>
|
|
58
55
|
<div className="s-flex s-items-center s-space-x-2">
|
|
59
|
-
<RadioGroupItem value="option-
|
|
60
|
-
<Label htmlFor="option-
|
|
56
|
+
<RadioGroupItem value="option-six" id="option-three" size="sm" />
|
|
57
|
+
<Label htmlFor="option-three">Option Three</Label>
|
|
61
58
|
</div>
|
|
62
59
|
</RadioGroup>
|
|
63
60
|
</div>
|
|
@@ -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
|
}
|
|
@@ -270,7 +270,6 @@ export const TreeExample = () => {
|
|
|
270
270
|
visual={IntercomLogo}
|
|
271
271
|
onItemClick={() => console.log("Clickable")}
|
|
272
272
|
isSelected={true}
|
|
273
|
-
size="md"
|
|
274
273
|
>
|
|
275
274
|
<Tree variant="navigator" tailwindIconTextColor="s-text-brand">
|
|
276
275
|
<Tree.Item
|
|
@@ -311,9 +310,9 @@ export const TreeExample = () => {
|
|
|
311
310
|
</Tree.Item>
|
|
312
311
|
</Tree>
|
|
313
312
|
</Tree.Item>
|
|
314
|
-
<Tree.Item label="Notion" visual={NotionLogo}
|
|
315
|
-
<Tree.Item label="Slack" visual={SlackLogo}
|
|
316
|
-
<Tree.Item label="Dust" visual={DustIcon}
|
|
313
|
+
<Tree.Item label="Notion" visual={NotionLogo} />
|
|
314
|
+
<Tree.Item label="Slack" visual={SlackLogo} />
|
|
315
|
+
<Tree.Item label="Dust" visual={DustIcon} />
|
|
317
316
|
</Tree>
|
|
318
317
|
</div>
|
|
319
318
|
</div>
|
|
@@ -636,7 +635,6 @@ export const SelectDataSourceExample = () => {
|
|
|
636
635
|
<Tree.Item
|
|
637
636
|
label="Intercom"
|
|
638
637
|
visual={IntercomLogo}
|
|
639
|
-
size="md"
|
|
640
638
|
areActionsFading={false}
|
|
641
639
|
actions={
|
|
642
640
|
<div className="s-flex s-flex-row s-items-center s-justify-center s-gap-3">
|
|
@@ -647,9 +645,8 @@ export const SelectDataSourceExample = () => {
|
|
|
647
645
|
<Button
|
|
648
646
|
label="Manage"
|
|
649
647
|
icon={Cog6ToothIcon}
|
|
650
|
-
variant="
|
|
648
|
+
variant="outline"
|
|
651
649
|
size="sm"
|
|
652
|
-
hasMagnifying={false}
|
|
653
650
|
/>
|
|
654
651
|
</div>
|
|
655
652
|
}
|
|
@@ -668,19 +665,16 @@ export const SelectDataSourceExample = () => {
|
|
|
668
665
|
<Button
|
|
669
666
|
label="Manage"
|
|
670
667
|
icon={Cog6ToothIcon}
|
|
671
|
-
variant="
|
|
668
|
+
variant="outline"
|
|
672
669
|
size="sm"
|
|
673
|
-
hasMagnifying={false}
|
|
674
670
|
/>
|
|
675
671
|
</div>
|
|
676
672
|
}
|
|
677
|
-
size="md"
|
|
678
673
|
/>
|
|
679
674
|
<Tree.Item
|
|
680
675
|
label="Notion"
|
|
681
676
|
visual={NotionLogo}
|
|
682
677
|
areActionsFading={false}
|
|
683
|
-
size="md"
|
|
684
678
|
actions={
|
|
685
679
|
<div className="s-flex s-flex-row s-items-center s-justify-center s-gap-3">
|
|
686
680
|
<span className="s-text-sm s-text-element-700">
|
|
@@ -690,9 +684,8 @@ export const SelectDataSourceExample = () => {
|
|
|
690
684
|
<Button
|
|
691
685
|
label="Manage"
|
|
692
686
|
icon={Cog6ToothIcon}
|
|
693
|
-
variant="
|
|
687
|
+
variant="outline"
|
|
694
688
|
size="sm"
|
|
695
|
-
hasMagnifying={false}
|
|
696
689
|
/>
|
|
697
690
|
</div>
|
|
698
691
|
}
|
|
@@ -709,7 +702,6 @@ export const SelectDataSourceExample = () => {
|
|
|
709
702
|
label="Google Drive"
|
|
710
703
|
visual={DriveLogo}
|
|
711
704
|
areActionsFading={false}
|
|
712
|
-
size="md"
|
|
713
705
|
defaultCollapsed={true}
|
|
714
706
|
actions={
|
|
715
707
|
<div className="s-flex s-flex-row s-items-center s-justify-center s-gap-3">
|
|
@@ -720,9 +712,8 @@ export const SelectDataSourceExample = () => {
|
|
|
720
712
|
<Button
|
|
721
713
|
label="Manage"
|
|
722
714
|
icon={Cog6ToothIcon}
|
|
723
|
-
variant="
|
|
715
|
+
variant="outline"
|
|
724
716
|
size="sm"
|
|
725
|
-
hasMagnifying={false}
|
|
726
717
|
/>
|
|
727
718
|
</div>
|
|
728
719
|
}
|
|
@@ -739,7 +730,6 @@ export const SelectDataSourceExample = () => {
|
|
|
739
730
|
<Tree.Item
|
|
740
731
|
label="Intercom"
|
|
741
732
|
visual={IntercomLogo}
|
|
742
|
-
size="md"
|
|
743
733
|
checkbox={{
|
|
744
734
|
checked: false,
|
|
745
735
|
onChange: () => {
|
|
@@ -751,7 +741,6 @@ export const SelectDataSourceExample = () => {
|
|
|
751
741
|
label="Slack"
|
|
752
742
|
collapsed={true}
|
|
753
743
|
visual={SlackLogo}
|
|
754
|
-
size="md"
|
|
755
744
|
checkbox={{
|
|
756
745
|
checked: false,
|
|
757
746
|
onChange: () => {
|
|
@@ -762,7 +751,6 @@ export const SelectDataSourceExample = () => {
|
|
|
762
751
|
<Tree.Item
|
|
763
752
|
label="Notion"
|
|
764
753
|
visual={NotionLogo}
|
|
765
|
-
size="md"
|
|
766
754
|
checkbox={{
|
|
767
755
|
checked: false,
|
|
768
756
|
onChange: () => {
|
|
@@ -813,7 +801,6 @@ export const SelectDataSourceExample = () => {
|
|
|
813
801
|
<Tree.Item
|
|
814
802
|
label="Google Drive"
|
|
815
803
|
visual={DriveLogo}
|
|
816
|
-
size="md"
|
|
817
804
|
checkbox={{
|
|
818
805
|
checked: false,
|
|
819
806
|
onChange: () => {
|
|
@@ -847,7 +834,7 @@ const TreeItem = ({
|
|
|
847
834
|
<span className="s-text-xs s-text-element-700">
|
|
848
835
|
last updated Jan 6
|
|
849
836
|
</span>
|
|
850
|
-
<IconButton icon={CloudArrowDownIcon} size="xs" variant="
|
|
837
|
+
<IconButton icon={CloudArrowDownIcon} size="xs" variant="outline" />
|
|
851
838
|
<IconButton icon={PlusCircleIcon} size="xs" />
|
|
852
839
|
</div>
|
|
853
840
|
}
|