@dust-tt/sparkle 0.2.267 → 0.2.268-rc-1
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 +199 -592
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +1 -1
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Checkbox.d.ts +9 -20
- package/dist/esm/components/Checkbox.d.ts.map +1 -1
- package/dist/esm/components/Checkbox.js +56 -43
- package/dist/esm/components/Checkbox.js.map +1 -1
- package/dist/esm/components/DropdownMenu.d.ts.map +1 -1
- package/dist/esm/components/DropdownMenu.js +1 -1
- package/dist/esm/components/DropdownMenu.js.map +1 -1
- package/dist/esm/components/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton.js +1 -1
- package/dist/esm/components/IconButton.js.map +1 -1
- package/dist/esm/components/Popover.d.ts +2 -1
- package/dist/esm/components/Popover.d.ts.map +1 -1
- package/dist/esm/components/Popover.js +2 -2
- package/dist/esm/components/Popover.js.map +1 -1
- package/dist/esm/components/Tooltip.d.ts +2 -1
- package/dist/esm/components/Tooltip.d.ts.map +1 -1
- package/dist/esm/components/Tooltip.js +2 -2
- package/dist/esm/components/Tooltip.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -2
- 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/Checkbox.stories.d.ts +10 -4
- package/dist/esm/stories/Checkbox.stories.d.ts.map +1 -1
- package/dist/esm/stories/Checkbox.stories.js +51 -26
- package/dist/esm/stories/Checkbox.stories.js.map +1 -1
- package/dist/esm/stories/Tree.stories.d.ts.map +1 -1
- package/dist/esm/stories/Tree.stories.js +76 -37
- package/dist/esm/stories/Tree.stories.js.map +1 -1
- package/dist/sparkle.css +61 -37
- package/package.json +1 -3
- package/src/components/Button.tsx +6 -1
- package/src/components/Checkbox.tsx +103 -87
- package/src/components/DropdownMenu.tsx +1 -0
- package/src/components/IconButton.tsx +1 -0
- package/src/components/Popover.tsx +3 -2
- package/src/components/Tooltip.tsx +8 -2
- package/src/components/index.ts +1 -6
- package/src/stories/Checkbox.stories.tsx +87 -44
- package/src/stories/Tree.stories.tsx +76 -37
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
Checkbox,
|
|
6
|
-
CheckboxWithText,
|
|
7
|
-
CheckBoxWithTextAndDescription,
|
|
8
|
-
} from "../index_with_tw_base";
|
|
4
|
+
import { Checkbox } from "../index_with_tw_base";
|
|
9
5
|
|
|
10
6
|
const meta = {
|
|
11
7
|
title: "Primitives/Checkbox",
|
|
@@ -13,34 +9,70 @@ const meta = {
|
|
|
13
9
|
} satisfies Meta<typeof Checkbox>;
|
|
14
10
|
|
|
15
11
|
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export const CheckBoxExample = () => {
|
|
14
|
+
// No-op function for onChange
|
|
15
|
+
const handleChange = () => {
|
|
16
|
+
// This function intentionally left blank
|
|
17
|
+
};
|
|
16
18
|
|
|
17
|
-
const handleChange = () => {
|
|
18
|
-
// This function intentionally left blank
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const CheckBoxSizesExample = () => {
|
|
22
19
|
return (
|
|
23
20
|
<div className="s-flex s-flex-col s-gap-10">
|
|
21
|
+
SM
|
|
24
22
|
<div className="s-flex s-gap-10">
|
|
25
|
-
|
|
26
|
-
<Checkbox onChange={handleChange} />
|
|
27
|
-
<Checkbox
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
Selectable
|
|
24
|
+
<Checkbox variant="selectable" onChange={handleChange} />
|
|
25
|
+
<Checkbox
|
|
26
|
+
checked="checked"
|
|
27
|
+
variant="selectable"
|
|
28
|
+
onChange={handleChange}
|
|
29
|
+
/>
|
|
30
|
+
<Checkbox
|
|
31
|
+
checked="partial"
|
|
32
|
+
variant="selectable"
|
|
33
|
+
onChange={handleChange}
|
|
34
|
+
/>
|
|
35
|
+
Checkable
|
|
36
|
+
<Checkbox variant="checkable" onChange={handleChange} />
|
|
37
|
+
<Checkbox
|
|
38
|
+
checked="checked"
|
|
39
|
+
variant="checkable"
|
|
40
|
+
onChange={handleChange}
|
|
41
|
+
/>
|
|
42
|
+
<Checkbox
|
|
43
|
+
checked="partial"
|
|
44
|
+
variant="checkable"
|
|
45
|
+
onChange={handleChange}
|
|
46
|
+
/>
|
|
32
47
|
</div>
|
|
48
|
+
XS
|
|
33
49
|
<div className="s-flex s-gap-10">
|
|
34
|
-
|
|
35
|
-
<Checkbox size="xs" onChange={handleChange} />
|
|
36
|
-
<Checkbox
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
50
|
+
Selectable
|
|
51
|
+
<Checkbox size="xs" variant="selectable" onChange={handleChange} />
|
|
52
|
+
<Checkbox
|
|
53
|
+
size="xs"
|
|
54
|
+
checked="checked"
|
|
55
|
+
variant="selectable"
|
|
56
|
+
onChange={handleChange}
|
|
57
|
+
/>
|
|
40
58
|
<Checkbox
|
|
41
59
|
size="xs"
|
|
42
60
|
checked="partial"
|
|
43
|
-
|
|
61
|
+
variant="selectable"
|
|
62
|
+
onChange={handleChange}
|
|
63
|
+
/>
|
|
64
|
+
Checkable
|
|
65
|
+
<Checkbox size="xs" variant="checkable" onChange={handleChange} />
|
|
66
|
+
<Checkbox
|
|
67
|
+
size="xs"
|
|
68
|
+
checked="checked"
|
|
69
|
+
variant="checkable"
|
|
70
|
+
onChange={handleChange}
|
|
71
|
+
/>
|
|
72
|
+
<Checkbox
|
|
73
|
+
size="xs"
|
|
74
|
+
checked="partial"
|
|
75
|
+
variant="checkable"
|
|
44
76
|
onChange={handleChange}
|
|
45
77
|
/>
|
|
46
78
|
</div>
|
|
@@ -48,25 +80,36 @@ export const CheckBoxSizesExample = () => {
|
|
|
48
80
|
);
|
|
49
81
|
};
|
|
50
82
|
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
);
|
|
83
|
+
export const Selectable: Story = {
|
|
84
|
+
args: {
|
|
85
|
+
checked: "checked",
|
|
86
|
+
variant: "selectable",
|
|
87
|
+
},
|
|
57
88
|
};
|
|
58
89
|
|
|
59
|
-
export const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
90
|
+
export const Checked: Story = {
|
|
91
|
+
args: {
|
|
92
|
+
checked: "checked",
|
|
93
|
+
variant: "checkable",
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const Unchecked: Story = {
|
|
98
|
+
args: {
|
|
99
|
+
checked: "unchecked",
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const PartialChecked: Story = {
|
|
104
|
+
args: {
|
|
105
|
+
checked: "partial",
|
|
106
|
+
variant: "checkable",
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const Disabled: Story = {
|
|
111
|
+
args: {
|
|
112
|
+
checked: "checked",
|
|
113
|
+
disabled: true,
|
|
114
|
+
},
|
|
72
115
|
};
|
|
@@ -47,7 +47,8 @@ export const TreeExample = () => {
|
|
|
47
47
|
type="leaf"
|
|
48
48
|
label="Item 1"
|
|
49
49
|
checkbox={{
|
|
50
|
-
|
|
50
|
+
variant: "checkable",
|
|
51
|
+
checked: "unchecked",
|
|
51
52
|
onChange: () => {
|
|
52
53
|
return;
|
|
53
54
|
},
|
|
@@ -57,7 +58,8 @@ export const TreeExample = () => {
|
|
|
57
58
|
label="Item 2"
|
|
58
59
|
type="leaf"
|
|
59
60
|
checkbox={{
|
|
60
|
-
|
|
61
|
+
variant: "checkable",
|
|
62
|
+
checked: "unchecked",
|
|
61
63
|
onChange: () => {
|
|
62
64
|
return;
|
|
63
65
|
},
|
|
@@ -67,7 +69,8 @@ export const TreeExample = () => {
|
|
|
67
69
|
label="Item 3"
|
|
68
70
|
type="leaf"
|
|
69
71
|
checkbox={{
|
|
70
|
-
|
|
72
|
+
variant: "checkable",
|
|
73
|
+
checked: "unchecked",
|
|
71
74
|
onChange: () => {
|
|
72
75
|
return;
|
|
73
76
|
},
|
|
@@ -157,7 +160,8 @@ export const TreeExample = () => {
|
|
|
157
160
|
type="item"
|
|
158
161
|
visual={FolderIcon}
|
|
159
162
|
checkbox={{
|
|
160
|
-
|
|
163
|
+
variant: "checkable",
|
|
164
|
+
checked: "checked",
|
|
161
165
|
onChange: () => {
|
|
162
166
|
return;
|
|
163
167
|
},
|
|
@@ -168,7 +172,8 @@ export const TreeExample = () => {
|
|
|
168
172
|
type="item"
|
|
169
173
|
visual={FolderIcon}
|
|
170
174
|
checkbox={{
|
|
171
|
-
|
|
175
|
+
variant: "checkable",
|
|
176
|
+
checked: "checked",
|
|
172
177
|
onChange: () => {
|
|
173
178
|
return;
|
|
174
179
|
},
|
|
@@ -179,7 +184,8 @@ export const TreeExample = () => {
|
|
|
179
184
|
type="item"
|
|
180
185
|
visual={FolderIcon}
|
|
181
186
|
checkbox={{
|
|
182
|
-
|
|
187
|
+
variant: "checkable",
|
|
188
|
+
checked: "unchecked",
|
|
183
189
|
onChange: () => {
|
|
184
190
|
return;
|
|
185
191
|
},
|
|
@@ -190,7 +196,8 @@ export const TreeExample = () => {
|
|
|
190
196
|
type="item"
|
|
191
197
|
visual={FolderIcon}
|
|
192
198
|
checkbox={{
|
|
193
|
-
|
|
199
|
+
variant: "checkable",
|
|
200
|
+
checked: "unchecked",
|
|
194
201
|
onChange: () => {
|
|
195
202
|
return;
|
|
196
203
|
},
|
|
@@ -201,7 +208,8 @@ export const TreeExample = () => {
|
|
|
201
208
|
type="item"
|
|
202
209
|
visual={FolderIcon}
|
|
203
210
|
checkbox={{
|
|
204
|
-
|
|
211
|
+
variant: "checkable",
|
|
212
|
+
checked: "unchecked",
|
|
205
213
|
onChange: () => {
|
|
206
214
|
return;
|
|
207
215
|
},
|
|
@@ -219,7 +227,8 @@ export const TreeExample = () => {
|
|
|
219
227
|
visual={IntercomLogo}
|
|
220
228
|
type="item"
|
|
221
229
|
checkbox={{
|
|
222
|
-
|
|
230
|
+
variant: "checkable",
|
|
231
|
+
checked: "unchecked",
|
|
223
232
|
onChange: () => {
|
|
224
233
|
return;
|
|
225
234
|
},
|
|
@@ -230,7 +239,8 @@ export const TreeExample = () => {
|
|
|
230
239
|
type="item"
|
|
231
240
|
visual={NotionLogo}
|
|
232
241
|
checkbox={{
|
|
233
|
-
|
|
242
|
+
variant: "checkable",
|
|
243
|
+
checked: "unchecked",
|
|
234
244
|
onChange: () => {
|
|
235
245
|
return;
|
|
236
246
|
},
|
|
@@ -241,7 +251,8 @@ export const TreeExample = () => {
|
|
|
241
251
|
type="item"
|
|
242
252
|
visual={SlackLogo}
|
|
243
253
|
checkbox={{
|
|
244
|
-
|
|
254
|
+
variant: "checkable",
|
|
255
|
+
checked: "unchecked",
|
|
245
256
|
onChange: () => {
|
|
246
257
|
return;
|
|
247
258
|
},
|
|
@@ -252,7 +263,8 @@ export const TreeExample = () => {
|
|
|
252
263
|
type="item"
|
|
253
264
|
visual={DustIcon}
|
|
254
265
|
checkbox={{
|
|
255
|
-
|
|
266
|
+
variant: "checkable",
|
|
267
|
+
checked: "unchecked",
|
|
256
268
|
onChange: () => {
|
|
257
269
|
return;
|
|
258
270
|
},
|
|
@@ -334,7 +346,8 @@ export const TreeExample = () => {
|
|
|
334
346
|
type="leaf"
|
|
335
347
|
label="Item 1"
|
|
336
348
|
checkbox={{
|
|
337
|
-
|
|
349
|
+
variant: "checkable",
|
|
350
|
+
checked: "unchecked",
|
|
338
351
|
onChange: () => {
|
|
339
352
|
return;
|
|
340
353
|
},
|
|
@@ -344,7 +357,8 @@ export const TreeExample = () => {
|
|
|
344
357
|
label="Item 2"
|
|
345
358
|
type="leaf"
|
|
346
359
|
checkbox={{
|
|
347
|
-
|
|
360
|
+
variant: "checkable",
|
|
361
|
+
checked: "unchecked",
|
|
348
362
|
onChange: () => {
|
|
349
363
|
return;
|
|
350
364
|
},
|
|
@@ -354,7 +368,8 @@ export const TreeExample = () => {
|
|
|
354
368
|
label="Item 3"
|
|
355
369
|
type="leaf"
|
|
356
370
|
checkbox={{
|
|
357
|
-
|
|
371
|
+
variant: "checkable",
|
|
372
|
+
checked: "unchecked",
|
|
358
373
|
onChange: () => {
|
|
359
374
|
return;
|
|
360
375
|
},
|
|
@@ -393,6 +408,7 @@ export const TreeExample = () => {
|
|
|
393
408
|
<Tree.Item
|
|
394
409
|
label="Item 1"
|
|
395
410
|
checkbox={{
|
|
411
|
+
variant: "checkable",
|
|
396
412
|
checked: "partial",
|
|
397
413
|
onChange: () => {
|
|
398
414
|
return;
|
|
@@ -402,7 +418,8 @@ export const TreeExample = () => {
|
|
|
402
418
|
<Tree.Item
|
|
403
419
|
label="Item 2"
|
|
404
420
|
checkbox={{
|
|
405
|
-
|
|
421
|
+
variant: "checkable",
|
|
422
|
+
checked: "checked",
|
|
406
423
|
onChange: () => {
|
|
407
424
|
return;
|
|
408
425
|
},
|
|
@@ -411,7 +428,8 @@ export const TreeExample = () => {
|
|
|
411
428
|
<Tree.Item
|
|
412
429
|
label="Item 3"
|
|
413
430
|
checkbox={{
|
|
414
|
-
|
|
431
|
+
variant: "checkable",
|
|
432
|
+
checked: "unchecked",
|
|
415
433
|
onChange: () => {
|
|
416
434
|
return;
|
|
417
435
|
},
|
|
@@ -420,7 +438,8 @@ export const TreeExample = () => {
|
|
|
420
438
|
<Tree.Item
|
|
421
439
|
label="Item 4"
|
|
422
440
|
checkbox={{
|
|
423
|
-
|
|
441
|
+
variant: "checkable",
|
|
442
|
+
checked: "unchecked",
|
|
424
443
|
onChange: () => {
|
|
425
444
|
return;
|
|
426
445
|
},
|
|
@@ -429,7 +448,8 @@ export const TreeExample = () => {
|
|
|
429
448
|
<Tree.Item
|
|
430
449
|
label="Item 5"
|
|
431
450
|
checkbox={{
|
|
432
|
-
|
|
451
|
+
variant: "checkable",
|
|
452
|
+
checked: "unchecked",
|
|
433
453
|
onChange: () => {
|
|
434
454
|
return;
|
|
435
455
|
},
|
|
@@ -447,6 +467,7 @@ export const TreeExample = () => {
|
|
|
447
467
|
<Tree.Item
|
|
448
468
|
label="Item 1"
|
|
449
469
|
checkbox={{
|
|
470
|
+
variant: "checkable",
|
|
450
471
|
checked: "partial",
|
|
451
472
|
onChange: () => {
|
|
452
473
|
return;
|
|
@@ -456,7 +477,8 @@ export const TreeExample = () => {
|
|
|
456
477
|
<Tree.Item
|
|
457
478
|
label="Item 2"
|
|
458
479
|
checkbox={{
|
|
459
|
-
|
|
480
|
+
variant: "checkable",
|
|
481
|
+
checked: "checked",
|
|
460
482
|
onChange: () => {
|
|
461
483
|
return;
|
|
462
484
|
},
|
|
@@ -476,7 +498,8 @@ export const TreeExample = () => {
|
|
|
476
498
|
type="item"
|
|
477
499
|
visual={FolderIcon}
|
|
478
500
|
checkbox={{
|
|
479
|
-
|
|
501
|
+
variant: "checkable",
|
|
502
|
+
checked: "checked",
|
|
480
503
|
onChange: () => {
|
|
481
504
|
return;
|
|
482
505
|
},
|
|
@@ -487,7 +510,8 @@ export const TreeExample = () => {
|
|
|
487
510
|
type="item"
|
|
488
511
|
visual={FolderIcon}
|
|
489
512
|
checkbox={{
|
|
490
|
-
|
|
513
|
+
variant: "checkable",
|
|
514
|
+
checked: "checked",
|
|
491
515
|
onChange: () => {
|
|
492
516
|
return;
|
|
493
517
|
},
|
|
@@ -498,7 +522,8 @@ export const TreeExample = () => {
|
|
|
498
522
|
type="item"
|
|
499
523
|
visual={FolderIcon}
|
|
500
524
|
checkbox={{
|
|
501
|
-
|
|
525
|
+
variant: "checkable",
|
|
526
|
+
checked: "unchecked",
|
|
502
527
|
onChange: () => {
|
|
503
528
|
return;
|
|
504
529
|
},
|
|
@@ -509,7 +534,8 @@ export const TreeExample = () => {
|
|
|
509
534
|
type="item"
|
|
510
535
|
visual={FolderIcon}
|
|
511
536
|
checkbox={{
|
|
512
|
-
|
|
537
|
+
variant: "checkable",
|
|
538
|
+
checked: "unchecked",
|
|
513
539
|
onChange: () => {
|
|
514
540
|
return;
|
|
515
541
|
},
|
|
@@ -520,7 +546,8 @@ export const TreeExample = () => {
|
|
|
520
546
|
type="item"
|
|
521
547
|
visual={FolderIcon}
|
|
522
548
|
checkbox={{
|
|
523
|
-
|
|
549
|
+
variant: "checkable",
|
|
550
|
+
checked: "unchecked",
|
|
524
551
|
onChange: () => {
|
|
525
552
|
return;
|
|
526
553
|
},
|
|
@@ -538,7 +565,8 @@ export const TreeExample = () => {
|
|
|
538
565
|
type="item"
|
|
539
566
|
visual={IntercomLogo}
|
|
540
567
|
checkbox={{
|
|
541
|
-
|
|
568
|
+
variant: "checkable",
|
|
569
|
+
checked: "unchecked",
|
|
542
570
|
onChange: () => {
|
|
543
571
|
return;
|
|
544
572
|
},
|
|
@@ -549,7 +577,8 @@ export const TreeExample = () => {
|
|
|
549
577
|
type="item"
|
|
550
578
|
visual={NotionLogo}
|
|
551
579
|
checkbox={{
|
|
552
|
-
|
|
580
|
+
variant: "checkable",
|
|
581
|
+
checked: "unchecked",
|
|
553
582
|
onChange: () => {
|
|
554
583
|
return;
|
|
555
584
|
},
|
|
@@ -560,7 +589,8 @@ export const TreeExample = () => {
|
|
|
560
589
|
type="item"
|
|
561
590
|
visual={SlackLogo}
|
|
562
591
|
checkbox={{
|
|
563
|
-
|
|
592
|
+
variant: "checkable",
|
|
593
|
+
checked: "unchecked",
|
|
564
594
|
onChange: () => {
|
|
565
595
|
return;
|
|
566
596
|
},
|
|
@@ -571,7 +601,8 @@ export const TreeExample = () => {
|
|
|
571
601
|
type="item"
|
|
572
602
|
visual={DustIcon}
|
|
573
603
|
checkbox={{
|
|
574
|
-
|
|
604
|
+
variant: "checkable",
|
|
605
|
+
checked: "unchecked",
|
|
575
606
|
onChange: () => {
|
|
576
607
|
return;
|
|
577
608
|
},
|
|
@@ -741,7 +772,8 @@ export const SelectDataSourceExample = () => {
|
|
|
741
772
|
visual={IntercomLogo}
|
|
742
773
|
size="md"
|
|
743
774
|
checkbox={{
|
|
744
|
-
|
|
775
|
+
variant: "checkable",
|
|
776
|
+
checked: "unchecked",
|
|
745
777
|
onChange: () => {
|
|
746
778
|
return;
|
|
747
779
|
},
|
|
@@ -753,7 +785,8 @@ export const SelectDataSourceExample = () => {
|
|
|
753
785
|
visual={SlackLogo}
|
|
754
786
|
size="md"
|
|
755
787
|
checkbox={{
|
|
756
|
-
|
|
788
|
+
variant: "checkable",
|
|
789
|
+
checked: "unchecked",
|
|
757
790
|
onChange: () => {
|
|
758
791
|
return;
|
|
759
792
|
},
|
|
@@ -764,7 +797,8 @@ export const SelectDataSourceExample = () => {
|
|
|
764
797
|
visual={NotionLogo}
|
|
765
798
|
size="md"
|
|
766
799
|
checkbox={{
|
|
767
|
-
|
|
800
|
+
variant: "checkable",
|
|
801
|
+
checked: "unchecked",
|
|
768
802
|
onChange: () => {
|
|
769
803
|
return;
|
|
770
804
|
},
|
|
@@ -775,7 +809,8 @@ export const SelectDataSourceExample = () => {
|
|
|
775
809
|
<Tree.Item
|
|
776
810
|
label="Item 1"
|
|
777
811
|
checkbox={{
|
|
778
|
-
|
|
812
|
+
variant: "checkable",
|
|
813
|
+
checked: "unchecked",
|
|
779
814
|
onChange: () => {
|
|
780
815
|
return;
|
|
781
816
|
},
|
|
@@ -784,7 +819,8 @@ export const SelectDataSourceExample = () => {
|
|
|
784
819
|
<Tree.Item
|
|
785
820
|
label="Item 2"
|
|
786
821
|
checkbox={{
|
|
787
|
-
|
|
822
|
+
variant: "checkable",
|
|
823
|
+
checked: "unchecked",
|
|
788
824
|
onChange: () => {
|
|
789
825
|
return;
|
|
790
826
|
},
|
|
@@ -793,7 +829,8 @@ export const SelectDataSourceExample = () => {
|
|
|
793
829
|
<Tree.Item
|
|
794
830
|
label="Item 3"
|
|
795
831
|
checkbox={{
|
|
796
|
-
|
|
832
|
+
variant: "checkable",
|
|
833
|
+
checked: "unchecked",
|
|
797
834
|
onChange: () => {
|
|
798
835
|
return;
|
|
799
836
|
},
|
|
@@ -802,7 +839,8 @@ export const SelectDataSourceExample = () => {
|
|
|
802
839
|
<Tree.Item
|
|
803
840
|
label="Item 4"
|
|
804
841
|
checkbox={{
|
|
805
|
-
|
|
842
|
+
variant: "checkable",
|
|
843
|
+
checked: "unchecked",
|
|
806
844
|
onChange: () => {
|
|
807
845
|
return;
|
|
808
846
|
},
|
|
@@ -815,7 +853,8 @@ export const SelectDataSourceExample = () => {
|
|
|
815
853
|
visual={DriveLogo}
|
|
816
854
|
size="md"
|
|
817
855
|
checkbox={{
|
|
818
|
-
|
|
856
|
+
variant: "checkable",
|
|
857
|
+
checked: "unchecked",
|
|
819
858
|
onChange: () => {
|
|
820
859
|
return;
|
|
821
860
|
},
|